• DATA
  • ANALYSIS
  • REPORTING
  • HUMAN

How to aggregate EPA datasets with your AI

Connect to Envirofacts once. After that, your AI handles the heavy lifting of querying and joining disparate environmental tables.

Ask AI about this page

Short answer

Can I run complex EPA data queries with my AI?

Yes. Your AI uses GraphQL to pull specific data points from Envirofacts and performs cross-table analysis on the fly. You get structured answers from massive environmental datasets without manual exports.

The outcomes

What you get from these queries.

The AI turns raw environmental data into usable insights.

DATA

Structured datasets

The AI pulls specific rows and columns from Envirofacts using GraphQL. You get clean, filtered data instead of massive, messy files.

ANALYSIS

Cross-table joins

Your agent links different EPA tables together. It finds relationships between site IDs, chemical concentrations, and regulatory statuses.

REPORTING

Instant summaries

The AI translates complex query results into plain English. You get a summary of findings instead of a wall of JSON.

HUMAN

Expert verification

The AI provides the raw data and logic used. You review the final numbers to ensure they meet regulatory or research standards.

The workflow

What your AI does when you ask for data.

The AI acts as the bridge between your prompt and the EPA's GraphQL endpoint.

  1. Translate intent

    Your agent takes your natural language request and converts it into a valid GraphQL query structure.

    graphql_query
  2. Fetch data

    The AI executes the query against the Envirofacts API to retrieve the specific environmental records you asked for.

    graphql_query
  3. Aggregate results

    The AI processes the returned data, performing math or joining different datasets to answer your specific question.

    graphql_query
  4. Format output

    The agent cleans up the technical response into a readable format, like a table or a list, for your review.

    graphql_query

Try it

Copy these to start.

Use these prompts to begin your analysis.

Starting points

Swap out the bracketed terms for the specific site IDs, chemical names, or regions you are investigating.

EPA Envirofacts Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_MUjPT9aewtl8KJkMMs8b36O0IfswJIUaoxUGiwfj/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — EPA Envirofacts capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "epa-envirofacts-environmental-data-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_MUjPT9aewtl8KJkMMs8b36O0IfswJIUaoxUGiwfj/mcp"
    }
  }
}
Copy into chat04
  • Find all Superfund sites in [Location] and list their primary contaminants.

  • Compare the chemical concentration levels at [Site ID] with the national average.

  • Query the Envirofacts database for all facilities in [State] that have reported recent air quality violations.

  • Aggregate the total number of enforcement actions taken against facilities in [Zip Code] over the last three years.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect EPA Envirofacts once, then ask.

One click connects the MCP to your client. Your credentials stay encrypted and secure on our end.

Connect EPA Envirofacts to your AI

FAQ

How the data aggregation works.

  • 01

    Can the AI change data in the EPA database?

    No. The tool only allows for read-only GraphQL queries. It cannot modify, delete, or add any records to the EPA systems.

  • 02

    Does the AI handle the GraphQL syntax for me?

    Yes. You provide the request in plain English, and the AI generates and executes the necessary graphql_query to get the data.

  • 03

    Can I join data from two different EPA tables?

    Yes. The AI can perform cross-table analysis by using common identifiers like Site ID or Facility ID to link datasets.

  • 04

    Will the AI automatically download CSV files?

    No. The AI retrieves the data and presents it within your chat interface. You can then ask it to format that data for you to copy.

  • 05

    Is there a limit to how much data it can pull?

    The limits are set by the EPA's API. If a query is too large, the AI will likely return an error or a partial result based on the API's constraints.

  • More questions about EPA Envirofacts? The Connector page answers them. See everything the EPA Envirofacts Connector can do

Connect EPA Envirofacts to Claude, Cursor, ChatGPT & more