CleanAirData
Historical PM2.5 and Clean Air Score for US cities; copied records name their source city.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"cleanairdata": {
"url": "https://cleanairdata.org/api/mcp"
}
}
}远程端点
https://cleanairdata.org/api/mcpstreamable-http它能做什么
工具清单
工具(3)
🟢get_city_air_quality(city, state)
Historical Clean Air Score, grade, latest annual PM2.5 mean, unhealthy-day share, trend and yearly PM2.5 for one US city. Each city is either an own_record (scored from its own data) or a copied_record (the full record of the nearest scored city, named in source_city, source_state and source_distance_miles). A copied_record describes the source city, not measurements taken in the named city. Values are historical annual data, not the current AQI.
输入模式
{
"type": "object",
"properties": {
"city": {
"type": "string",
"description": "City name, for example \"Phoenix\"."
},
"state": {
"type": "string",
"description": "Two-letter state code, for example \"AZ\"."
}
},
"required": [
"city",
"state"
],
"additionalProperties": false
}🟢compare_cities(city_a, state_a, city_b, state_b)
Side-by-side historical records for two US cities with the difference in Clean Air Score and PM2.5. Warnings list any copied record. Each city is either an own_record (scored from its own data) or a copied_record (the full record of the nearest scored city, named in source_city, source_state and source_distance_miles). A copied_record describes the source city, not measurements taken in the named city. Values are historical annual data, not the current AQI.
输入模式
{
"type": "object",
"properties": {
"city_a": {
"type": "string"
},
"state_a": {
"type": "string",
"description": "Two-letter state code."
},
"city_b": {
"type": "string"
},
"state_b": {
"type": "string",
"description": "Two-letter state code."
}
},
"required": [
"city_a",
"state_a",
"city_b",
"state_b"
],
"additionalProperties": false
}🟢rank_cities(state, limit, own_records_only)
Cities with the highest Clean Air Score (cleanest first), optionally within one state. By default only cities with their own record are ranked, so copied records do not crowd the list. Each city is either an own_record (scored from its own data) or a copied_record (the full record of the nearest scored city, named in source_city, source_state and source_distance_miles). A copied_record describes the source city, not measurements taken in the named city. Values are historical annual data, not the current AQI.
输入模式
{
"type": "object",
"properties": {
"state": {
"type": "string",
"description": "Optional two-letter state code."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 25,
"description": "Number of cities, default 10, maximum 25."
},
"own_records_only": {
"type": "boolean",
"description": "Default true. Set false to include copied records."
}
},
"additionalProperties": false
}社区
证据