All MCPsUS Census MCP
Data

US Census MCP

Published by the U.S. Census Bureau itself, this MCP server provides access to official Census statistics through the Census Data API. It lists available datasets, exposes their geography levels, resolves a place name to a FIPS code, and retrieves aggregate data by area. A Census API key is required.

When to use it

Useful for market or site studies in the U.S. that rely on official statistics.

Third-party projects · manually verified · not maintained by Educasium

U.S. Census Bureau Data API MCP is the official U.S. Census Bureau MCP server for connecting AI assistants to public census statistics. The uscensusbureau/us-census-bureau-data-api-mcp repository says it connects assistants to the Census Data API and other official Census Bureau sources, with a local Postgres database to enrich search. In the GitHub check on August 26, 2026, the repository was CC0-1.0 licensed, had 92 stars and 29 forks, and the mcp-server-census-api package was at version 1.0.0.

For Educasium, Census MCP is a data source, not a creative tool. It queries official statistics by U.S. geography, resolves geographies into FIPS codes, lists datasets, and retrieves aggregate data. Its pedagogical value is traceability: public source, documented API, variables, vintages, and geographic levels.

Contents

  1. What Census MCP does
  2. Docker install, local database, and API key
  3. Available tools
  4. Geographies, FIPS, variables, and vintages
  5. Security, limits, and accuracy
  6. Comparison with Mapbox and QGIS
  7. Educasium position

What Census MCP Does

Key point: Census MCP gives access to official Census Bureau statistics through MCP, with search enriched by a local Postgres database. It is especially useful for U.S. market and site studies.

Official source

The repository belongs to the uscensusbureau GitHub organization, and the README describes official Census Bureau statistics. That origin matters: unlike many community MCP connectors, this one comes from the institution producing the data.

That does not remove the need for method. Official data can still be selected, aggregated, or interpreted incorrectly. The right dataset, year, variable, and geography remain essential.

Question types

The server answers questions such as which datasets exist, which geographies are available for a dataset, which FIPS code matches a place, or which aggregate value to retrieve for an area. It fits demographic, social, economic, and territorial analysis in the United States.

It is not designed for live visual mapping or routing. Mapbox MCP or QGIS MCP fit those tasks better. Census MCP provides the statistical data that can then feed a map or analysis.

Docker Install, Local Database, And API Key

Key point: the README requires a Census API key, Docker, Node 18+, and first-run database initialization. This is not a zero-prep npx server.

Documented startup

The README says to clone or download the project, then run a docker compose command with the prod profile for migrations and seed. That step pulls data from the Census Data API into a local database to improve search.

The MCP configuration example uses scripts/mcp-connect.sh and the CENSUS_API_KEY environment variable. The README says CENSUS_API_KEY is required and passed to the server through the connection script.

Package and architecture

The mcp-server-census-api package uses TypeScript, the MCP SDK, dotenv, node-fetch, pg, and zod. Scripts include build, lint, test, inspect, and prepare. The README describes architecture with mcp-server/src, server.ts, tools, and schema.

The server exposes tools/list, tools/call, prompts/list, and prompts/get. It is not only raw data calls; it also includes predefined prompts, such as a population prompt that resolves geography before fetching data.

Available Tools

Key point: the README documents four main tools, and source verification shows search-data-tables in addition to the base files. Capabilities should be described from the README and source tree.

Documented tools

list-datasets fetches metadata for datasets available in the Census API. fetch-dataset-geography fetches available geography levels for a dataset, with dataset required and year optional.

fetch-aggregate-data retrieves aggregate data from the Census API. It requires dataset, year, a get object with variables or group, and geography filters such as for, in, UCGID, or predicates. resolve-geography-fips searches geographies and returns possible matches with FIPS codes and query parameters.

Tool found in source

The mcp-server/src/tools folder contains base.tool.ts, fetch-aggregate-data.tool.ts, fetch-dataset-geography.tool.ts, list-datasets.tool.ts, resolve-geography-fips.tool.ts, and search-data-tables.tool.ts. The README describes the first four business tools and the population prompt; search-data-tables indicates additional source surface to verify during a real integration.

This distinction avoids inventing detailed documentation the README does not provide. It is fair to mention the source file without assigning unverified parameters.

Geographies, FIPS, Variables, And Vintages

