MCP Catalogs
Home

civic-ai-tools

by npstorey·30·Score 44

MCP server connecting AI assistants to government open data with anti-hallucination framework.

ai-llmgovernment-datadeveloper-tools
12
Forks
30
Open issues
this month
Last commit
2d ago
Indexed

Overview

Civic AI Tools is an MCP server that enables AI assistants to access and query government open data through the Model Context Protocol. It primarily connects to NYC Open Data (Socrata) and Google Data Commons, allowing users to ask questions in plain English about civic datasets like 311 complaints, restaurant inspections, and demographic information. The platform includes anti-hallucination features that ensure responses are based on real, verifiable data rather than AI-generated content. It offers both local setup and cloud-based options through GitHub Codespaces.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Journalists analyzing public service complaints and trends
you:Government workers accessing housing and health code violation data
you:Researchers comparing demographic and economic indicators across cities
you:What data sources are available?
you:Do I need API keys to use this?

When to choose this

Choose this when you need to analyze civic/government data using AI assistants and want direct access to datasets without programming expertise.

When NOT to choose this

Don't choose this if you need data sources beyond NYC/Google Data Commons, or if you require higher rate limits for commercial usage.

Tools this server exposes

3 tools extracted from the README
  • query_socrata

    Query NYC Open Data datasets including 311 complaints, restaurant inspections, and housing violations

  • query_data_commons

    Query Google Data Commons for population, income, and demographic data

  • create_visualization

    Generate visualizations and dashboards from live civic datasets

Note: Tool names inferred from the MCP servers described in the table (Socrata MCP and Data Commons MCP) and their capabilities. No explicit tool names or signatures are provided in the README.

Comparable tools

socrata-mcp-serverdatacommons-mcpgovdata-mcp

Installation

Quick start (recommended)

  1. Click the **"Open in GitHub Codespaces"** button in the repository
  2. Wait for environment to build (everything installs automatically)
  3. Open **Copilot Chat** in Agent mode and start asking questions

Local setup

git clone https://github.com/npstorey/civic-ai-tools.git
cd civic-ai-tools
cp .env.example .env
./scripts/setup.sh

Claude Desktop Configuration

Add this to your Claude Desktop config:

{
  "mcpServers": {
    "civic-ai-tools": {
      "command": "uv",
      "args": ["run", "mcp/server.py"],
      "env": {
        "SOCRATA_APP_TOKEN": "YOUR_TOKEN_HERE"
      }
    }
  }
}

FAQ

What data sources are available?
The MCP server primarily connects to NYC Open Data (Socrata) with 2,000+ datasets and Google Data Commons with demographic and statistical indicators.
Do I need API keys to use this?
API keys are optional. NYC Open Data works with lower rate limits without keys, but Data Commons requires an API key for access.

Compare civic-ai-tools with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.