Civic Data MCP Server
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
Authoritative civic and government data for AI agents
An MCP server that connects AI agents to 33 free, authoritative public data APIs across weather, hazards, air quality, water, tides, radiation, demographics, economics, education, energy, labor statistics, public health, clinical trials, behavioral health, healthcare quality, disaster management, EPA environmental compliance, FDA safety data, vehicle safety, workplace safety, national parks, national forests, consumer financial protection, open data discovery, cybersecurity, SEC disclosures, Federal Reserve economic indicators, BEA economic accounts, BTS transportation data, SBA small business data, USDA food and agriculture data, USFS wildfire and forest data, and FBI crime/justice statistics.
Built for practical agent workflows: concise high-level tools, raw query access where it matters, and location-aware inputs that accept city names, ZIP codes, addresses, or raw coordinates.
No API keys required for 22 of 33 sources. Install it, point your MCP client at it, and start querying real civic data.
Get Started · What's New · Data Sources · Tool Reference · Roadmap · Contributing
Get Started
Claude Desktop / Claude Code
{
"mcpServers": {
"civic-data": {
"command": "python3",
"args": ["-m", "mcp_govt_api"],
"env": {
"OPENWEATHER_API_KEY": "optional",
"NASA_API_KEY": "optional",
"FRED_API_KEY": "optional",
"BLS_API_KEY": "optional",
"NPS_API_KEY": "optional",
"EIA_API_KEY": "optional",
"BEA_API_KEY": "optional",
"USDA_API_KEY": "optional",
"FBI_CDE_API_KEY": "optional"
}
}
}
}Standalone
pip install mcp-civic-data
python3 -m mcp_govt_apiWhat's New
Added BJS / FBI Crime Data Explorer tools for crime estimates, arrest data, and justice datasets
Added USDA Forest Service tools for active wildfires, fire perimeters, and National Forest search via WFIGS/ArcGIS
Added EPA environmental compliance tools for ECHO facility search, detailed facility reports, and Toxics Release Inventory
Added SAMHSA tools for mental health and substance abuse treatment facility locator and behavioral health data
Added CMS tools for hospital quality ratings, Medicare provider search, and healthcare data
Added FDA tools for recalls, adverse events, and drug labels via openFDA
Added CDC public health surveillance tools for disease tracking and vaccination coverage
Added shared geolocation support with a new
lookup_locationtoolUpgraded weather, earthquake, and air-quality tools to accept human-friendly location strings
Added CISA cybersecurity tools and integrated them into the server and README
Added SEC EDGAR tools for filings, submissions, and company facts
Added GitHub Actions CI for install, compile, unit test, import, and build validation
Added
CONTRIBUTING.md,CODE_OF_CONDUCT.md, andSECURITY.mdAdded BEA regional and national economic accounts tools (GDP, income, industry)
Added branch protection and required automated checks on
main
Data 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 | -- | |
Tide predictions, observed water levels, coastal stations | -- | |
Facility compliance, enforcement history, toxic releases (TRI) | -- | |
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 | -- | |
Known exploited vulnerabilities, security alerts, advisories | -- | |
Disaster declarations, assistance data, housing assistance | -- | |
Active wildfires, fire perimeters, National Forest boundaries | -- |
Health & Safety
Source | What It Covers | Key |
Hospital quality ratings, Medicare provider search, healthcare data | -- | |
Drug/food/device recalls, adverse events, drug labels | -- | |
Mental health and substance abuse treatment facilities, behavioral health data | -- | |
Vehicle recalls, consumer complaints, VIN decoding | -- | |
Workplace inspections, violations, fatality reports | -- | |
Clinical study search, trial details, database statistics | -- |
Education
Source | What It Covers | Key |
School districts, school enrollment, college/university data | -- |
Demographics & Economics
Source | What It Covers | Key |
Population, demographics, housing for every US county | -- | |
GDP, poverty, unemployment for 200+ countries | -- | |
Federal Reserve economic data: GDP, inflation, employment, interest rates | Required | |
CPI, unemployment, employment, labor statistics | Optional | |
Regional GDP, personal income, GDP by industry | Required |
Energy
Source | What It Covers | Key |
Electricity, petroleum, natural gas, coal, and energy market data | Required |
Transportation
Source | What It Covers | Key |
Airline on-time performance, border crossing data, transportation datasets | -- |
Small Business
Source | What It Covers | Key |
Small business size standards, disaster loans, open datasets | -- |
Food & Agriculture
Source | What It Covers | Key |
Food nutrition data (FoodData Central), crop production and acreage (NASS) | Required |
Criminal Justice
Source | What It Covers | Key |
Crime estimates, arrest data, justice datasets via FBI Crime Data Explorer | Required |
Finance & Consumer Protection
Source | What It Covers | Key |
Company filings, 10-K, 10-Q, 8-K forms | -- | |
Consumer complaints, financial product issues, company responses | -- |
Public Health
Source | What It Covers | Key |
Disease surveillance, vaccination coverage, public health datasets | -- |
Parks & Recreation
Source | What It Covers | Key |
National parks, alerts, closures, park details | Required |
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 near 10001?"
"Any recent earthquakes near San Francisco?"
"Resolve 1600 Pennsylvania Ave NW to coordinates"
"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?"
"What are the tide predictions for Providence, RI?"
"Find tide stations in Florida"
"Find datasets about climate change on Data.gov"
"What's the current US GDP from FRED?"
"Search FRED for unemployment rate data"
"Get Apple's latest 10-K filing from SEC"
"Show me recent SEC filings for Tesla"
"Search CDC datasets about influenza"
"What are the latest disease surveillance reports for Salmonellosis?"
"Show me vaccination coverage data for Influenza"
"Search for clinical trials on breast cancer"
"Get details for clinical trial NCT04280705"
"How many studies are registered on ClinicalTrials.gov?"
"Are there any known exploited vulnerabilities for Microsoft products?"
"What are the latest CISA security alerts?"
"Show me consumer complaints about mortgages in California"
"What are the most common complaint types filed with the CFPB?"
"What's the current CPI?"
"What's the unemployment rate in California?"
"Show me BLS employment data for 2023"
"What FEMA disaster declarations were made in Florida this year?"
"Show me housing assistance data for Hurricane Ian"
"Search for hospitals in New York with quality ratings"
"What's the quality rating for facility 050001?"
"Find Medicare providers specializing in Cardiology in Texas"
"Show me recent FDA drug recalls in California"
"What adverse events have been reported for aspirin?"
"Get drug label information for ibuprofen"
"Search for national parks in California"
"Are there any alerts at Yosemite?"
"Tell me about Grand Canyon National Park"
"Are there any recalls for 2020 Toyota Camry?"
"Show me consumer complaints for Ford F-150"
"Decode VIN 1HGCM82633A004352"
"Search for school districts in California"
"What's the enrollment at schools in Texas?"
"Find colleges in New York"
"Search for nutritional info on chicken breast"
"What are the detailed nutrients in FDC ID 171688?"
"Show me corn production data for Iowa in 2023"
"What are the current gasoline prices?"
"Show me electricity data for California"
"What energy data categories does the EIA provide?"
"What's California's GDP from BEA?"
"Show me GDP by industry for 2022"
"What datasets does the BEA offer?"
"Show me airline on-time stats for American Airlines"
"What's the border crossing data for El Paso?"
"Search BTS datasets about freight"
"Search SBA datasets for PPP loans"
"What is the SBA size standard for restaurants?"
"Show me SBA disaster loans in Florida"
"Show me OSHA inspections in California"
"What violations were found in OSHA inspection 1234567?"
"Search for workplace fatality reports in Texas"
"Search for EPA-regulated facilities in California"
"Get compliance details for EPA facility 110000350174"
"Show toxic chemical releases in Texas for 2022"
"Find mental health treatment facilities near Chicago"
"Search SAMHSA data for opioid treatment admissions"
"What are the active wildfires in California?"
"Show me wildfire perimeters in Oregon"
"Search for National Forests in Montana"
"What are the crime estimates for California?"
"Show me national arrest data for robbery"
"Search for prisoner statistics datasets"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 a US location by place name or coordinates |
| Active severe weather alerts by state |
| Current conditions for any city worldwide |
| Raw NOAA API access |
| Raw OpenWeather API access |
Tool | Description |
| Area Forecast Discussion from a NWS Weather Forecast Office |
| Active weather alerts filtered by state, event type, and severity |
| NEXRAD radar stations, optionally filtered by state |
Tool | Description |
| Resolve a city, ZIP code, address, or coordinates to a normalized location |
Tool | Description |
| Current readings from stations near a place name or coordinates |
| 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 |
| Tide predictions for a CO-OPS station |
| Observed water levels from a CO-OPS station |
| Search for NOAA CO-OPS tide prediction stations |
Tool | Description |
| Search EPA-regulated facilities via ECHO enforcement database |
| Get detailed compliance info for a facility by registry ID |
| Query Toxics Release Inventory (TRI) data via Envirofacts |
Tool | Description |
| Recent quakes worldwide above a magnitude threshold |
| Recent quakes near a place name or coordinates |
| 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 |
| Search CISA's catalog of actively exploited vulnerabilities |
| Recent CISA security alerts and advisories |
| Weekly CISA vulnerability summaries from major vendors |
| Raw CISA Known Exploited Vulnerabilities catalog access |
Tool | Description |
| Search CDC's open data catalog by keyword |
| Notifiable disease case counts from the NNDSS |
| Vaccination coverage estimates by vaccine and state |
| Raw CDC SODA API access for any dataset |
Tool | Description |
| Search clinical studies by keyword, condition, intervention, or status |
| Get detailed protocol information for a specific trial by NCT ID |
| Get overall ClinicalTrials.gov database statistics |
Tool | Description |
| Search hospitals by name or state with overall quality ratings |
| Get detailed quality measures and ratings for a specific hospital |
| Search Medicare-enrolled healthcare providers by name, state, or specialty |
Tool | Description |
| Search disaster declarations by state, year, or type |
| Detailed summary for a specific disaster number |
| Housing assistance data for disaster survivors |
Tool | Description |
| Current wildfire incidents from WFIGS by state |
| Active fire perimeters and boundaries with acreage |
| Search National Forests by name or state |
Tool | Description |
| Search FDA drug, food, and device recall/enforcement reports |
| Search drug adverse event reports from FAERS |
| Search drug labeling and SPL data (indications, warnings, dosage) |
Tool | Description |
| Search SBA open datasets on data.sba.gov |
| Look up small business size standards by industry or NAICS code |
| Get SBA disaster loan data by state or year |
Tool | Description |
| Search OSHA workplace inspections by state or establishment |
| Get violations for a specific OSHA inspection |
| Search workplace fatality and catastrophe reports |
Tool | Description |
| Search NHTSA vehicle recall campaigns by make, model, and year |
| Get consumer complaints about vehicles from NHTSA |
| Decode a Vehicle Identification Number for make/model/year/specs |
Tool | Description |
| Find mental health and substance abuse treatment facilities near a location |
| Search SAMHSA open data catalog for behavioral health datasets |
| Get detailed info about a specific SAMHSA treatment facility |
Tool | Description |
| Get SEC filings by ticker or CIK (10-K, 10-Q, 8-K) |
| Find a company CIK by name or ticker guidance |
| Get recent submissions filtered by form type |
| Get company facts and XBRL financial data |
| Raw SEC EDGAR API access |
Tool | Description |
| Crime estimates by state or national from the FBI UCR program |
| National arrest data by offense type |
| Search crime and justice datasets on Data.gov |
Tool | Description |
| Search consumer complaints by product, company, state, or keyword |
| Get full details of a specific consumer complaint by ID |
| Aggregate complaint statistics by product, company, or state |
Tool | Description |
| Search parks by name, keyword, or state code |
| Active alerts for a park (closures, cautions, dangers) |
| Detailed park info including hours, fees, and contacts |
Tool | Description |
| Search FoodData Central for nutritional info on foods |
| Get detailed nutrition data for a specific food by FDC ID |
| Get NASS crop production, acreage, and yield data by state and year |
Tool | Description |
| Retail electricity sales, prices, and revenue by state |
| Gasoline, diesel, and heating oil price data |
| Browse available EIA data categories and routes |
Tool | Description |
| Airline on-time performance, delays, and cancellations |
| US-Canada and US-Mexico border crossing entry data |
| Search BTS open datasets on data.bts.gov |
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 |
| Search for economic data series by keyword |
| Get observations for a series (e.g., GDP, UNRATE, CPIAUCSL) |
| Get metadata about a series |
Tool | Description |
| Get time series data for any BLS series (CPI, employment, PPI) |
| Look up common BLS series IDs by keyword |
| National or state-level unemployment rate data |
Tool | Description |
| Regional GDP, income, and employment data by state |
| GDP breakdown by industry sector |
| List available BEA datasets and tables |
Tool | Description |
| Search school districts by state or name |
| Get school enrollment data by state or district |
| Search colleges and universities via IPEDS |
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 |
|
| Enables FRED economic data tools | (disabled) |
| Higher rate limits for BLS (25 to 500 queries/day) | (works without key) |
| Enables National Park Service tools | (disabled) |
| Enables EIA energy market tools | (disabled) |
| Enables BEA economic accounts tools | (disabled) |
| Enables USDA food nutrition and crop data tools | (disabled) |
| Enables FBI Crime Data Explorer / BJS crime tools | (disabled) |
| 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
✓ SEC EDGAR ✓ CDC Open Data ✓ EPA ECHO/TRI
✓ BLS ✓ FEMA
✓ SBA ✓ CFPB
✓ CMS Healthcare ✓ SAMHSA
✗ OpenWeather (key not set)
✗ EIA (key not set)
✗ BEA (key not set)
✗ USDA (key not set)Implementation Roadmap
The active roadmap lives in #87 and the first delivery milestone is First Wave: Foundation + Core Data. The backlog below reflects the implementation plan staged in GitHub issues.
First Wave
Foundation
#48 Add comprehensive error handling with fallback sources
#47 Add intelligent caching for API responses
#44 Add unit tests for 13 API integrations
#45 Extend CI/CD toward publishing and release automation
Core Data Sources
#55 Add NOAA radar and forecast discussion tools
#54 Add FRED economic indicators tools
#53 Add CDC public health surveillance tools
#56 Add EPA environmental compliance and site tools
#77 Add NOAA CO-OPS tides, currents, and coastal flooding tools
Expansion Backlog
Civic, Health, and Public Services
#57 Add BLS labor statistics tools
#61 Add FEMA disaster declarations and assistance tools
#62Add ClinicalTrials.gov health research tools#63 Add USDA Forest Service land and wildfire tools
#64 Add Bureau of Justice Statistics tools
#65 Add USDA food and agriculture data tools
#68 Add SAMHSA mental health and treatment facility tools
#71 Add NCES education and school district tools
#72 Add NHTSA traffic safety and crash statistics tools
#73 Add OSHA workplace safety and enforcement tools
#78 Add SBA small business and disaster loan tools
#80 Add FDA recalls, shortages, and safety alert tools
#84 Add National Park Service parks and alerts tools
Economics, Finance, and Infrastructure
#49 Add composite queries for multi-source data aggregation
#59 Add EIA energy market and grid tools
#75Add CFPB consumer complaint and financial protection tools#79 Add BTS freight and transportation performance tools
#82 Add SEC filings and company disclosure tools
#83 Add BEA regional and national economic accounts tools
Deferred / High-Complexity Integrations
#52 Add GTFS transit and mobility tools
#58 Add FAA airport delay and NAS status tools
#60 Add HUD housing and homelessness tools
#66 Add NREL renewable energy and charging tools
#67 Add USDA NRCS soil, snowpack, and water tools
#69 Add OpenSecrets campaign finance and lobbying tools
#70 Add USCIS immigration statistics tools
#76 Add FCC broadband coverage and internet access tools
#81 Add FEC election results and committee filing tools
#85 Add USITC trade and tariff data tools
The backlog is intentionally opinionated: build strong shared foundations first, then layer in the highest-value public data sources, then take on the messy, identifier-heavy, or operations-heavy integrations.
Development
git clone https://github.com/EricGrill/mcp-civic-data.git
cd mcp-civic-data
python3 -m pip install -e .
python3 -m mcp_govt_apiValidation commands:
python3 -m compileall src
uv run python -m unittest discover -s tests -p "test_*.py"
uv buildContributing
See CONTRIBUTING.md for local setup, validation, and pull request guidance.
Code of Conduct
Contributor expectations are documented in CODE_OF_CONDUCT.md.
Security
Please report vulnerabilities using the process in SECURITY.md.
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Appeared in Searches
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/EricGrill/mcp-civic-data'
If you have feedback or need assistance with the MCP directory API, please join our Discord server