MCP Census MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "CENSUS_API_KEY=${CENSUS_API_KEY}" mcp-census -- npx mcp-census
Required:CENSUS_API_KEY
README.md

Query the US Census Bureau API for demographic, economic, and geographic data.

mcp-census

Query the US Census Bureau API for demographic, economic, and geographic data.

Free API — No API key required.

Tools

Tool Description
search_datasets Search available US Census Bureau datasets by keyword (e.g. 'acs', 'decennial', 'business patterns')
get_variables List variables available in a Census dataset. Use to discover variable codes before querying data.
get_geographies List supported geography levels for a Census dataset (state, county, tract, etc.)
query_data Query Census Bureau data. Returns tabular data for specified variables and geography. Requires CENSUS_API_KEY.
get_population Convenience tool: get total population (B01001_001E) for a geography. Defaults to ACS 5-year 2022.

Installation

git clone https://github.com/PetrefiedThunder/mcp-census.git
cd mcp-census
npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "census": {
      "command": "node",
      "args": ["/path/to/mcp-census/dist/index.js"]
    }
  }
}

Usage with npx

npx mcp-census

License

MIT

Tools (5)

search_datasetsSearch available US Census Bureau datasets by keyword.
get_variablesList variables available in a Census dataset to discover codes.
get_geographiesList supported geography levels for a Census dataset.
query_dataQuery Census Bureau data for specified variables and geography.
get_populationConvenience tool to get total population for a specific geography.

Environment Variables

CENSUS_API_KEYrequiredAPI key required for querying specific Census Bureau data.

Configuration

claude_desktop_config.json
{"mcpServers": {"census": {"command": "node", "args": ["/path/to/mcp-census/dist/index.js"]}}}

Try it

Search for available datasets related to business patterns.
What are the available geography levels for the ACS 5-year 2022 dataset?
Get the total population for California using the get_population tool.
List the variables available in the decennial census dataset.

Frequently Asked Questions

What are the key features of MCP Census?

Search across thousands of US Census Bureau datasets. Discover variable codes for precise data extraction. Query geographic data including states, counties, and tracts. Convenience tool for quick total population lookups.

What can I use MCP Census for?

Researchers analyzing demographic trends across different US states. Urban planners gathering population statistics for specific geographic tracts. Data analysts integrating economic census data into reports. Students performing demographic research using official government datasets.

How do I install MCP Census?

Install MCP Census by running: git clone https://github.com/PetrefiedThunder/mcp-census.git && cd mcp-census && npm install && npm run build

What MCP clients work with MCP Census?

MCP Census works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep MCP Census docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare