1. Conduid
  2. Files
  3. Civic AI Tools
MCP server · Files

Civic AI Tools

Open-source platform connecting AI assistants to government open data — MCP server, curated civic MCP directory, and anti-hallucination framework for all 559 Socrata portals

39Low

Scored 6 months ago · breakdown

About Civic AI Tools

Civic AI Tools is an MCP server in the Files category: open-source platform connecting AI assistants to government open data — MCP server, curated civic MCP directory, and anti-hallucination framework for all 559 Socrata portals.

Install

From source
git clone https://github.com/npstorey/civic-ai-tools

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Civic AI Tools

Powered by Claude · Grounded in docs

I know everything about Civic AI Tools. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Civic AI Tools

Open in GitHub Codespaces

Use AI to explore NYC Open Data and Google Data Commons — no advanced programming required.

Civic AI Tools connects AI assistants (GitHub Copilot, Cursor, Claude Code) to public datasets using the Model Context Protocol (MCP). Think of MCP as a universal adapter that lets AI talk directly to data sources — so you can ask questions in plain English and get answers from real civic data.

Built for civic technologists, government workers, journalists, and students exploring public data with AI.

Civic AI Tools sits at one layer of a broader landscape where open data meets AI: projects in this space address making data discoverable to AI, making AI mediation legible to humans, feeding signal back to data publishers, and orchestrating AI across civic-data domains. This project focuses on the second layer — evidence packages that make AI analyses inspectable, reproducible, and cryptographically verifiable. See docs/research/landscape-analysis.md for the wider landscape.

What can you do with this?

  • Ask questions about NYC 311 complaints, restaurant inspections, or housing violations in plain English
  • Pull population, income, and demographic data from Google Data Commons
  • Generate visualizations and dashboards from live civic datasets
  • Compare statistics across cities and time periods

Example queries you can ask:

  • "What are the top 311 complaint types in NYC?"
  • "Show me restaurant inspection grades by borough"
  • "Compare NYC's population trend with Los Angeles and Chicago"

Quick start

Option 1: GitHub Codespaces (recommended — nothing to install)

  1. Click the "Open in GitHub Codespaces" button above
  2. Wait for the environment to build (everything is installed automatically)
  3. Open Copilot Chat (sidebar chat icon or Ctrl+Shift+I), switch to Agent mode, and start asking questions

Optional: For higher rate limits, add Codespaces Secrets before launching:

  • Go to your fork's Settings > Secrets and variables > Codespaces
  • Add SOCRATA_APP_TOKEN (get one free)
  • Add DC_API_KEY (get one free) — required for Data Commons

Without API keys, NYC Open Data queries still work (with lower rate limits). Data Commons is skipped if no key is set.

Option 2: Local setup

git clone https://github.com/npstorey/civic-ai-tools.git
cd civic-ai-tools
cp .env.example .env       # Add your API keys (see file for instructions)
./scripts/setup.sh         # Builds MCP servers and generates config files

Then open the project in your preferred tool:

  • VS Code + Copilot — Reload window (Ctrl+Shift+P > "Developer: Reload Window"), use Copilot Chat in Agent mode
  • Cursor — Open the folder in Cursor (restart if MCP servers don't appear)
  • Claude Code — Run claude in this directory and approve the MCP servers when prompted

See docs/setup.md for detailed instructions and troubleshooting.

What's included

MCP Server Data Source What you can query
Socrata MCP NYC Open Data 311 complaints, restaurant inspections, housing violations, traffic data, and 2,000+ other datasets
Data Commons MCP Google Data Commons Population, income, demographics, and other statistical indicators across cities, states, and countries

Requirements (local setup only)

  • Node.js 18+
  • Python 3.11+
  • uv (recommended) — install with curl -LsSf https://astral.sh/uv/install.sh | sh

Example scripts

The examples/ directory contains standalone scripts you can run directly with uv:

uv run examples/real_data_analysis.py         # Fetch and analyze live NYC + Data Commons data
uv run examples/nyc_311_dashboard.py          # Launch a Streamlit dashboard of 311 data
uv run examples/create_html_visualizations.py # Generate an interactive HTML dashboard

See examples/README.md for the full list.

Related projects

Repository Description
socrata-mcp-server The MCP server that connects AI tools to Socrata open data portals. This repo uses it as a dependency.
civic-ai-tools-website Demo website at civicaitools.org — side-by-side comparison of AI with and without live data access

Documentation

Getting started

Data and skills

Governance and discipline

Architecture

Research

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines — there are ways to help even if you don't write code.

Glossary

New to some of these terms? Here's a quick reference:

Term What it means
Repo (repository) A folder of code hosted on GitHub that tracks changes over time
Clone Download a copy of a repo to your computer
MCP Model Context Protocol — a standard way for AI tools to connect to external data sources
API Application Programming Interface — a way for programs to request data from a service
API key A password-like string that identifies you when making API requests
Codespace A cloud development environment that runs in your browser — no local setup needed

Disclaimer

This is a personal project and is not affiliated with, endorsed by, or representative of any employer or organization.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Civic AI Tools

How do I install Civic AI Tools?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Civic AI Tools safe to use with an AI agent?

Its trust score is 39 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Civic AI Tools still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.