Skip to content
MCP server
RegistryRemote

epa-mcp-server MCP Server

Search EPA compliance, TRI, Superfund, drinking-water, EJScreen, and AirNow data.

epa-mcp-server scores 72 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 12 tools. Filed under Search. GitHub shows 2 stars. Package registries report about 358 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by cyanheadsApache-2.0TypeScript2 stars
Trust score
72Good
Trust score 72 of 100, Good

Good trust

72 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 72 comes from

22 + 20 + 6 + 10 + 4 + 10 = 72. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity6 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 6 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cyanheads-epa-mcp-server": {      "command": "npx",      "args": [        "-y",        "@cyanheads/epa-mcp-server@0.8.1"      ],      "env": {        "AIRNOW_API_KEY": "",        "EJSCREEN_API_BASE_URL": "https://api.ejanalysis.com",        "EPA_CLAMP_LIMITS": "true",        "MCP_LOG_LEVEL": "info"      }    }  }}

Environment variables

NameRequiredNotes
AIRNOW_API_KEYOptionalOptional AirNow API key for real-time and forecast air quality data. When unset, the epa_airnow_get_conditions tool is not registered and the other tools run without it. Free registration at docs.airnowapi.org.
EJSCREEN_API_BASE_URLOptionalOptional override for the EJScreen (EJAM) API base URL used by epa_ejscreen_get_scores. Defaults to https://api.ejanalysis.com — the community-maintained EJScreen rehost by Public Environmental Data Partners.
EPA_CLAMP_LIMITSOptionalOptional. true (default) serves a count input such as limit above its cap at the cap with a notice; false advertises each cap as a strict maximum, so a larger value fails validation.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_TRANSPORT_TYPEOptionalSelects the HTTP transport.
AIRNOW_API_KEYOptionalOptional AirNow API key for real-time and forecast air quality data. When unset, the epa_airnow_get_conditions tool is not registered and the other tools run without it. Free registration at docs.airnowapi.org.
EJSCREEN_API_BASE_URLOptionalOptional override for the EJScreen (EJAM) API base URL used by epa_ejscreen_get_scores. Defaults to https://api.ejanalysis.com — the community-maintained EJScreen rehost by Public Environmental Data Partners.
EPA_CLAMP_LIMITSOptionalOptional. true (default) serves a count input such as limit above its cap at the cap with a notice; false advertises each cap as a strict maximum, so a larger value fails validation.
MCP_HTTP_HOSTOptionalThe hostname for the HTTP server.
MCP_HTTP_PORTOptionalThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHOptionalThe endpoint path for the MCP server.
MCP_AUTH_MODEOptionalAuthentication mode to use: 'none', 'jwt', or 'oauth'.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Tools12Tool docs quality grade F

All capabilities

About

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Public Hosted Server: https://epa.caseyjhand.com/mcp


Overview

EPA environmental data across five federal programs — facility compliance (ECHO), toxic releases (TRI), Superfund sites, drinking water systems (SDWIS), and environmental-justice screening (EJScreen) — plus real-time AirNow air quality. Pull a facility's inspection and enforcement history, track toxic releases across a region, or screen any point for environmental-justice risk.

Tools

ToolDescription
epa_echo_search_facilitiesSearch EPA-regulated facilities by location, county, name, NAICS code, environmental program, or compliance status across CAA, CWA, RCRA, TRI, and SDWA
epa_echo_get_facilityFull compliance profile for one facility by EPA Registry ID or program ID — compliance status, inspections, enforcement actions, penalties, drinking-water violations, Clean Water Act effluent exceedances, RCRA violations, Clean Air Act High Priority Violations, program IDs, and TRI IDs
epa_echo_search_violationsSearch EPA civil and criminal enforcement cases by state, ZIP code, program, case type, or date range
epa_echo_get_caseOne civil enforcement case with its facilities, defendants, and settlements
epa_airnow_get_conditionsCurrent AQI observations or the issued AQI forecast from AirNow
epa_tri_get_facility_releasesPer-chemical Toxic Release Inventory data for a single facility
epa_tri_search_releasesToxic Release Inventory records across facilities in a state or county
epa_superfund_search_sitesSearch Superfund (CERCLA/SEMS) sites by location, site name, or NPL listing status
epa_superfund_get_siteSuperfund site record and all contaminant associations, by SEMS site ID or EPA ID
epa_water_search_systemsSearch drinking water systems (SDWIS) by state, ZIP code, or county served
epa_ejscreen_get_scoresEJScreen environmental-justice indicators for a point and buffer

