Civic Data MCP Server

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.

Category
Visit Server

README

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

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

  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.


<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>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured