Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

census-mcp-server

MCP server by cyanheads Community

Queries U.S. Census Bureau datasets, variables, and geographies through MCP. Built for analysts and developers who need demographic, economic, and housing data in an AI assistant.

  • Score 80
  • 3 stars
  • 631 a week
  • Apache-2.0
  • Updated

Install census-mcp-server

Built from the published package, never by AI.

claude mcp add census-mcp-server -- npx -y @cyanheads/census-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install census-mcp-server in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the census-mcp-server block.

About

census-mcp-server is an MCP server that queries U.S. Census Bureau data, variables, and geography. It covers demographic, economic, and housing data, including ACS, Population Estimates, Decennial, County Business Patterns, Economic Census, and Nonemployer Statistics datasets. It runs over STDIO or Streamable HTTP, and the publisher also hosts a public server at census.caseyjhand.com.

The eight tools find datasets and variables, resolve place names, ZIP codes, or street addresses to Census FIPS codes, and query or rank estimates across any set of geographies. Query results include margins of error, and Census sentinel values are resolved to their published meanings. It suits anyone who wants Census figures available inside an AI assistant.

Written from the project's README and checked against it.

Tools it gives your assistant

  • census_list_datasetsBrowses available Census Bureau datasets with their vintage years and dataset codes.
  • census_list_geographiesLists the geography levels a dataset and year support, with parent requirements.
  • census_search_variablesSearches variables by keyword or looks them up by variable or table code.
  • census_get_variableFetches metadata for variable codes, including label, concept, universe, and MOE sibling.
  • census_list_predicate_valuesLists the codes a filter dimension accepts, from the dataset dictionary or a live lookup.
  • census_resolve_geographyConverts place names, ZIP codes, or street addresses to Census FIPS identifiers.
  • census_query_dataQueries estimates with margins of error for one or more geographies at a level.
  • census_compare_geographiesRanks and compares variables across multiple geographies, such as all counties in a state.

What you need

  • Census Bureau API key (CENSUS_API_KEY) for some tools and queries
  • npx or npm to run the published @cyanheads/census-mcp-server package
SettingNeededWhat it is
CENSUS_API_KEYEnvironment variableOptionalCensus 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
MCP_LOG_LEVELEnvironment variableOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn'). Default: info

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Find ACS 5-year variables for median household income in King County, WA
  • Rank all counties in Texas by a population estimate variable
  • Show the datasets and geography levels available for acs/acs5

Good to know

  • Some live predicate lists and certain queries need CENSUS_API_KEY.
  • Wildcard queries return at most 500 rows per page.
  • census_query_data accepts up to 49 variable codes per call.
  • Metropolitan areas and some other levels need an explicit geography_type.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to census-mcp-server

All alternatives →
World Monitor koala73
98

World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.

ACA Remote 91k
Power BI Authoring MCP Server (Local) microsoft
95

Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.

AAA Local 9.7k/wk
Seal Open Data ariacom
95

Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.

AAA Remote 1.7k
OpenMetadataopen-metadata
94

OpenMetadata MCP server lets MCP-compatible assistants search metadata, inspect lineage, and manage data quality tests. It is for data teams and AI agents that need governed context about enterprise data.

AAA Remote 16k
Flint Chart MCP microsoft
94

Compiles, validates and renders semantic chart specs for AI assistants through the Model Context Protocol. It is for agents that need reliable, good-looking and interactive charts across several chart libraries.

AAA Local 4.6k
PostHog PostHog
94

Query PostHog analytics, manage feature flags and experiments, and investigate errors from your AI assistant. It suits product teams and developers who already use PostHog for analytics, replays, and error tracking.

AFA Remote 41k

Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data

census-mcp-server: common questions

Does census-mcp-server need an API key?

Some features do. The source says live predicate lookups and some queries need CENSUS_API_KEY, including queries on dec/ddhca and dec/ddhcb.

Can it resolve street addresses to Census geographies?

Yes. Street addresses resolve to tract level through the Census Geocoder, and ZIP codes resolve to ZIP Code Tabulation Areas.

Which Census datasets does it cover?

According to the source, it covers ACS5 and ACS1, Population Estimates, 2020 Decennial files, County Business Patterns, Economic Census, and Nonemployer Statistics.

How do I install census-mcp-server?

In Claude Code run claude mcp add census-mcp-server -- npx -y @cyanheads/census-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is census-mcp-server the official server?

census-mcp-server is a community project by cyanheads, not verified by a company domain.

Is census-mcp-server free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is census-mcp-server safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to census-mcp-server?

Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.

Does census-mcp-server work with ChatGPT?

Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.

census-mcp-server Install

Add to stack

Loading.