Census API MCP Server
Enables access to U.S. Census Bureau data including demographics, population, income, and housing statistics. Users can query specific variables, search datasets, and retrieve geographic FIPS codes across various surveys like the American Community Survey and Decennial Census.
README
Census API MCP Server
Access U.S. Census Bureau data including demographics, population, income, housing, and more.
Data Available
- American Community Survey (ACS) - Detailed demographic and socioeconomic data
- 1-year estimates (
acs/acs1) - Areas with 65,000+ population - 5-year estimates (
acs/acs5) - All areas, more reliable for small populations
- 1-year estimates (
- Decennial Census (
dec/pl) - Official population counts every 10 years - Economic Census - Business and industry statistics
- Population Estimates - Annual population estimates between censuses
Setup
- Get a free API key at: https://api.census.gov/data/key_signup.html
- Add to your MCP config:
{
"census": {
"command": "node",
"args": ["/path/to/census-api/dist/index.js"],
"env": {
"CENSUS_API_KEY": "your-api-key"
}
}
}
Tools
query
Fetch Census data with full control over variables and geography.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Data year (e.g., "2022") |
| dataset | Yes | Dataset path (e.g., "acs/acs1", "acs/acs5", "dec/pl") |
| variables | Yes | Comma-separated variable codes (e.g., "NAME,B19013_001E") |
| forClause | Yes | Geography to fetch (e.g., "state:", "county:", "state:06") |
| inClause | No | Parent geography for nested queries (e.g., "state:06" when getting counties) |
Example: Get median household income for all states
year: "2022"
dataset: "acs/acs5"
variables: "NAME,B19013_001E"
forClause: "state:*"
list_datasets
List available Census datasets for a given year.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Year to list datasets for |
list_variables
Search for variables in a dataset. Useful for finding the right variable codes.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Data year |
| dataset | Yes | Dataset path |
| search | No | Keyword to filter (e.g., "income", "population") |
| limit | No | Max results (default 50) |
Example: Find income-related variables
year: "2022"
dataset: "acs/acs5"
search: "income"
list_geographies
List available geographic levels for a dataset.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Data year |
| dataset | Yes | Dataset path |
get_fips
Get FIPS codes for states, counties, or other geographies.
| Parameter | Required | Description |
|---|---|---|
| year | Yes | Data year |
| dataset | Yes | Dataset path |
| geography | Yes | Level (e.g., "state", "county") |
| inClause | No | Parent geography filter |
Example: Get all county FIPS codes in California
year: "2022"
dataset: "acs/acs5"
geography: "county"
inClause: "state:06"
Common Variables
| Variable | Description |
|---|---|
| B01003_001E | Total Population |
| B19013_001E | Median Household Income |
| B25077_001E | Median Home Value |
| B23025_005E | Unemployed Population |
| B15003_022E | Bachelor's Degree holders |
| B25064_001E | Median Gross Rent |
Rate Limits
- No strict rate limit with API key
- Without key: 500 requests/day
Documentation
- API Documentation: https://www.census.gov/data/developers/guidance.html
- Variable Search: https://api.census.gov/data.html
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.