4,500+ servers built on MCP Fusion
Vinkius
EPA AirNow logo
Vinkius
LangChain logo

How to Use the EPA AirNow MCP in LangChain

Build LangChain agents that react to real-world air quality from the EPA.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

EPA AirNow MCP on Cursor AI Code Editor MCP Client EPA AirNow MCP on Claude Desktop App MCP Integration EPA AirNow MCP on OpenAI Agents SDK MCP Compatible EPA AirNow MCP on Visual Studio Code MCP Extension Client EPA AirNow MCP on GitHub Copilot AI Agent MCP Integration EPA AirNow MCP on Google Gemini AI MCP Integration EPA AirNow MCP on Lovable AI Development MCP Client EPA AirNow MCP on Mistral AI Agents MCP Compatible EPA AirNow MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
LangChain

Connect EPA AirNow MCP to LangChain

Create your Vinkius account to connect EPA AirNow to LangChain and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.

GDPR Free for Subscribers

Chain Environmental Triggers

Your agent can now build multi-step logic based on air quality. It's not just about fetching data; it's about what your agent does next. For example, use `get_forecast_aqi_by_zip` to check tomorrow's air. If the AQI is high, the chain can trigger another action—like sending an alert or re-routing a delivery. This turns your agent from a simple Q&A bot into a system that reasons. It can start by checking a broad area with `get_current_aqi_by_zip`, then zoom in with `get_current_aqi_by_latlon` if the initial reading is borderline. Each tool call informs the next link in the chain.

Create Self-Correcting Data Pipelines with your LangChain MCP Server

This MCP Server gives your ReAct agents the tools to validate their own assumptions. An agent might get a forecast from `get_forecast_aqi_by_zip` that predicts poor air quality for the afternoon. Instead of just accepting it, the agent can be programmed to re-check the `get_current_aqi_by_zip` tool every hour. If the wind shifts and the air clears, the agent sees the new data and corrects its plan. It's how you build agents that adapt.

Ground Agent Decisions in Federal Data

Stop relying on vague web scrapes for environmental data. This toolset connects your agent directly to the EPA's AirNow data stream. When your agent reports the air quality, it's using the official, federally-backed numbers. Every call to `get_current_aqi_by_latlon` or `get_current_aqi_by_zip` is a request to an authoritative source. This means the outputs are defensible, consistent, and traceable right back to the EPA's own monitoring stations. No more guessing if your data is accurate.

Setup guide

Set up EPA AirNow MCP in LangChain

Prerequisites

  • Python 3.10+ installed
  • langchain-mcp-adapters + langgraph packages
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install dependencies

    Run pip install langchain-mcp-adapters langgraph langchain-openai. The MCP adapters package converts MCP tools into native LangChain BaseTool objects.

  2. 2

    Connect via HTTP transport

    Use MultiServerMCPClient with "transport": "http" pointing to your Vinkius endpoint. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com.

  3. 3

    Create a ReAct agent

    Pass the discovered tools to create_react_agent() from LangGraph. The agent automatically routes EPA AirNow tool calls through the MCP protocol.

  4. 4

    Run with any LLM

    Swap ChatOpenAI for ChatAnthropic, ChatGoogleGenerativeAI, or any LangChain-compatible model. The MCP tools work identically across all providers.

agent.py
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI

async with MultiServerMCPClient({
    "epa-airnow-mcp": {
        "transport": "http",
        "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
    }
}) as client:
    tools = client.get_tools()

    agent = create_react_agent(
        ChatOpenAI(model="gpt-4o"),
        tools,
    )
    result = await agent.ainvoke({
        "messages": "List recent EPA AirNow transactions"
    })
    print(result["messages"][-1].content)

Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by EPA. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.

Why Choose Vinkius

Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.

Real-time monitoring

Live

visibility into every interaction

Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.

Built-in savings

60%

lower AI costs

Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.

Single dashboard

One

place for every integration

Every tool your AI connects to, managed from a single screen. One account, complete control.

Common questions about EPA AirNow MCP in LangChain

After installing the adapter, you get the tools from the MCP client and pass them to your agent constructor. LangChain automatically understands the tool's inputs, like a ZIP code for `get_forecast_aqi_by_zip`. Your agent can then decide when to call it based on the user's prompt.
Yes, that's the whole point of chains. Your agent could use `get_current_aqi_by_zip` to check the air, then use a different tool to book an indoor reservation if the quality is poor. LangChain manages passing the context between steps.
Build a chain that uses `get_forecast_aqi_by_zip` as a trigger. If the forecast is unhealthy, the next step in the chain could be to notify a user or run `get_current_aqi_by_latlon` for a more precise, real-time check closer to the event time.
No. You can build stateful agents that remember previous air quality readings. This lets them track trends or notice sudden changes over time, rather than treating every query as a new event.
The server only processes the specific ZIP code or latitude/longitude you provide for a query. It's an ephemeral transaction; we don't store your location data after the EPA API call is complete. Your Vinkius endpoint token secures the connection from your agent.

Start using the EPA AirNow MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 3 tools

We've already built the connector for EPA AirNow. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 3 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.