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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。