AQICN MCP 服务器
这是一个模型上下文协议 (MCP) 服务器,提供来自世界空气质量指数 (AQICN) 项目的空气质量数据工具。它允许 LLM 获取全球城市和坐标的实时空气质量数据。
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 AQICN MCP 服务器:
通过推荐的 uv 安装(手动)
我们建议使用uv来管理您的 Python 环境:
环境设置
在项目根目录中创建一个.env
文件(您可以从.env.example
复制):
或者,您可以直接设置环境变量:
运行服务器
开发模式
测试和调试服务器的最快方法是使用 MCP Inspector:
Claude 桌面集成
服务器准备就绪后,请在 Claude Desktop 中安装它:
直接执行
对于测试或自定义部署:
可用工具
1. 城市阿奇
获取特定城市的空气质量数据。
输入:
city
:获取空气质量数据的城市名称
输出: AQIData
包含:
aqi
:空气质量指数值station
:车站名称dominant_pollutant
:主要污染物(如果有)time
:测量的时间戳coordinates
:车站的经纬度
2. geo_aqi
使用坐标获取特定位置的空气质量数据。
输入:
latitude
:位置的纬度longitude
:位置的经度
**输出:**与city_aqi
相同
3. 搜索站
通过关键词搜索空气质量监测站。
输入:
keyword
:搜索车站的关键字(城市名称、车站名称等)
输出: StationInfo
列表,其中包含:
name
:车站名称station_id
:唯一车站标识符coordinates
:车站的经纬度
示例用法
使用 MCP Python 客户端:
贡献
欢迎随时提交问题和拉取请求。请确保您的更改包含适当的测试和文档。
执照
该项目已获得 MIT 许可。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
实现与世界空气质量指数的交互,以获取城市的实时空气质量数据并通过模型上下文协议 (MCP) 协调全球。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that retrieves current weather information for specified cities using the Open-Meteo API, requiring no API key.Last updated -4PythonApache 2.0
- -securityFlicense-qualityProvides current weather and air quality data for any city using WeatherAPI, easily integrating with MCP clients like n8n and Claude Desktop App.Last updated -214JavaScript
Juhe Weather MCP Serverofficial
-security-license-qualityProvides a Model Context Protocol server that enables large language models to query and retrieve real-time weather forecasts for cities and regions across China.Last updated -Python- AsecurityAlicenseAqualityModel Context Protocol (MCP) server that provides weather forecast, warnings, water level associated with flood, and earthquake reports from Malaysia Government's Open API.Last updated -4PythonMIT License