Find air-quality monitoring stations, read latest sensor values, and pull historical pollutant series via MCP. STDIO or Streamable HTTP.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add openaq --env OPENAQ_API_KEY='<OPENAQ_API_KEY>' -- npx -y @cyanheads/openaq-mcp-server~/.codex/config.toml
[mcp_servers.openaq]
command = "npx"
args = ["-y", "@cyanheads/openaq-mcp-server"]
env = { OPENAQ_API_KEY = "<OPENAQ_API_KEY>" }
# codex mcp add openaq --env OPENAQ_API_KEY='<OPENAQ_API_KEY>' -- npx -y @cyanheads/openaq-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"openaq": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openaq-mcp-server"
],
"env": {
"OPENAQ_API_KEY": "<OPENAQ_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"openaq": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/openaq-mcp-server"
],
"env": {
"OPENAQ_API_KEY": "<OPENAQ_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"openaq": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openaq-mcp-server"
],
"env": {
"OPENAQ_API_KEY": "<OPENAQ_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"openaq": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openaq-mcp-server"
],
"env": {
"OPENAQ_API_KEY": "<OPENAQ_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"openaq": {
"command": "npx",
"args": [
"-y",
"@cyanheads/openaq-mcp-server"
],
"env": {
"OPENAQ_API_KEY": "<OPENAQ_API_KEY>"
}
}
}
}Remote
claude mcp add --transport http openaq https://openaq.caseyjhand.com/mcp~/.codex/config.toml
[mcp_servers.openaq]
url = "https://openaq.caseyjhand.com/mcp"
# codex mcp add openaq --url https://openaq.caseyjhand.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"openaq": {
"url": "https://openaq.caseyjhand.com/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"openaq": {
"type": "http",
"url": "https://openaq.caseyjhand.com/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"openaq": {
"httpUrl": "https://openaq.caseyjhand.com/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"openaq": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://openaq.caseyjhand.com/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"openaq": {
"url": "https://openaq.caseyjhand.com/mcp"
}
}
}Environment variables
OPENAQ_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.