
Census Mcp Server
Connects Claude to the U.S. Census Bureau's data APIs with a workflow built for interactive queries. Seven tools cover dataset discovery, variable search, geography resolution, and data retrieval. You can search variables by keyword, convert place names or addresses to FIPS codes via TIGERweb and the Census Geocoder, then pull estimates with margins of error. The compare tool ranks geographies in a single call, useful for state by state or county by county analysis. Variables are cached locally with configurable TTL to avoid repeated fetches. Suppression codes get decoded to readable reasons instead of raw sentinel values. Requires a free Census API key for data queries but not for browsing datasets or searching variables.
- GitHub stars
- 3
- tools
- 8
- transport
- STDIO, HTTP
- env vars
- 7
- last updated
- Nov 4, 2026
Install
From registry metadata$ npx add-mcp https://census.caseyjhand.com/mcp --name censusRun in your terminal. add-mcp asks which agents to add it to (Claude Code, Codex, Cursor and more). Add -g to install it for every project.
Review the command, arguments and environment values before installing. MCP servers run with your local permissions.
Other ways
Claude Code
$ claude mcp add --transport http census https://census.caseyjhand.com/mcpRun in your terminal. Add --scope user to make it available in every project.
Tools
Verified live · 8 toolsVerified live against the running server on Nov 6, 2026.
census_list_datasetsBrowse available Census Bureau datasets with their supported vintage years. Use as the starting point when the right dataset is unknown — ACS5, ACS1, and their profile, subject, and comparison tables, population estimates, the decennial census files, and the business datasets...1 params
Browse available Census Bureau datasets with their supported vintage years. Use as the starting point when the right dataset is unknown — ACS5, ACS1, and their profile, subject, and comparison tables, population estimates, the decennial census files, and the business datasets...
filterstringcensus_list_geographiesList the geography levels available for a given Census dataset and year, along with the parent geographies each level requires. Use before querying to confirm that the target geography level exists — ACS1 omits many sub-state levels, and not all datasets support tracts or bloc...2 params
List the geography levels available for a given Census dataset and year, along with the parent geographies each level requires. Use before querying to confirm that the target geography level exists — ACS1 omits many sub-state levels, and not all datasets support tracts or bloc...
dataset*stringyearnumbercensus_search_variablesSearch Census variables by keyword across variable labels and concept groups, or look one up by its code. Returns variable codes with human-readable labels — use this to go from a concept like "median household income" to the variable code B19013_001E needed for data queries....5 params
Search Census variables by keyword across variable labels and concept groups, or look one up by its code. Returns variable codes with human-readable labels — use this to go from a concept like "median household income" to the variable code B19013_001E needed for data queries....
datasetstringlimitintegeroffsetintegerquery*stringyearnumbercensus_get_variableFetch full metadata for one or more Census variable codes — label, concept group, predicate type, the table's universe, and margin-of-error sibling references. Use to confirm a variable code before building a query, or to look up what a known code means. On ACS datasets it ret...3 params
Fetch full metadata for one or more Census variable codes — label, concept group, predicate type, the table's universe, and margin-of-error sibling references. Use to confirm a variable code before building a query, or to look up what a known code means. On ACS datasets it ret...
datasetstringvariables*arrayyearnumbercensus_list_predicate_valuesList the codes a Census filter dimension accepts, so a predicates map can be written without guessing. Answers the question left open when census_query_data or census_compare_geographies reports that a dimension was left unset. Which route a dimension takes depends on the vint...8 params
List the codes a Census filter dimension accepts, so a predicates map can be written without guessing. Answers the question left open when census_query_data or census_compare_geographies reports that a dimension was left unset. Which route a dimension takes depends on the vint...
dataset*stringgeography_levelstringlimitintegeroffsetintegerpredicate*stringquerystringwithin_naicsvalueyearnumbercensus_resolve_geographyResolve a place name, ZIP code, or street address to Census FIPS identifiers. Converts names like "King County, WA", "Seattle, WA", or "Seattle-Tacoma-Bellevue, WA", and ZIPs like "98109", to the codes required by census_query_data and census_compare_geographies. Use before qu...3 params
Resolve a place name, ZIP code, or street address to Census FIPS identifiers. Converts names like "King County, WA", "Seattle, WA", or "Seattle-Tacoma-Bellevue, WA", and ZIPs like "98109", to the codes required by census_query_data and census_compare_geographies. Use before qu...
county_fipsstringgeography_typestringstate · county · place · tract · metropolitan statistical area/micropolitan statistical area · combined statistical areaname*stringcensus_query_dataQuery a Census dataset for one or more variables at one geography, a list of geographies at the same level, or every geography at a level. Accepts FIPS codes for the target geography — use census_resolve_geography to convert place names to FIPS when needed. On ACS datasets, la...11 params
Query a Census dataset for one or more variables at one geography, a list of geographies at the same level, or every geography at a level. Accepts FIPS codes for the target geography — use census_resolve_geography to convert place names to FIPS when needed. On ACS datasets, la...
county_fipsvaluedatasetstringgeography_fips*stringgeography_level*stringlimitintegeroffsetintegerparent_fipsvaluepredicatesobjecttract_fipsvaluevariables*arrayyearnumbercensus_compare_geographiesCompare one or more variables across multiple geographies at the same level — all counties in a state, all states nationally, or a named set of specific geographies — ranked on the value of one of them. Covers queries like "compare median income across WA counties" or "which s...12 params
Compare one or more variables across multiple geographies at the same level — all counties in a state, all states nationally, or a named set of specific geographies — ranked on the value of one of them. Covers queries like "compare median income across WA counties" or "which s...
datasetstringgeographiesarraygeography_level*stringlimitintegeroffsetintegerpredicatesobjectsort_bystringsort_dirstringasc · descvariables*arraywithinvaluewithin_countyvalueyearnumberSponsors
Configuration
CENSUS_API_KEYCensus Bureau API key from api.census.gov/data/key_signup.html. Required for census_query_data and census_compare_geographies, and for census_list_predicate_values on a dimension it enumerates live; variable search and geography resolution work without it.
MCP_LOG_LEVELdefault: infoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
MCP_TRANSPORT_TYPEdefault: httpSelects the HTTP transport.
MCP_HTTP_HOSTdefault: 127.0.0.1The hostname for the HTTP server.
MCP_HTTP_PORTdefault: 3010The port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHdefault: /mcpThe endpoint path for the MCP server.
MCP_AUTH_MODEdefault: noneAuthentication mode to use: 'none', 'jwt', or 'oauth'.
Readme
@cyanheads/census-mcp-server
Query U.S. Census Bureau data, variables, and geography via MCP. STDIO or Streamable HTTP.
Details
- Repository
- github.com/cyanheads/census-mcp-server
- Category
- Data & Analytics
- Package
@cyanheads/census-mcp-server- Transport
- STDIO, HTTP
- Registry
- MCP registry, active
- Resources
- 1
- Tools verified
- Nov 6, 2026
More from cyanheads
- Who Gho Mcp Server3
- Bls Labor Mcp Server1
- College Scorecard Mcp Server1
- Cpsc Recalls Mcp Server1
- Cyanheads Mcp Server1
- Exchange Rates Mcp Server1
- Fcc Broadband Mcp Server1
- Nist Nvd Mcp Server1
- Pokeapi Mcp Server1
- Reference Data Mcp Server1
- Usda Mcp Server1
- Epa Mcp Server2
- Osv Advisory Mcp Server2
- Gbif Biodiversity Mcp Server1
- Pentest Mcp Server1
- Workflows Mcp Server32
- Noaa Cdo Mcp Server5
- Ntfy Mcp Server25
- Macos Mcp Server4
- Clipboard Mcp Server3
- Guardian Mcp Server2
- Mailchimp Mcp Server2
- Sports Mcp Server2
- Whois Mcp Server2