Resources

ResourceDescription
epa://facility/{registry_id}Full compliance profile for a facility by EPA Registry ID or program ID (the default pages of epa_echo_get_facility)
epa://superfund/{site_id}Superfund site record and contaminant associations by SEMS site ID or EPA ID

All resource data is also reachable via tools — use epa_echo_get_facility and epa_superfund_get_site for programmatic access in tool-only MCP clients.

Capability reference

epa_echo_search_facilities tool

  • Provide ZIP codes, states, city (prefix match, preferably with state), county (prefix match on the recorded name; needs state, and matches in each listed state), 5-digit county_fips, or latitude + longitude + radius_miles (max 100 miles). zip_code takes up to 200 ZIP codes and state up to 100 state codes, as a list or a comma-joined string, and matches any of them. facility_name (whole words in any order, no commas; also matches other names ECHO records for the facility) and naics (2–6 digits, prefix match) narrow a geographic search
  • Up to 2,500 facilities per call (default 25); a larger limit returns 2,500 with a limitNotice. Page with offset and nextOffset; totalCount is the match before limit and offset
  • Returns registryId for epa_echo_get_facility, triFacilityIds for epa_tri_get_facility_releases, county and fipsCode, coordinates, per-program flags, and five-year inspection and penalty totals. Proximity rows add distanceMiles from the search point, to two decimals, in ECHO's order. effectiveQuery echoes the filters as sent
  • programs takes one of CAA, CWA, RCRA, TRI, or SDWA; has_violation keeps facilities in significant noncompliance; active_only keeps facilities with an active permit

epa_echo_get_facility tool

  • registry_id is a Registry ID from epa_echo_search_facilities or a program ID ECHO resolves to one: a PWSID from epa_water_search_systems, a TRI facility ID, an NPDES permit, or a RCRA handler ID. The profile carries the resolved registryId
  • Returns complianceStatus, the naics codes its programs record, a per-statute programCompliance summary, five years of enforcement actions with penalties (caseId feeds epa_echo_get_case), the latest TRI total with triReleasesTransfersYear, and triFacilityIds for epa_tri_get_facility_releases
  • Four paged lists: inspections from the last five years, newest first (inspections_limit default 25, cap 5,000, inspections_offset; inspectionsTotal counts them all and inspectionsNextOffset continues); drinkingWaterViolations for a public water system, newest compliance period first, each with contaminant, measured level, MCL, status, and enforcement actions (drinking_water_violations_limit default 25, cap 3,000, drinking_water_violations_offset; drinkingWaterViolationsTotal and drinkingWaterViolationsNextOffset); effluentExceedances, the Clean Water Act effluent limit exceedances by pollutant and outfall, one series per entry with its quarters (effluent_exceedances_limit default 10, effluent_exceedances_offset; effluentExceedancesTotal and effluentExceedancesNextOffset); and rcraViolations (rcra_violations_limit default 25, rcra_violations_offset; rcraViolationsTotal and rcraViolationsNextOffset). A limit above an inspections or drinking-water cap returns the cap with a limitNotice; the effluent and RCRA lists have no cap, so a larger value returns the rest. truncated is true while any of the four lists has more
  • highPriorityViolations (Clean Air Act High Priority Violations) and programIds (every program ID linked to the facility, with its system, statute, and status) come whole. When a facility has several ICIS-Air or ICIS-NPDES IDs, airCompliance.programId and waterCompliance.permitId are absent and programIds names them all
  • If the status lookup fails, the profile returns without complianceStatus and a notice says so; an unknown ID fails as facility_not_found

epa_echo_search_violations tool

  • Requires state or zip_code, each a list (up to 100 state codes, 200 ZIP codes) or a comma-joined string that matches any of them; a case spanning several listed states is returned once. Up to 2,000 cases per call (default 25), and a larger limit returns 2,000 with a limitNotice. Page with offset and nextOffset; effectiveQuery echoes the filters as sent
  • program filters CAA, CWA, RCRA, SDWA, CERCLA, EPCRA, FIFRA, or TSCA, matching any law a case cites; case_type is civil, criminal, or all (default)
  • date_filed_start / date_filed_end (YYYY-MM-DD, inclusive) bound the filing date. Only civil cases carry filing dates, so with a date all returns civil cases with a notice, and criminal is rejected
  • Returns caseId, caseName, caseType, caseStatus, enforcementOutcome, leadAgency, the primary law (programsViolated) and primarySection, federal and state/local penalties, cost recovery, compliance action and SEP costs, and filed, settlement, and closed dates. Criminal cases omit status, outcome, state/local penalty, and cost fields
  • Case rows name no facility: pass a civil caseId to epa_echo_get_case

