MCP.so
登录

AQICN MCP Server

@mattmarcin

基本信息

分类

其他

传输方式

stdio

作者

mattmarcin

关于 AQICN MCP Server

An MCP server to get Air Quality Data using AQICN.org

#aqicn#air-quality#data-tools

AQICN MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "aqicn-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli",
        "install",
        "@mattmarcin/aqicn-mcp",
        "--client",
        "claude"
      ]
    }
  }
}

AQICN MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is AQICN MCP Server?

This is a Model Context Protocol (MCP) server that provides air quality data tools from the World Air Quality Index (AQICN) project. It allows LLMs to fetch real-time air quality data for cities and coordinates worldwide.

How to use AQICN MCP Server?

Install via Smithery (npx -y @smithery/cli install @mattmarcin/aqicn-mcp --client claude) or manually with uv pip install -e .. Set the AQICN_API_KEY environment variable in a .env file or export it. Run in development mode with mcp dev aqicn_server.py, install in Claude Desktop with mcp install aqicn_server.py, or execute directly with python aqicn_server.py. Use the provided tools (city_aqi, geo_aqi, search_station) via the MCP client.

Key features of AQICN MCP Server

  • city_aqi: get air quality data by city name
  • geo_aqi: get air quality data by coordinates
  • search_station: search monitoring stations by keyword
  • Real‑time AQI, station, pollutant, time, coordinates
  • Worldwide coverage through the AQICN project

Use cases of AQICN MCP Server

  • Retrieve the current AQI for a specific city (e.g., Beijing)
  • Get air quality data for a location using latitude/longitude (e.g., Tokyo)
  • Search for monitoring stations matching a keyword (e.g., "london")

常见问题

1

What tools are available?

Three tools: `city_aqi` (by city name), `geo_aqi` (by coordinates), and `search_station` (by keyword).

2

How do I install the server?

Install automatically via Smithery or manually using `uv` and `pip install -e .`.

3

How do I set up the API key?

Create a `.env` file with `AQICN_API_KEY=your_key` or set it as an environment variable in your shell.

4

What data does `city_aqi` return?

Returns AQI value, station name, dominant pollutant (if available), measurement timestamp, and station coordinates.

5

How do I search for stations?

Use the `search_station` tool with a keyword (city name, station name, etc.) to get a list of matching stations with their IDs and coordinates.

评论

其他 分类下的更多 MCP 服务器