The Civic Data MCP Server connects AI agents to 13 authoritative government and open data APIs through ~40 specialized tools, enabling real-time access to civic, environmental, and space data. Most sources require no API key; only OpenWeather requires one, while NASA and FIRMS offer optional keys for higher rate limits.
Weather & Air Quality
US weather forecasts (7-day, by coordinates) and severe weather alerts by state (NOAA)
Global current weather for any city (OpenWeather)
Air quality readings (current & historical) from monitoring stations worldwide (OpenAQ)
Water & Environment
Real-time US river stream flow and flood levels (USGS)
Community radiation measurements with date range filtering (Safecast)
Hazards & Events
Recent earthquakes worldwide by magnitude or location (USGS)
Active wildfires and hotspots by location or country via satellite data (NASA FIRMS)
Space weather summaries: solar flares, geomagnetic storms, Kp index, and NOAA alerts
Demographics & Economics
US population, age/race/income breakdowns, and housing statistics by state or county (US Census)
GDP, poverty, and other economic indicators for 200+ countries, with multi-country comparison (World Bank)
NASA Data
Astronomy Picture of the Day, Mars rover photos, and NASA image/video library search
Open Data Catalogs
Search and retrieve metadata for 300,000+ US government datasets (Data.gov)
Search and retrieve metadata for European Union datasets (EU Open Data Portal)
Raw API Access For all 13 integrated sources, raw query tools allow direct API access for advanced or custom data retrieval beyond the high-level tools.
Provides tools for searching and retrieving datasets from the EU Open Data Portal, including dataset metadata and distribution information.
Enables access to NASA's APIs including Astronomy Picture of the Day, Mars rover photos from Curiosity and Perseverance, and NASA's image/video library search.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Civic Data MCP Serverwhat's the population of California?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-civic-data
Real-time government and open data for AI agents
An MCP server that connects AI agents to 13 free, authoritative data APIs — weather, earthquakes, air quality, wildfires, space weather, demographics, economics, and more.
No API keys required for 11 of 13 sources. Just install and go.
Get Started · Data Sources · Tool Reference · Configuration
Get Started
Claude Desktop / Claude Code
{
"mcpServers": {
"civic-data": {
"command": "python",
"args": ["-m", "mcp_govt_api"],
"env": {
"OPENWEATHER_API_KEY": "optional",
"NASA_API_KEY": "optional"
}
}
}
}Standalone
pip install mcp-civic-data
python -m mcp_govt_apiData Sources
Earth & Environment
Source | What It Covers | Key |
US forecasts, severe weather alerts | -- | |
Global weather for any city | Required | |
Air quality from stations worldwide | -- | |
Real-time stream flow and flood levels across every US river | -- | |
Community radiation monitoring, 150M+ measurements | -- |
Hazards & Events
Source | What It Covers | Key |
Every earthquake on Earth, real-time | -- | |
Active wildfires detected from satellites | Optional | |
Solar wind, geomagnetic storms, solar flares | -- |
Demographics & Economics
Source | What It Covers | Key |
Population, demographics, housing for every US county | -- | |
GDP, poverty, unemployment for 200+ countries | -- |
Open Data Catalogs
Source | What It Covers | Key |
300,000+ US government datasets | -- | |
European Union datasets, multilingual | -- | |
APOD, Mars rover photos, image/video library | Optional |
Key:
--= no key needed.Optional= works without a key, key unlocks higher rate limits.Required= key needed to enable.
What You Can Ask
"What's the weather forecast for Washington DC?"
"What's the air quality in Beijing right now?"
"Any recent earthquakes near San Francisco?"
"Are there active fires in Australia?"
"What's the current space weather like?"
"Compare GDP between USA, China, and India"
"What's the population and median income in California?"
"Show me recent photos from the Perseverance rover"
"What are the radiation levels near Fukushima?"
"What are stream flow levels in Colorado?"
"Find datasets about climate change on Data.gov"Tool Reference
Every data source exposes high-level tools for common queries and a raw query tool for full API access.
Tool | Description |
| 7-day forecast for US coordinates |
| Active severe weather alerts by state |
| Current conditions for any city worldwide |
| Raw NOAA API access |
| Raw OpenWeather API access |
Tool | Description |
| Current readings from stations near a location |
| Historical measurements for a monitoring station |
| Raw OpenAQ v3 API access |
Tool | Description |
| Stream flow and gage height by US state |
| All readings for a specific USGS monitoring site |
| Raw USGS Water Services API access |
Tool | Description |
| Recent quakes worldwide above a magnitude threshold |
| Recent quakes near a geographic location |
| Raw USGS Earthquake API access |
Tool | Description |
| Active fires and hotspots near a location |
| Active fires for an entire country (ISO alpha-3) |
| Raw NASA FIRMS API access |
Tool | Description |
| Solar wind speed, Kp index, NOAA storm scales |
| Recent solar flare activity and classifications |
| Active NOAA space weather alerts and warnings |
| Raw SWPC API access |
Tool | Description |
| Radiation readings near a location |
| Radiation history with date range filtering |
| Raw Safecast API access |
Tool | Description |
| Population by state or county |
| Age, race, income breakdown |
| Home values, rent, vacancy rates |
| Raw Census API with custom variables |
Tool | Description |
| GDP, population, poverty for any country |
| Compare indicators across multiple countries |
| Raw World Bank API access |
Tool | Description |
| Astronomy Picture of the Day |
| Photos from Curiosity, Perseverance, and more |
| Search NASA's image and video library |
| Raw NASA API access |
Tool | Description |
| Search 300,000+ US government datasets |
| Dataset metadata and download links |
| Raw CKAN API access |
| Search European Union datasets |
| EU dataset details and distributions |
| Raw EU Data Portal API access |
Configuration
Variable | Purpose | Default |
| Enables global weather tools | (disabled) |
| Higher rate limits for NASA + FIRMS |
|
| Request timeout in seconds |
|
On startup the server prints which APIs are available:
API Availability:
✓ NOAA Weather ✓ Census ✓ World Bank
✓ OpenAQ ✓ USGS Water ✓ USGS Earthquakes
✓ Safecast ✓ Data.gov ✓ EU Open Data
✓ Space Weather ✓ NASA FIRMS ✓ NASA
✗ OpenWeather (key not set)Development
git clone https://github.com/EricGrill/mcp-civic-data.git
cd mcp-civic-data
pip install -e .
python -m mcp_govt_apiContributing
Fork the repository
Create a feature branch (
git checkout -b feature/new-source)Commit your changes
Open a Pull Request
See the issue tracker for data sources we'd like to add.
License
MIT — see LICENSE.
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.