Key point: Census answers depend on the right geographic level, vintage, and variables. This is not free-form web search.

Geographies

The Census Bureau structures data by geographies: states, counties, cities, tracts, areas, and other levels depending on the dataset. resolve-geography-fips helps find required codes, but it can return multiple matches. The user must choose the correct area.

fetch-dataset-geography shows which geographies are valid for a dataset. That is essential because not every dataset supports every level. An invalid query can fail or push the assistant toward a broader geography than intended.

Variables and years

fetch-aggregate-data requires dataset and year. Variables can be named individually, such as NAME or a variable code, or grouped. The descriptive parameter can add labels to make responses more readable.

A serious analysis records dataset, year, variables, geography, filters, and access date. Without that, a statistic is hard to verify or reproduce.

Security, Limits, And Accuracy

Key point: Census MCP handles public data, but bad queries can still produce false conclusions. The main risk is methodological.

Public data, sensitive conclusions

Census data is public, but the decisions built on it can be important: site selection, targeting, public policy, investment, health, and education. A wrong variable or geography can change a recommendation.

CENSUS_API_KEY should stay out of the repository. The README asks for it as an environment variable. As with other connectors, .env files and local scripts need control.

Local database

The project uses local Postgres to improve search. That adds lifecycle: migrations, seed, rebuilds after updates, and consistency between the local database and the API. The README says production should be rebuilt after new releases.

In a workshop, verify that the database is initialized and the API key works before demonstration.

Comparison With Mapbox And QGIS

Key point: Census MCP provides official U.S. statistics; Mapbox MCP calculates and displays places; QGIS MCP manipulates GIS layers.

NeedCensus MCPMapbox MCPQGIS MCP
Official U.S. statisticsStrong fitOut of scopeImported data
Resolve Census FIPS/geographiesStrong fitOut of scopePossible manually
Routes and isochronesOut of scopeStrong fitPossible depending on data
GIS processing and complex mapsData sourceLimitedStrong fit
U.S. market studyStrong fitSpatial contextMapping and overlay

Combined workflow

A U.S. site study can start with Census MCP to retrieve population, households, or economic indicators. Mapbox MCP can then evaluate accessibility and proximity. QGIS MCP can consolidate layers, overlay zones, and produce a final map.

That chain keeps each tool in its role: official statistics, location intelligence, and GIS analysis.

Educasium Position

Key point: Educasium presents Census MCP as official data queryable by AI, with an obligation to cite dataset, variable, year, and geography.

What to teach

A good exercise starts with a simple question: city population, comparison of two counties, or an indicator by state. The assistant lists datasets, checks geographies, resolves FIPS, retrieves data, and displays the parameters used.

The skill is not only getting a number. It is making that number verifiable: source, year, variable, geography filter, and interpretation limits.

The final check compares the result with the raw response or Census documentation when the indicator becomes strategic. It should also note whether the value is an estimate, count, percentage, margin of error, or descriptive label. That last step prevents a correct public source from becoming an over-fast local conclusion. In training, the learner should explain which parameter would change for another geography, year, or nearby variable. That teaches query auditing, not just copying the final number.

A second useful exercise compares two nearby geographies with the same dataset and year. If more than one parameter changes at once, the comparison loses value. The learner should keep the query, dataset name, variables, and access date. That habit is especially important in market research, because a Census number can look definitive while depending on boundary choices, data vintage, and statistical definition.

Critical reading of names is also part of the lesson. A municipality, county, tract, or statistical area can share similar labels. Resolving FIPS reduces ambiguity, but it does not remove the responsibility to confirm that the selected geography matches the question. Traceability protects against rushed conclusions about population, income, housing, or local demand.

Frequently asked questions

Is Census MCP official?

Yes. The verified repository belongs to the uscensusbureau GitHub organization, and the README describes official Census Bureau statistics. You still need to cite dataset, year, variable, and geography. An official source can still be queried incorrectly.

Do you need a Census API key?

Yes. The README says a valid CENSUS_API_KEY is required and passed to the server through the connection script. Keep it in an environment variable or uncommitted local file. It is part of the prerequisites with Docker and Node 18+.

Can Census MCP produce a map?

Its main role is statistical data, not map rendering. It can provide useful numbers, geographies, and codes. For visualization, overlays, or cartographic layout, Mapbox MCP or QGIS MCP are better fits depending on analysis depth.