openair-3-mcp-oss
MCP server wrapping the openair R package for air quality data analysis, enabling time series loading, statistical summaries, and publication-ready plots like polar and calendar plots.
README
openair-3-mcp-oss
MCP server wrapping the openair R package (~39 tools). Use with Claude, Cursor, Codex, or VS Code via openair-3-mcp-plugin-oss.
Not affiliated with openair-project maintainers.
Quick start (self-host)
git clone https://github.com/miguel-escribano/openair-3-mcp-oss
cd openair-3-mcp-oss
python -m venv .venv
# Windows: .venv\Scripts\activate
# Unix: source .venv/bin/activate
pip install -e .
cp .env.example .env
On the same machine, install R packages:
install.packages(c("openair", "jsonlite", "legendry"), repos = "https://cloud.r-project.org")
Verify:
python check_integrations.py
Run HTTP MCP (for IDE clients via mcp-remote):
fastmcp run server.py:mcp --transport http --port 8001
Copy .mcp.json.example from the plugin repo; set YOUR_MCP_TOKEN if you enable auth in .env.
Typical flows
CSV (global / IoT export)
Wide table: datetime column + pollutant columns. Metadata columns (battery, coords) — pass columns to select pollutants only.
load_series_from_csv— path on server diskprepare_series_for_openair—series_nameif multiple pollutants- One plot tool —
time_plot,calendar_plot, …
See fixtures/sample_hourly.csv.
Public network (UK / EU)
import_aurn/import_europe/import_ukaqprepare_series_for_openair- Plot tool
Optional: OPENAIR_SMOKE_NETWORK=1 python check_integrations.py for live import smoke.
Tool groups
| Group | Examples |
|---|---|
| Data in | load_series_from_csv, import_aurn, import_europe, prepare_series_for_openair |
| Time / trend | time_plot, calendar_plot, time_variation, theil_sen |
| Polar / wind | polar_plot, pollution_rose, wind_rose (need ws/wd in data) |
| Stats | aq_stats, time_average, cor_plot |
| Health | ping, health_r, openair_docs |
Full list: auto-discovered from r/scripts/ — see legacy sections in git history or run the server and list tools.
Requirements
- Python 3.11+
- R 4.1+ with openair 3.x (ggplot2 backend). Run
health_rafter install. - R only on the server host, not on every IDE client.
Future (out of v0.1)
| Package | Use case |
|---|---|
| worldmet | Meteo NOAA when CSV has no wind — planned v0.2 |
| openairmaps | Leaflet maps — v0.3+ if community demand |
| deweather | Met normalisation — advanced / v1.x |
Appendix — sensor export MCPs
prepare_series_for_openair accepts optional inbiot_exports for pipelines that expose JSON time-series exports. Standalone researchers use CSV or import_* only.
License
MIT — see LICENSE. Runtime uses R openair (GPL) on the server.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.