epa_echo_get_case tool

  • case_id is a civil case number: a caseId from epa_echo_search_violations (such as 03-2014-7010) or a formal action's caseId from epa_echo_get_facility. A criminal CR_ number fails as criminal_case before any request; an unknown number fails as case_not_found
  • Returns the case's category code, enforcement type, status, lead agency, relief sought, outcome, court and DOJ docket numbers, summary, and penalty, cost-recovery, compliance-action, and SEP totals, plus lawsAndSections, defendants, pollutants, and milestones
  • facilities lists the facilities the case names, one per Registry ID, with address, NAICS and SIC codes, and the program IDs the case links; pass a registryId to epa_echo_get_facility
  • enforcementConclusions lists each order, consent decree, or other settlement with its facilities, dates, penalties and costs, complying actions, pollutant reductions, and Supplemental Environmental Projects
  • facilities and enforcementConclusions are paged (facilities_limit default 25, enforcement_conclusions_limit default 10, with facilities_offset and enforcement_conclusions_offset); the other parts of the report come whole on every page. facilitiesTotal and enforcementConclusionsTotal count each list, facilitiesNextOffset and enforcementConclusionsNextOffset continue it, and truncated is true while either has more. Neither list has a cap, so a larger limit returns the rest of it. Each call re-reads the whole case report, so one larger-limit call costs less than several pages. Check facilitiesNextOffset before concluding a facility is not on a case

epa_airnow_get_conditions tool

  • Provide zip_code (5 digits, or a ZIP+4 read as its first five) or both latitude and longitude; mode is current (default) or forecast
  • Current mode returns each pollutant's latest hourly NowCast AQI from the closest monitor within 50 miles; forecast mode returns each issued day with dateValid, actionDay, and discussion, and forecast_date (a real YYYY-MM-DD date) keeps one day
  • Readings carry categoryName and categoryNumber (1 Good–6 Hazardous); attribution marks the data preliminary and unsuitable for regulatory or enforcement decisions
  • Registered only when AIRNOW_API_KEY is set; responses cache for about one hour

epa_tri_get_facility_releases tool

  • facility_id is the 15-character TRI facilityId from epa_tri_search_releases or epa_echo_get_facility triFacilityIds; case, surrounding whitespace, and end slashes are ignored, and a 12-digit Registry ID or any other length is rejected with the form it expects. Optional year (1987–2030), partial chemical_name, and chemical_id
  • chemical_id matches one chemical exactly where chemical_name matches any name containing its text: a CAS Registry Number (hyphens and leading zeros optional, check digit verified), a TRI category code such as N420 in any case, or a chemicalId an earlier result returned
  • Returns per-chemical on-site releases to air, water, land, and underground injection, their sum totalOnSiteReleasesInLbs, and the Form R Section 8.8 oneTimeReleaseInLbs, which the media quantities already include, newest reporting year first. Each record carries chemicalId and casNumber (absent for a category code or placeholder)
  • limit defaults to 25 filings and is capped at 699; a larger value returns 699 with a limitNotice. Page with offset and nextOffset; truncated, shown, cap, and guidance mark a page with more
  • Quantities are in pounds; dioxin records reported in grams are converted and carry reportedUnit: "grams"

epa_tri_search_releases tool

  • Requires 2-letter state (any case); optional county (case-insensitive partial match on the bare name; a trailing County, Parish, Borough, City and Borough, Census Area, or Municipality is dropped), partial chemical_name, exact chemical_id (a CAS number, category code, or earlier chemicalId, as for epa_tri_get_facility_releases), and year; newest reporting year first when year is omitted
  • Up to 699 records per call (default 25); a larger limit returns 699 with a limitNotice. Page with offset and nextOffset; effectiveQuery echoes the filters as sent. Records come in reporting-year order, not ranked by quantity
  • Returns facilityId for epa_tri_get_facility_releases, registryId for epa_echo_get_facility, parentCompany, chemicalId and casNumber, and the Form R Section 8.8 oneTimeReleaseInLbs; include_release_breakdown: true adds on-site releases to air, water, land, and underground injection plus totalOnSiteReleasesInLbs, at the cost of up to three more upstream requests made side by side (about 20 seconds when EPA has not cached them)
  • Dioxin records reported in grams are converted to pounds and carry reportedUnit: "grams"

