Open Census MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Open Census MCP Server What's the median household income in Chicago compared to the national average?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Open Census MCP Server
Disclaimer
This is an independent, open-source experiment. It is not affiliated with, endorsed by, or sponsored by the U.S. Census Bureau or the Department of Commerce.
Data retrieved through this project remains subject to the terms of the original data providers (e.g., Census API Terms of Service).
Related MCP server: U.S. Census Bureau Data API MCP
What Is This?
An AI-powered statistical consultant for U.S. Census data. Ask questions in plain English, get accurate demographic data with proper statistical context, methodology guidance, and fitness-for-use caveats.
The insight: Census data has a pragmatics problem, not a search problem. Knowing WHICH data to use and HOW to interpret it matters more than finding it. This system encodes statistical consulting expertise into the AI interaction layer.
Status
🔬 Active Research & Rebuild — v3 architecture in progress. See docs/lessons_learned/ for the v1/v2 journey.
Vision
Census data influences billions in policy decisions, but accessing it effectively requires specialized knowledge. This project aims to make America's most valuable public dataset as easy to use as asking a question — with the statistical rigor of a professional consultant.
The opportunity: Every city council member, journalist, nonprofit director, and curious citizen should be able to fact-check claims and understand their communities with the same ease an eighth-grader uses a search engine. The data is public. The expertise to use it properly shouldn't be gatekept by technical complexity.
Architecture (v3)
Pure Python MCP server with pragmatic rules engine. No R dependency.
Pragmatic Rules Layer: Fitness-for-use constraints (MOE thresholds, coverage bias, temporal validity, source selection)
Census API Integration: Direct Python calls to Census Bureau APIs
Knowledge Base: Methodology documentation for RAG-enhanced guidance
Details: docs/architecture/ (coming soon)
Project Structure
docs/ # Systems engineering documentation
requirements/ # ConOps, SRS
architecture/ # System architecture
decisions/ # ADRs, trade studies
design/ # Detailed design
verification/ # V&V, evaluation results
lessons_learned/ # Project narrative & lessons
knowledge-base/ # Source docs & pragmatic rules
source-docs/ # Census methodology PDFs (gitignored)
rules/ # Extracted pragmatic rules
methodology/ # Processed methodology content
src/ # MCP server source code
tests/ # Evaluation harness & unit tests
scripts/ # Build & utility scriptsAcknowledgments
U.S. Census Bureau — for collecting and maintaining vital public data
Kyle Walker — Analyzing US Census Data textbook as knowledge base source
Anthropic — Model Context Protocol enabling AI tool integration
Contributing
Contributions welcome, especially:
Domain expertise from Census data veterans
Statistical methodology review
Evaluation test cases (real-world query scenarios)
License
MIT License - see LICENSE file for details.
Available Tools
3 toolsexplore_variablesA
Discover Census variables by concept or keyword.
Use when the user describes what they want in plain language and you need to identify the correct variable codes.
Returns matching variables with descriptions and table context.
NOTE: Variable search is a known weak spot. This provides basic keyword matching. Results may be incomplete.
Inputs: concept (required), year, product.
get_census_dataA
Retrieve Census data with statistical methodology guidance.
Returns estimates, margins of error, and pragmatic context about fitness-for-use, reliability, and interpretation caveats.
Use this after grounding with get_methodology_guidance. Always review the pragmatics field before interpreting results.
Inputs: variables (required), state (required), county, place, +3 more.
get_methodology_guidanceA
Query statistical methodology guidance by topic.
Call this FIRST for every query to ground your orientation.
Topics include:
small_area: Population thresholds, estimate availability
temporal_comparison: Comparing across years, overlapping periods
margin_of_error: Reliability, coefficient of variation, precision
dollar_values: Inflation adjustment for income/rent/value comparisons
geography: Boundary changes, jurisdiction types, PUMA/tract availability
period_estimate: ACS period vs point-in-time interpretation
suppression: Data availability and reliability-based suppression
comparison: Rules for comparing estimates across products or geographies
population_threshold: Minimum population for data product availability
When in doubt, request more topics rather than fewer.
Inputs: topics (required), domain.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose with no overlap: explore_variables for variable discovery, get_methodology_guidance for statistical methodology orientation, and get_census_data for data retrieval. The descriptions explicitly guide when to use each tool, eliminating any ambiguity.
All three tools follow a consistent verb_noun pattern with underscores: explore_variables, get_methodology_guidance, and get_census_data. The naming is uniform and predictable across the set.
With only 3 tools, the set feels thin for a Census data domain that typically involves complex workflows like filtering, aggregation, or visualization. While the tools cover core functions, the low count may limit agent capabilities for comprehensive analysis.
The tools cover key aspects: methodology guidance, variable discovery, and data retrieval, forming a logical workflow. However, there are minor gaps such as no tools for data transformation, geographic mapping, or advanced filtering, which agents might need to work around.
Maintenance
Related MCP Connectors
Query US Census Bureau data: demographics, economics, and housing statistics.
Ask questions about a CSV in plain English and get answers, charts and cleaned data back.
Ask questions in plain language, get answers from your business database. No SQL required.
Query U.S. Census Bureau data, variables, and geography via MCP.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to query official Census Bureau datasets and statistics, resolve geographies to FIPS codes, and retrieve aggregate population and demographic data.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to access official Census Bureau statistics by listing datasets, fetching aggregate data and geography, resolving FIPS codes, and retrieving population data through natural-language prompts.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to query official Census Bureau statistics by listing datasets, retrieving geographies and aggregate data, and resolving geographic names to FIPS codes through natural-language interactions.MIT
- AlicenseNot gradedqualityAmaintenanceConnects AI assistants with official Census Bureau statistics and data from the Census Data API and other official sources, enabling users to list datasets, fetch geography and aggregate data, resolve FIPS codes, and retrieve population statistics through natural language.MIT