US Census Data
БесплатноНе проверенNatural language access to US Census Bureau API with 1,700+ demographic and economic datasets.
Описание
Natural language access to US Census Bureau API with 1,700+ demographic and economic datasets.
README
Local MCP server that can query any of the 1,776+ datasets in the U.S. Census Bureau API. Demographics, income, housing, business, trade, employment, and more — all through natural language via Claude Code.
Prerequisites
- Node.js 20+ (see
.nvmrc)
Setup
nvm use # optional, if using nvm
npm install
npm run build
Register with Claude Code
Basic (no API key, curated catalog):
claude mcp add census-data node /Users/georgemandis/Projects/recurse/2026/mcp-census-data/dist/index.js
With API key and/or full catalog:
claude mcp add -e CENSUS_API_KEY=your-key-here -e CENSUS_CATALOG_MODE=full census-data node /Users/georgemandis/Projects/recurse/2026/mcp-census-data/dist/index.js
Then start a new Claude Code session to pick up the server.
To switch modes later, remove and re-add: claude mcp remove census-data then re-add with different -e flags.
Configuration
| Env var | Default | Effect |
|---|---|---|
CENSUS_API_KEY |
none | Appended to all Census API requests. Free at census.gov/developers. Recommended to avoid rate limits. |
CENSUS_CATALOG_MODE |
curated |
curated (~45 hand-picked datasets with rich descriptions) or full (~566 datasets with raw Census descriptions). |
Both are passed via -e flags on claude mcp add.
Tools
Discovery chain (call in this order)
discover_datasets(query)— Search for Census datasets by topic ("income", "population", "business"). Start here.list_geographies(dataset, vintage)— See what geographic levels are available (state, county, tract, etc.).search_variables(dataset, vintage, query)— Find variable codes by keyword ("median household income").search_groups(dataset, vintage, query)— Find pre-built table groups ("Sex by Age").resolve_geography(name)— Convert "California" or "Cook County" to FIPS codes.
Data retrieval
query_data(dataset, vintage, get, for, in?, predicates?)— Fetch actual data from the Census API.
Example conversation
"What's the median household income in Cook County, Illinois?"
Claude chains the tools automatically:
discover_datasets("income")→ picks ACS 5-Yearsearch_variables("acs/acs5", 2024, "median household income")→ findsB19013_001Eresolve_geography("Cook County")→ FIPS codes for Cook County, ILquery_data(...)→ returns the answer
Dataset coverage
The curated catalog covers the most commonly used datasets:
- ACS — demographics, income, education, housing, health insurance
- Decennial Census — full population count every 10 years
- Population Estimates — annual estimates between censuses
- CPS — employment, income, voting, food security, internet use
- County/Zip Business Patterns — establishments and payroll by industry
- Economic Census — detailed business statistics every 5 years
- International Trade — imports and exports by commodity
- Time Series — poverty, health insurance, business dynamics
Switch to CENSUS_CATALOG_MODE=full for access to all ~566 unique endpoints.
See docs/census-api-inventory.md for the full inventory.
Census API docs
Установка US Census Data
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/georgemandis/mcp-census-dataFAQ
US Census Data MCP бесплатный?
Да, US Census Data MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для US Census Data?
Нет, US Census Data работает без API-ключей и переменных окружения.
US Census Data — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить US Census Data в Claude Desktop, Claude Code или Cursor?
Открой US Census Data на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare US Census Data with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