epa_superfund_search_sites tool

  • Provide state/city/zip_code (a ZIP+4 searches its 5-digit ZIP), name, or latitude + longitude + radius_miles (0.1–500). name is a case-insensitive partial match on the site name, with punctuation matched as written, and works alone or beside any other filter. Up to 2,500 sites per call (default 25), and a larger limit returns 2,500 with a limitNotice. Page with offset and nextOffset; effectiveQuery echoes the filters as sent
  • Returns site identifiers, location, raw NPL code and source label, plus sparse non-NPL assessment, archive, EPA ID, and federal facility metadata. npl_status filters listed (F/A), not-listed (N), proposed (P), deleted (D), removed (R), withdrawn (W), or all (default)
  • exclude_archived: true requires SEMS archived_ind=N before pagination or proximity selection; the default retains all archive statuses. Assessment labels do not describe cleanup progress
  • Administrative searches return sites in SEMS site ID order and carry no totalCount, since DMAP reports no match count; follow nextOffset
  • Proximity searches rescan every latitude/longitude candidate on each call, apply exact distance, and page the nearest-first order (site ID breaks ties). Each row carries distanceMiles to two decimals; administrative rows carry none. totalCount is the number of matching sites, and a notice gives the page's place in it ("Showing sites a–b of N") and says sites without coordinates cannot be located. All candidate pages share a 50-second deadline — narrow the radius or add filters if it times out

epa_superfund_get_site tool

  • Provide a site_id from epa_superfund_search_sites, preserving leading zeros, or the site's EPA ID (2 letters and 10 letters or digits, any case), such as the SEMS program ID epa_echo_get_case lists for a facility
  • Returns { site, contaminants }: site metadata plus every recorded contaminant association, including medium, operable unit, action, and type code when available. Repeated chemicals and duplicate source rows are retained
  • An existing site with no associations returns contaminants: []; a missing site returns NotFound. Site and paged contaminant reads share one 50-second deadline; upstream failures remain errors
  • Associations describe EPA action/media records, not current exposure, concentrations, or current risk

epa_water_search_systems tool

  • Requires state (a 2-letter code, or an EPA region code 01–10 for tribal systems) or zip_code; up to 1,000 systems per call (default 25) in PWSID order, and a larger limit returns 1,000 with a limitNotice. Page with offset and nextOffset; totalCount appears when the call saw the whole match; effectiveQuery echoes the filters as sent
  • zip_code matches each system's address of record by prefix, so stored ZIP+4s match, and not its service area. county (needs state) finds the systems serving a county: a trailing County, Parish, Borough, City and Borough, Census Area, or Municipality is dropped, and a system matches only when one county it serves is that county, so Harris does not match Harrison
  • has_violation keeps systems with a current SDWA violation in ECHO, which applies EPA's Enforcement Response Policy and so flags fewer systems than SDWIS's unresolved violation records; pws_type is community, non-transient, or transient, returned as CWS / NTNCWS / TNCWS in type; active_only keeps systems SDWIS lists as active
  • A ZIP or county has_violation check reads up to 1,000 systems per call; when that fills before the page does, a notice says so and nextOffset continues
  • Pass a returned pwsid as registry_id to epa_echo_get_facility for the system's drinking-water violations

epa_ejscreen_get_scores tool

  • Requires latitude and longitude; distance defaults to 1, unit to miles (kilometers accepted); buffer capped at 15 miles
  • Returns 13 environmental and 6 demographic indicators with national/state percentiles, plus the demographicIndex and supplementalDemographicIndex, each with its usAverage. Both indexes are unitless, shifted means of z-scores, not percentages; an indicator's ejIndex is the Demographic Index × its US percentile, population-weighted over the buffer
  • coverage.valid: false with a note when the point is outside EJAM's bounds (the 50 states, DC, Puerto Rico, and the U.S. Island Areas; no request is made), the buffer holds no Census block (a larger distance may help below 15 miles), or its blocks have no residents (state, population, and block-group count are kept)
  • Data is EJAM's ACS 2018–2022 release of EJScreen (EJScreen 2.3 method), served by the community-maintained EJAM API (Public Environmental Data Partners)

