U.S. Census Bureau Data
The U.S. Census Bureau Data API MCP connects AI Assistants with official Census Bureau statistics.
What is U.S. Census Bureau Data?
U.S. Census Bureau Data is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to u.s. census bureau data api mcp connects ai assistants with official census bureau statistics.
The U.S. Census Bureau Data API MCP connects AI Assistants with official Census Bureau statistics.
This server falls under the Search & Data Extraction category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- The U.S. Census Bureau Data API MCP connects AI Assistants w
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx us-census-bureau-data-apiConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use U.S. Census Bureau Data
The U.S. Census Bureau Data API MCP server connects AI assistants to official Census Bureau statistics through a Docker-based setup backed by a PostgreSQL database. It exposes tools to discover available Census datasets, query aggregate demographic and economic data with geographic filters, resolve geography names to FIPS codes, and fetch population statistics by location. Government analysts, data scientists, and researchers can use it to query authoritative U.S. population, housing, economic, and social data through natural language without writing raw API calls.
Prerequisites
- Node.js 18 or later installed
- Docker Desktop installed and running
- A free Census Bureau API key from https://api.census.gov/data/key_signup.html
- An MCP-compatible client such as Claude Desktop
Get a Census Bureau API key
Request a free API key at https://api.census.gov/data/key_signup.html. The key will be emailed to you and is required for all Census API requests.
Clone the repository
Clone the official Census Bureau MCP server repository from GitHub.
git clone https://github.com/uscensusbureau/us-census-bureau-data-api-mcp.git
cd us-census-bureau-data-api-mcpInitialize the database
Use Docker Compose to run the database migrations and seed the metadata database required by the MCP server.
docker compose --profile prod run --rm census-mcp-db-init sh -c "npm run migrate:up && npm run seed"Configure your MCP client
Add the Census MCP server to your claude_desktop_config.json using the provided connect script and set your CENSUS_API_KEY.
{
"mcpServers": {
"mcp-census-api": {
"command": "bash",
"args": ["/path/to/us-census-bureau-data-api-mcp/scripts/mcp-connect.sh"],
"env": {
"CENSUS_API_KEY": "your_census_api_key_here"
}
}
}
}Restart your MCP client and query Census data
Restart Claude Desktop. The server exposes tools to list datasets, fetch geography levels, query aggregate data, and resolve geography FIPS codes for any U.S. location.
U.S. Census Bureau Data Examples
Client configuration
Claude Desktop configuration for the U.S. Census Bureau MCP server using the Docker-backed connect script.
{
"mcpServers": {
"mcp-census-api": {
"command": "bash",
"args": ["/path/to/us-census-bureau-data-api-mcp/scripts/mcp-connect.sh"],
"env": {
"CENSUS_API_KEY": "your_census_api_key_here"
}
}
}
}Prompts to try
Example prompts for querying U.S. Census Bureau data through the MCP server.
- "What is the population of Travis County, Texas?"
- "List all available Census Bureau datasets"
- "Get the median household income for California from the American Community Survey"
- "What is the FIPS code for Cook County, Illinois?"
- "Show me population data by state from the 2020 Decennial Census"Troubleshooting U.S. Census Bureau Data
Docker Compose database initialization fails
Ensure Docker Desktop is running before executing the docker compose command. If the postgres container fails to start, check for port conflicts on port 5432 and ensure no other PostgreSQL instance is running locally.
API key error: Census API returns 403 or key not found
New Census API keys can take up to 24 hours to activate after registration. Ensure the CENSUS_API_KEY environment variable contains the exact key from the activation email with no extra whitespace.
mcp-connect.sh script not found or not executable
Ensure the repository was cloned completely and the scripts directory exists. Run 'chmod +x scripts/mcp-connect.sh' to make the script executable, and use the absolute path to the script in your MCP configuration.
Frequently Asked Questions about U.S. Census Bureau Data
What is U.S. Census Bureau Data?
U.S. Census Bureau Data is a Model Context Protocol (MCP) server that u.s. census bureau data api mcp connects ai assistants with official census bureau statistics. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install U.S. Census Bureau Data?
Follow the installation instructions on the U.S. Census Bureau Data GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with U.S. Census Bureau Data?
U.S. Census Bureau Data works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is U.S. Census Bureau Data free to use?
Yes, U.S. Census Bureau Data is open source and available under the CC0-1.0 license. You can use it freely in both personal and commercial projects.
U.S. Census Bureau Data Alternatives — Similar Search & Data Extraction Servers
Looking for alternatives to U.S. Census Bureau Data? Here are other popular search & data extraction servers you can use with Claude, Cursor, and VS Code.
TrendRadar
★ 58.0kA real-time hotspot monitoring and news aggregation assistant that provides AI-powered analysis of trending topics across multiple platforms via the Model Context Protocol. It enables users to track news and receive automated notifications through va
Scrapling
★ 52.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!
PDF Math Translate
★ 33.9k[EMNLP 2025 Demo] PDF scientific paper translation with preserved formats - 基于 AI 完整保留排版的 PDF 文档全文双语翻译,支持 Google/DeepL/Ollama/OpenAI 等服务,提供 CLI/GUI/MCP/Docker/Zotero
GPT Researcher
★ 27.2kAn autonomous agent that conducts deep research on any data using any LLM providers
Agent Reach
★ 20.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Xiaohongshu
★ 13.7kMCP for xiaohongshu.com
Browse More Search & Data Extraction MCP Servers
Explore all search & data extraction servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up U.S. Census Bureau Data in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use U.S. Census Bureau Data?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.