civic-ai-tools
by npstorey·★ 30·Score 44
MCP server connecting AI assistants to government open data with anti-hallucination framework.
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:
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 READMEquery_socrataQuery NYC Open Data datasets including 311 complaints, restaurant inspections, and housing violations
query_data_commonsQuery Google Data Commons for population, income, and demographic data
create_visualizationGenerate 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
Installation
Quick start (recommended)
- Click the **"Open in GitHub Codespaces"** button in the repository
- Wait for environment to build (everything installs automatically)
- 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.shClaude 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
Last updated · Auto-generated from public README + GitHub signals.