epa://facility/{registry_id} resource

  • registry_id is a Registry ID from epa_echo_search_facilities or a program ID ECHO resolves to one, such as a PWSID from epa_water_search_systems
  • Returns the epa_echo_get_facility compliance profile at its default pages: 25 inspections, 25 drinking-water violations, 10 effluent exceedance series, and 25 RCRA violations (inspectionsNextOffset, drinkingWaterViolationsNextOffset, effluentExceedancesNextOffset, and rcraViolationsNextOffset mark more; page them with the tool); errors when no facility resolves

epa://superfund/{site_id} resource

  • site_id comes from epa_superfund_search_sites; the site's EPA ID is also accepted
  • Returns the same data as epa_superfund_get_site, with site fields at the top level and an additive contaminants array; errors when no SEMS record resolves

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

EPA-specific:

  • One epa_ tool surface over ECHO (facility compliance), Envirofacts DMAP (TRI, Superfund, SDWIS), AirNow (air quality), and the community-maintained EJAM API (EJScreen, ACS 2018–2022)
  • AirNow responses cache for about one hour to stay within per-key rate limits
  • TRI reporting lags about 18 months; the latest reporting year is typically two years behind

Agent-friendly output:

  • Search results carry the IDs the next tool needs: registryId, fipsCode, facilityId, triFacilityIds, caseId, and pwsid
  • Every search pages with offset and nextOffset, epa_echo_get_facility pages its inspections, drinking-water violations, effluent exceedances, and RCRA violations with inspections_offset, drinking_water_violations_offset, effluent_exceedances_offset, and rcra_violations_offset, and epa_echo_get_case pages its facilities and enforcement conclusions with facilities_offset and enforcement_conclusions_offset
  • Count inputs carry no schema maximum: a limit above a tool's cap returns the cap with a limitNotice, and EPA_CLAMP_LIMITS=false makes each cap a strict maximum that fails validation instead. The effluent, RCRA, case-facility, and case-conclusion lists have no cap, so a larger value returns the rest of the list
  • Proximity rows from epa_echo_search_facilities and epa_superfund_search_sites carry distanceMiles
  • Searches return effectiveQuery, the filters as the server sent them upstream, so a result states what it matched
  • epa_echo_get_facility returns a partial profile with a notice when the status lookup fails
  • Empty searches return a message that suggests how to broaden them

Getting started

Public Hosted Instance

A public instance is available at https://epa.caseyjhand.com/mcp — no installation required. It runs without an AirNow key, so epa_airnow_get_conditions is not available there; the other 10 tools are. Point any MCP client at it via Streamable HTTP:

{
  "mcpServers": {
    "epa-mcp-server": {
      "type": "streamable-http",
      "url": "https://epa.caseyjhand.com/mcp"
    }
  }
}

Self-Hosted / Local

Add the following to your MCP client configuration file. An AirNow API key is optional — set AIRNOW_API_KEY to enable epa_airnow_get_conditions (register free at docs.airnowapi.org); without it the server starts with the other 10 tools. ECHO, DMAP, and EJScreen tools work without authentication.

{
  "mcpServers": {
    "epa-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/epa-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info",
        "AIRNOW_API_KEY": "your-airnow-key"
      }
    }
  }
}

Or with npx (no Bun required):

{
  "mcpServers": {
    "epa-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/epa-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info",
        "AIRNOW_API_KEY": "your-airnow-key"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "epa-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "MCP_TRANSPORT_TYPE=stdio",
        "-e", "AIRNOW_API_KEY=your-airnow-key",
        "ghcr.io/cyanheads/epa-mcp-server:latest"
      ]
    }
  }
}

For Streamable HTTP, set the transport and start the server:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 AIRNOW_API_KEY=... bun run start:http
# Server listens at http://localhost:3010/mcp

Prerequisites

  • Bun v1.4.4 or higher (or Node.js v24+).
  • (Optional) An AirNow API key to enable epa_airnow_get_conditions — register free at docs.airnowapi.org/account/request. Without it the server runs the other 10 tools. ECHO, DMAP, and EJScreen tools require no API key.

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/epa-mcp-server.git
  1. Navigate into the directory:
cd epa-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment:
cp .env.example .env
# optionally set AIRNOW_API_KEY to enable the air quality tool

Configuration

All configuration is validated at startup via Zod schemas in src/config/. Key environment variables:

