Civic Data MCP Server
Provides access to 7 free government and open data APIs including NOAA weather, US Census demographics, NASA imagery, World Bank economics, Data.gov, and EU Open Data through 22 specialized tools, with most requiring no API keys.
README
mcp-civic-data
Access free government and open data APIs through Claude
Quick Start | Tool Catalog | Configuration | Examples
🌐 What is this?
An MCP (Model Context Protocol) server that gives Claude access to 7 free government and open data APIs - weather forecasts, census demographics, NASA imagery, economic indicators, and more. No API keys required for most features.
Part of the Claude Code Plugin Marketplace ecosystem.
🚀 Quick Start
Add to Claude Desktop:
{
"mcpServers": {
"civic-data": {
"command": "python",
"args": ["-m", "mcp_govt_api"],
"env": {
"OPENWEATHER_API_KEY": "optional-for-global-weather",
"NASA_API_KEY": "optional-for-higher-limits"
}
}
}
}
Or install manually:
pip install mcp-civic-data
📡 Included APIs
| API | Coverage | Key Required |
|---|---|---|
| NOAA Weather | US forecasts, alerts, radar | No |
| OpenWeather | Global weather conditions | Yes |
| US Census | Population, demographics, housing | No |
| NASA | APOD, Mars rovers, image library | No (optional) |
| World Bank | GDP, poverty, country indicators | No |
| Data.gov | 300,000+ US government datasets | No |
| EU Open Data | European Union datasets | No |
💡 Why Use This?
| Feature | Description |
|---|---|
| Zero config | Works immediately - most APIs need no keys |
| Graceful fallback | Missing keys? Those tools just won't appear |
| Real data | Live government sources, not cached or stale |
| 22 tools | From quick lookups to raw API access |
| Well-documented | Every tool has clear parameters and examples |
📦 Tool Catalog
| Category | Tools | What You Can Do |
|---|---|---|
| Weather | 5 | US forecasts, alerts, global conditions |
| Census | 4 | Population, demographics, housing stats |
| NASA | 4 | Astronomy photos, Mars rovers, image search |
| Economics | 3 | Country GDP, poverty, comparisons |
| Data.gov | 3 | Search/explore US government datasets |
| EU Data | 3 | Search/explore European datasets |
🔧 All Tools
Weather (NOAA + OpenWeather)
| Tool | Description |
|---|---|
get_weather_forecast |
7-day forecast for US coordinates |
get_weather_alerts |
Active alerts by state (CA, TX, NY...) |
get_global_weather |
Current weather for any city worldwide |
query_noaa |
Raw NOAA API access |
query_openweather |
Raw OpenWeather API access |
US Census
| Tool | Description |
|---|---|
get_population |
Population by state or county |
get_demographics |
Age, race, income breakdown |
get_housing_stats |
Home values, rent, vacancy rates |
query_census |
Raw Census API with custom variables |
NASA
| Tool | Description |
|---|---|
get_astronomy_photo |
Astronomy Picture of the Day |
get_mars_rover_photos |
Curiosity, Perseverance photos |
search_nasa_images |
Search NASA's image/video library |
query_nasa |
Raw NASA API access |
World Bank Economics
| Tool | Description |
|---|---|
get_country_indicators |
GDP, population, poverty for any country |
compare_countries |
Compare indicators across countries |
query_worldbank |
Raw World Bank API access |
Data.gov
| Tool | Description |
|---|---|
search_datasets |
Search 300,000+ US government datasets |
get_dataset_info |
Metadata and download links |
query_datagov |
Raw CKAN API access |
EU Open Data
| Tool | Description |
|---|---|
search_eu_datasets |
Search European Union datasets |
get_eu_dataset_info |
Dataset details and distributions |
query_eu_data |
Raw EU Data Portal API access |
⚙️ Configuration
Environment Variables
| Variable | Required | Description |
|---|---|---|
OPENWEATHER_API_KEY |
For global weather | Get free key |
NASA_API_KEY |
Optional | Higher rate limits (1000/hr vs 30/hr) |
API_TIMEOUT |
Optional | Request timeout in seconds (default: 30) |
API Availability on Startup
API Availability:
✓ NOAA (no key required)
✓ Census (no key required)
✓ NASA (no key, limited to 30 req/hour)
✗ OpenWeather (OPENWEATHER_API_KEY not set)
✓ World Bank (no key required)
✓ Data.gov (no key required)
✓ EU Open Data (no key required)
📝 Examples
Get weather forecast
"What's the weather forecast for Washington DC?"
→ Uses get_weather_forecast(38.8894, -77.0352)
Check demographics
"What's the population and median income in California?"
→ Uses get_demographics("CA")
Explore Mars
"Show me recent photos from the Perseverance rover"
→ Uses get_mars_rover_photos(rover="perseverance")
Compare economies
"Compare GDP between USA, China, and India"
→ Uses compare_countries(["USA", "CHN", "IND"])
Find government data
"Find datasets about climate change on Data.gov"
→ Uses search_datasets("climate change")
🏗️ Development
# Clone and install
git clone https://github.com/EricGrill/mcp-civic-data.git
cd mcp-civic-data
pip install -e .
# Run locally
python -m mcp_govt_api
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing) - Open a Pull Request
📜 License
MIT License - see LICENSE for details.
<p align="center"> <a href="https://github.com/EricGrill/agents-skills-plugins"> <img src="https://img.shields.io/badge/Part%20of-Claude%20Code%20Plugin%20Marketplace-blueviolet?style=for-the-badge" alt="Plugin Marketplace"> </a> </p>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。