MCP Hub
Back to servers

Civic Data MCP Server

A comprehensive MCP server providing tools to access public data from NOAA, US Census, NASA, World Bank, and EU Open Data portals. It enables Claude to retrieve real-time weather, demographic stats, space imagery, and economic indicators, often without requiring API keys.

Tools
22
Updated
Jan 12, 2026

mcp-civic-data

Access free government and open data APIs through Claude

MIT License 22 Tools 7 APIs Python 3.11+

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

APICoverageKey Required
NOAA WeatherUS forecasts, alerts, radarNo
OpenWeatherGlobal weather conditionsYes
US CensusPopulation, demographics, housingNo
NASAAPOD, Mars rovers, image libraryNo (optional)
World BankGDP, poverty, country indicatorsNo
Data.gov300,000+ US government datasetsNo
EU Open DataEuropean Union datasetsNo

💡 Why Use This?

FeatureDescription
Zero configWorks immediately - most APIs need no keys
Graceful fallbackMissing keys? Those tools just won't appear
Real dataLive government sources, not cached or stale
22 toolsFrom quick lookups to raw API access
Well-documentedEvery tool has clear parameters and examples

📦 Tool Catalog

CategoryToolsWhat You Can Do
Weather5US forecasts, alerts, global conditions
Census4Population, demographics, housing stats
NASA4Astronomy photos, Mars rovers, image search
Economics3Country GDP, poverty, comparisons
Data.gov3Search/explore US government datasets
EU Data3Search/explore European datasets

🔧 All Tools

Weather (NOAA + OpenWeather)

ToolDescription
get_weather_forecast7-day forecast for US coordinates
get_weather_alertsActive alerts by state (CA, TX, NY...)
get_global_weatherCurrent weather for any city worldwide
query_noaaRaw NOAA API access
query_openweatherRaw OpenWeather API access

US Census

ToolDescription
get_populationPopulation by state or county
get_demographicsAge, race, income breakdown
get_housing_statsHome values, rent, vacancy rates
query_censusRaw Census API with custom variables

NASA

ToolDescription
get_astronomy_photoAstronomy Picture of the Day
get_mars_rover_photosCuriosity, Perseverance photos
search_nasa_imagesSearch NASA's image/video library
query_nasaRaw NASA API access

World Bank Economics

ToolDescription
get_country_indicatorsGDP, population, poverty for any country
compare_countriesCompare indicators across countries
query_worldbankRaw World Bank API access

Data.gov

ToolDescription
search_datasetsSearch 300,000+ US government datasets
get_dataset_infoMetadata and download links
query_datagovRaw CKAN API access

EU Open Data

ToolDescription
search_eu_datasetsSearch European Union datasets
get_eu_dataset_infoDataset details and distributions
query_eu_dataRaw EU Data Portal API access

⚙️ Configuration

Environment Variables

VariableRequiredDescription
OPENWEATHER_API_KEYFor global weatherGet free key
NASA_API_KEYOptionalHigher rate limits (1000/hr vs 30/hr)
API_TIMEOUTOptionalRequest 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

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing)
  5. Open a Pull Request

📜 License

MIT License - see LICENSE for details.


Plugin Marketplace

Reviews

No reviews yet

Sign in to write a review