VariableDescriptionDefault
AIRNOW_API_KEYOptional. Enables epa_airnow_get_conditions.—
EPA_ECHO_BASE_URLECHO API base URLhttps://echodata.epa.gov/echo
EPA_DMAP_BASE_URLEnvirofacts DMAP API base URLhttps://data.epa.gov/dmapservice
EPA_AIRNOW_BASE_URLAirNow API base URLhttps://www.airnowapi.org/aq
EJSCREEN_API_BASE_URLEJScreen (EJAM) API base URLhttps://api.ejanalysis.com
EPA_CLAMP_LIMITSServe a count input above its cap at the cap, with a limitNotice. false advertises each cap as a strict schema maximum, so a larger value fails validation.true
MCP_TRANSPORT_TYPETransport: stdio or httpstdio
MCP_HTTP_PORTHTTP server port3010
MCP_HTTP_ENDPOINT_PATHHTTP endpoint path/mcp
MCP_SESSION_MODEHTTP sessions: auto, stateful, or statelessstateless
MCP_AUTH_MODEAuth mode: none, jwt, or oauthnone
MCP_LOG_LEVELLog level (RFC 5424)info
LOG_TOOL_FAILURE_PAYLOADSLog failed calls' arguments and results with key-name redaction. Secrets inside free-form values remain visible.false
LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTESByte cap per logged payload16384
LOGS_DIRDirectory for log files (Node.js only)<project-root>/logs
STORAGE_PROVIDER_TYPEStorage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1in-memory
OTEL_ENABLEDEnable OpenTelemetry tracing and metricsfalse
OTEL_EXPORTER_OTLP_ENDPOINTOTLP base URL—
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT / OTEL_EXPORTER_OTLP_METRICS_ENDPOINTPer-signal endpoint overrides—
OTEL_EXPORTER_OTLP_LOGS_ENDPOINTEnables OTLP log export—

See .env.example for the full list of optional overrides.

Running the server

Local development

  • Build and run:

    # One-time build
    bun run rebuild
    
    # Run the built server
    bun run start:stdio
    # or
    bun run start:http
    
  • Run checks and tests:

    bun run devcheck   # Lint, format, typecheck, security
    bun run test       # Vitest test suite
    bun run lint:mcp   # Validate MCP definitions against spec
    

Docker

docker build -t epa-mcp-server .
docker run --rm -e AIRNOW_API_KEY=your-key -p 3010:3010 epa-mcp-server

The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/epa-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools/resources and inits services.
src/configServer-specific environment variable parsing and validation with Zod.
src/mcp-server/toolsTool definitions (*.tool.ts). Eleven tools across ECHO, DMAP, EJAM, and AirNow.
src/mcp-server/resourcesResource definitions (*.resource.ts). Facility and Superfund URI handlers.
src/services/echoECHO REST API service layer — facility search, facility detail, enforcement case search and report, current drinking-water violators.
src/services/dmapEnvirofacts DMAP service layer — TRI releases, Superfund sites, drinking water systems.
src/services/airnowAirNow service layer — current and forecast AQI observations.
src/services/ejscreenEJScreen (EJAM) service layer — environmental-justice indicators for a point + buffer.
tests/Unit and integration tests mirroring src/.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging, ctx.state for tenant-scoped storage
  • Register new tools and resources via the barrels in src/mcp-server/*/definitions/index.ts
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
  • ECHO searches must enforce at least one geographic parameter — unscoped queries time out against the live API

Contributing

Issues are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Frequently asked questions

What is epa-mcp-server MCP Server?

Search EPA compliance, TRI, Superfund, drinking-water, EJScreen, and AirNow data.

How do I install epa-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. epa-mcp-server MCP Server runs locally from the npm package @cyanheads/epa-mcp-server with the command npx -y @cyanheads/epa-mcp-server@0.8.1.

Is epa-mcp-server MCP Server free and open source?

Yes. epa-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does epa-mcp-server MCP Server support remote (HTTP) connections?

Yes. epa-mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

What tools does epa-mcp-server MCP Server provide?

epa-mcp-server MCP Server provides 12 tools, including ctx.log, epa_airnow_get_conditions, epa_echo_get_case, and epa_echo_get_facility. See the full tool list for descriptions and parameters.

How is epa-mcp-server MCP Server's trust score calculated?

epa-mcp-server MCP Server scores 72 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server