census-mcp-server
io.github.cyanheads/census-mcp-server
MCP server OK 8 tools
Query U.S. Census Bureau data, variables, and geography via MCP.
Technical sheet
- Author
- cyanheads (registry namespace)
- Repository
- github.com/cyanheads/census-mcp-server
- Site
- —
- Version
- 0.8.2
- Transport
- Streamable HTTP stdio
- Authentication
- None (observed by our test)
- Server address
- https://census.caseyjhand.com/mcp Streamable HTTP
- Packages
- @cyanheads/census-mcp-server 0.8.2 npm stdio
@cyanheads/census-mcp-server 0.8.2 npm Streamable HTTP - Tools
- 8
- Categories
- —
- Last updated
- 1 Dec 2026
- Published
- 1 Dec 2026
Verified author and popularity
Entry not claimed yet. Is it your project? Claim it
Not “Popular” for now Removed automatically as soon as the criteria are no longer met.
- Distinct visitors of this entry over 30 days: 0 (30 needed) not yet
- or install configs copied over 30 days: 0 (5 needed) not yet
- and a successful test less than 14 days old: tested 28 Nov 2026 met
Badge updates by itself. Always “tested on …”, never “certified”. How it works
[](https://latlas.dev/en/mcp/io.github.cyanheads/census-mcp-server)<a href="https://latlas.dev/en/mcp/io.github.cyanheads/census-mcp-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.cyanheads/census-mcp-server.svg?lang=en" alt="Status on L’Atlas" height="20"></a>Badge for your README
Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.
[](https://latlas.dev/en/mcp/io.github.cyanheads/census-mcp-server)<a href="https://latlas.dev/en/mcp/io.github.cyanheads/census-mcp-server"><img src="https://latlas.dev/badge/fiche/io.github.cyanheads/census-mcp-server.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>Our tests
Every week: initialize then tools/list, without credentials, never calling a tool. Method
- Address
- https://census.caseyjhand.com/mcp
- Last result
- OK 28 Nov 2026, 10:36
- Response time
- 1,432 ms (initialize + tools/list)
- Protocol version
- 2025-11-25
- Announced name
- census-mcp-server 0.8.1
- Tools
- 8
History
| Date | Result | Response | Tools |
|---|---|---|---|
| 28 Nov 2026, 10:36 | OK | 1,432 ms | 8 |
Exposed tools (8, from tools/list, 28 Nov 2026)
census_list_datasets
List Census Datasets
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, the business datasets (County Business Patterns, Economic Census, Nonemployer Statistics), and geoinfo (land area and internal points, the denominator for population density) serve different use cases. Pass the dataset_id value to the dataset parameter in other census tools. Each description names the predicates a dataset requires and the geography levels it publishes, both of which vary by dataset.
| Parameter | Type | Required | Description |
|---|---|---|---|
| filter | string | no | Keyword to filter datasets by name or description. Omit to list all datasets. |
census_list_geographies
List Census Geography Levels
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 block groups. The geography_level values returned here are the valid inputs to the geography_level parameter in census_query_data and census_compare_geographies.
| Parameter | Type | Required | Description |
|---|---|---|---|
| dataset | string | yes | Dataset code (e.g., "acs/acs5", "acs/acs1"). Use census_list_datasets to discover valid values. Case is ignored, and a two-part code can be given by its last part alone — "acs5" is acs/acs5, "pl" is dec/pl. Three-part codes such as acs/acs5/profile must be given in full. The response echoes the res… |
| year | number | no | Vintage year. Defaults to the latest available year for the dataset. |
census_search_variables
Search Census Variables
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. A query that is one variable or table code, such as B19013_001E or B19013, returns that variable or the table's variables, in code order, ahead of any keyword matches; a code the dataset does not publish gets a notice naming the dataset that does, when one is confirmed. To retrieve every column of a table, pass its ID to census_query_data as group rather than listing its codes. On ACS datasets it returns both estimate (E suffix) and margin-of-error (M suffix) codes so you can request both; the ACS comparison profiles (acs/acs5/cprofile, acs/acs1/cprofile) and the other dataset families publish no margins of error. Also use it to find the predicate codes a dataset filters on, such as NAICS2017 in cbp. Adding a word narrows the results, since every word must match. Use offset to continue the same search beyond limit; nextOffset names the next page.
| Parameter | Type | Required | Description |
|---|---|---|---|
| offset | integer | no | Matching variables to skip in the existing rank order (default: 0). Keep query, dataset, year and limit unchanged when following nextOffset. |
| query | string | yes | Keywords to search (e.g., "median household income", "poverty", "bachelor's degree"), or one variable or table code (e.g., "B19013_001E", "B19013"). Each word must match a whole word of the label or of the concept, ignoring case and punctuation, so "rate" does not match "separated". A column shared… |
| dataset | string | no | Dataset to search within (default: "acs/acs5"). Use census_list_datasets to discover options. Case is ignored, and a two-part code can be given by its last part alone — "acs5" is acs/acs5, "pl" is dec/pl. Three-part codes such as acs/acs5/profile must be given in full. The response echoes the resol… |
| year | number | no | Vintage year to search (default: latest available for the dataset). |
| limit | integer | no | Variables per page. Default 20; a larger value returns at most 3,000 and says so. Follow nextOffset to continue the same search. |
census_get_variable
Get Census Variable Metadata
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 returns estimate_code and moe_code sibling references so you can request both without a separate search, and a margin-of-error code carries attribute_of (its estimate) and attribute_type MARGIN_OF_ERROR; the ACS comparison profiles (acs/acs5/cprofile, acs/acs1/cprofile) and the other dataset families publish no margins of error and carry none of these fields. It also resolves the annotation and flag columns the data tools accept, such as B19013_001EA or EMP_F, naming the column each one belongs to, and predicate codes such as NAICS2017 or SEX, confirming a filter dimension exists in a dataset before a query uses it — for the values a dimension accepts rather than the dimension itself, call census_list_predicate_values.
| Parameter | Type | Required | Description |
|---|---|---|---|
| variables | array<string> | yes | One or more variable codes to look up (e.g., ["B19013_001E", "B19013_001M"]). Codes are trimmed and matched regardless of case, and the response echoes the dataset's own spelling — uppercase everywhere except the comparison profiles' significance columns (e.g., CP03_2024to2019_062SS). |
| dataset | string | no | Dataset the variables belong to (default: "acs/acs5"). Use census_list_datasets to discover valid values. Case is ignored, and a two-part code can be given by its last part alone — "acs5" is acs/acs5, "pl" is dec/pl. Three-part codes such as acs/acs5/profile must be given in full. The response echo… |
| year | number | no | Vintage year (default: latest available for the dataset). |
census_list_predicate_values
List Census Predicate Values
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 vintage: NAICS and POPGROUP always publish a value list in the dataset dictionary, and on the current vintages EMPSZES, LFO, RCPSZES, TAXSTAT, and TYPOP publish none and are enumerated here against the live data endpoint instead, which needs the server's Census API key. A dictionary value list is a classification shared across Census products rather than a list of what one dataset serves, and roughly half of its codes typically return no rows anywhere — those are checked against the dataset's own published rows and dropped, a check that also reads the data endpoint and so needs the key; without a working key the dictionary list comes back unchecked, and the response source field says whether that check ran. The dictionary lists run to thousands of codes and are best narrowed with query. Pass the returned code as the dimension's value in predicates.
| Parameter | Type | Required | Description |
|---|---|---|---|
| predicate | string | yes | Filter dimension code to enumerate (e.g., "EMPSZES", "LFO", "POPGROUP", "NAICS2017"). Trimmed and uppercased, and the response echoes that spelling. The response notice of census_query_data names the dimensions a dataset declares, and census_search_variables finds them by keyword. |
| dataset | string | yes | Dataset the dimension belongs to (e.g., "cbp", "nonemp", "ecnbasic", "dec/ddhca", "dec/ddhcb", "pep/charv", "acs/acs1/spp"). Use census_list_datasets to discover valid values. Case is ignored, and a two-part code can be given by its last part alone — "ddhca" is dec/ddhca, "charv" is pep/charv. Thre… |
| year | number | no | Vintage year (default: latest available for the dataset). |
| geography_level | string | no | Geography level for live enumeration (default: "us"). Codes can differ by level. Only levels whose dataset/year geography metadata permits a wildcard without concrete parents are supported, such as "county" on cbp. Dictionary lists remain dataset-wide and do not validate publication at this level. |
| offset | integer | no | Matching codes to skip in code order (default: 0). Follow nextOffset with the same predicate, dataset, year, query, geography_level and within_naics. |
| query | string | no | Keyword to narrow the list, matched case-insensitively against each code and label (e.g., "software" against NAICS2017, "exempt" against TAXSTAT). Omit to list from the start. NAICS and POPGROUP run to thousands of codes, so a keyword is the practical way to use them. |
| within_naics | string | string | no | Industry code to scope the enumeration by, for dimensions the Census publishes per industry. On ecnbasic, TAXSTAT and TYPOP return only the all-establishments row until a NAICS sector is named — pass a sector code such as "62" (Health Care) or "42" (Wholesale Trade) and the result is complete for t… |
| limit | integer | no | Codes per page. Default 50; a larger value returns at most 10,000 and says so. totalCount counts matches before offset and limit; nextOffset continues the list. |
census_resolve_geography
Resolve Census Geography
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 querying when you have a place name rather than raw FIPS codes — state_fips maps to parent_fips and fips_summary maps to geography_fips in downstream tools, and geography_type is itself the geography_level to query at.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Place name (e.g., "King County, WA", "Seattle, WA", "California"), 5-digit ZIP code (e.g., "98109", resolved to its ZIP Code Tabulation Area), or street address of at most 100 characters (e.g., "1600 Pennsylvania Ave NW, Washington, DC 20500"). Include the state after a comma — its abbreviation or… |
| geography_type | enum: "state" | "county" | "county subdivision" | "place" | "tract" | "metropolitan statistical area/micropolitan statistical area" | "combined statistical area" | "consolidated city" … | no | Geography level to resolve to, named exactly as census_query_data's geography_level and census_list_geographies name it. Auto-detection covers only state, county, county subdivision, place, tract, and zip code tabulation area: zip code tabulation area for a 5-digit ZIP or ZIP+4 — the ACS's ZIP-shap… |
| county_fips | string | no | County FIPS code to resolve within — 1 to 3 digits, zero-padded here to the 3 the Census stores. A tract name is unique only inside its county, and a town or township name can repeat across a state's counties, so a name matching two counties comes back as ambiguous_name until this is set: take the… |
census_query_data
Query Census Data
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. Pass group with a table ID (e.g. "B01001") to retrieve every column of one table in a single call, beside or in place of variables and outside the 49-code limit. Accepts FIPS codes for the target geography — use census_resolve_geography to convert place names to FIPS when needed. On ACS datasets, labeled estimates and margin-of-error values are returned together (the comparison profiles publish no margins), and the negative sentinel values the Census writes for an estimate or margin of error it cannot publish are decoded into the meanings the Census gives them rather than passed through as raw numbers. A value cbp, ecnbasic, or nonemp withheld is stored as 0 beside a flag, and is reported as withheld, with the meaning of its flag, rather than as a zero. Pass geography_fips as "*" for every geography at the level within the parent, or as a comma-separated list of codes ("06,53") for several: rows come back in GEOID order, up to limit per call (default 50, at most 500), with totalCount giving how many matched and offset reaching the rest — the order is not a ranking, so use census_compare_geographies to rank. The notice names any listed code that no row came back for. On the business datasets (cbp, ecnbasic, nonemp), pep/charv, dec/ddhca, dec/ddhcb, and acs/acs1/spp, use predicates to filter by industry, size class, or population group — a…
| Parameter | Type | Required | Description |
|---|---|---|---|
| variables | array<string> | no | Variable codes to retrieve (e.g., ["B19013_001E", "B19013_001M"]). Optional when group names a table — one of the two is required. Codes are matched regardless of case and sent in the dataset's own spelling, which keys the response: "b19013_001e" reads as B19013_001E, and "cp03_2024to2019_062ss" as… |
| group | string | no | A table ID whose every column to retrieve (e.g., "B01001" for sex by age, "DP05", "S1701", "P1"), beside or in place of variables — one of the two is required. Matched regardless of case and sent in the dataset's spelling. Each row keys any variables codes first, then the table's columns in line or… |
| geography_level | string | yes | Level of the target geography (e.g., "county", "tract", "state", "zip code tabulation area"). Use census_list_geographies to see valid values for the dataset. |
| geography_fips | string | yes | FIPS code for the target geography (e.g., "033" for a county, "*" for every geography at the level within the parent, returned up to limit rows per call and paged with offset). Use census_resolve_geography to obtain this value — it is returned as fips_summary. The Census API matches this literally… |
| parent_fips | string | string | no | State FIPS code when querying sub-state levels (e.g., "53" for Washington). Required for county, tract, and block-group queries, unless every geography_fips code is a full GEOID naming the same state. census_resolve_geography returns this as state_fips. Pass "*" to span every state on the levels wh… |
| county_fips | string | string | no | County FIPS code when querying tracts or block groups within a specific county (e.g., "033" for King County within WA). Required for tract and block-group queries scoped to a county — use alongside parent_fips (state) — unless every geography_fips code is a full GEOID naming the same county. census… |
| tract_fips | string | string | no | Census tract code scoping the query to one tract (e.g., "007101" for Census Tract 71.01), for the levels that sit within a tract — block group on acs/acs5, block group and block on dec/pl. census_resolve_geography returns it as tract_fips, and for a street address also returns the block_group_fips… |
| predicates | object | no | Filter values keyed by variable code, sent as extra query parameters — e.g. {"NAICS2017": "5112"} to count only software publishers in cbp. The business datasets (cbp, ecnbasic, nonemp), pep/charv, dec/ddhca, dec/ddhcb, and acs/acs1/spp declare filter dimensions such as industry (NAICS2017/NAICS202… |
| dataset | string | no | Dataset to query (default: "acs/acs5"). Use census_list_datasets to discover valid values. Case is ignored, and a two-part code can be given by its last part alone — "acs5" is acs/acs5, "pl" is dec/pl. Three-part codes such as acs/acs5/profile must be given in full. The response echoes the resolved… |
| year | number | no | Vintage year (default: latest available for the dataset). |
| limit | integer | no | Rows per page. Default 50; a larger value returns at most 500 and says so. Rows come in GEOID order, whether geography_fips is "*" or a comma-separated list, a geography's records or categories in code order, and each one counts, so a geography returned as several records (pep/charv April and July)… |
| offset | integer | no | Rows to skip before returning up to limit (default: 0). Pages run in GEOID order, so offset 50 with limit 50 returns rows 51–100, and the notice names the offset of the next page. An offset at or past totalCount returns no rows. |
census_compare_geographies
Compare Census Geographies
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 states have the most people below the poverty line." A count ranks geographies by size, not by rate, so to rank a rate, rank a published percentage: S1701_C03_001E (percent below the poverty level, dataset acs/acs5/subject), DP03_0128PE (the same percentage, acs/acs5/profile), or DP04_0047PE (percent of occupied housing units that are renter-occupied, acs/acs5/profile). Profile and subject tables reach tracts but not block groups. Omit within to compare all geographies nationally at the level. Suppressed values are decoded to human-readable labels rather than passed through as raw negative sentinels. On the business datasets (cbp, ecnbasic, nonemp), pep/charv, dec/ddhca, dec/ddhcb, and acs/acs1/spp, use predicates to rank within one industry, size class, or population group — a comparison that omits one ranks on a default the Census API picks, which is an all-categories total on some dimensions and a single category on others. Each row names the defaults that were applied in applied_filters, and census_list_predicate_values enumerates the codes a dimension accepts. Some dec/ddhca and dec/ddhcb tables split the population groups between them, publishing each group at a geography in only one table of the f…
| Parameter | Type | Required | Description |
|---|---|---|---|
| variables | array<string> | yes | Variable codes to compare (e.g., ["B19013_001E", "B19013_001M"]); the ranking is on one of them, set by sort_by. Codes are matched regardless of case and sent in the dataset's own spelling, which keys each row — uppercase everywhere except the comparison profiles' significance columns (CP03_2024to2… |
| geography_level | string | yes | The level to compare across (e.g., "state", "county", "tract"). Use census_list_geographies to see valid values for the dataset. |
| within | string | string | no | State FIPS to constrain results (e.g., "53" to compare counties or tracts within WA only). Omit to compare all geographies at the level nationally. Use census_resolve_geography to get state_fips. Pass "*" to span every state on the levels whose hierarchy lets "*" stand in for the state, such as cou… |
| within_county | string | string | no | County FIPS to constrain tract or block-group comparisons to a single county within the state specified by within (e.g., "033" for King County). Required when geography_level is "tract" or "block group" and you want county-scoped results. census_resolve_geography returns this as county_fips. Pass "… |
| geographies | array<string> | no | Optional list of specific geographies to include; only these are returned. Prefer full GEOIDs — the level concatenated with its parents, e.g. "53033" for King County WA and "06037" for Los Angeles County CA — which are nationally unique and so work across states. Bare level codes ("033") are also a… |
| predicates | object | no | Filter values keyed by variable code, applied to every geography in the comparison — e.g. {"NAICS2017": "5112"} to rank counties by their software-publisher establishment count in cbp. The business datasets (cbp, ecnbasic, nonemp), pep/charv, dec/ddhca, dec/ddhcb, and acs/acs1/spp declare filter di… |
| dataset | string | no | Dataset to query (default: "acs/acs5"). Use census_list_datasets for valid values. Case is ignored, and a two-part code can be given by its last part alone — "acs5" is acs/acs5, "pl" is dec/pl. Three-part codes such as acs/acs5/profile must be given in full. The response echoes the resolved code. |
| year | number | no | Vintage year (default: latest available for the dataset). |
| sort_by | string | no | Variable code to rank on (default: the first code in variables), matched regardless of case like the variables. Must be one of the requested codes, or the call fails with sort_by_not_requested. Geographies rank on that code's own value, so a count ranks by size and only a published percentage such… |
| sort_dir | enum: "asc" | "desc" | no | Sort direction (default: "desc" — highest value first). |
| limit | integer | no | Geographies per page. Default 50; a larger value returns at most 500 and says so. totalCount counts the matched set before paging; nextOffset reaches the next page. |
| offset | integer | no | Rows to skip in the sorted matched set (default: 0), not a rank. Equal numeric estimates share competition ranks and are ordered by GEOID. An offset at or past totalCount returns no rows. |
Client compatibility
Based on the transports each client documents as supported; this is not a live test inside the client.
| Client | Documented transports | This server | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepted | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepted | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepted | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepted | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepted | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepted | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepted | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepted | doc |
Ready-to-copy configs
Remote address used: https://census.caseyjhand.com/mcp. Formats taken from each client’s documentation.
claude mcp add --transport http census-mcp-server https://census.caseyjhand.com/mcpCustomize > Connectors > + Add > Add custom connector ; Name : census-mcp-server ; URL : https://census.caseyjhand.com/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : census-mcp-server ; Server URL : https://census.caseyjhand.com/mcp ; Create as a plugin{
"mcpServers": {
"census-mcp-server": {
"url": "https://census.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"census-mcp-server": {
"type": "http",
"url": "https://census.caseyjhand.com/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"census-mcp-server": {
"url": "https://census.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"census-mcp-server": {
"httpUrl": "https://census.caseyjhand.com/mcp"
}
}
}[mcp_servers.census-mcp-server]
url = "https://census.caseyjhand.com/mcp"Cite this source
Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.
census-mcp-server · L’Atlas · Tested on
[census-mcp-server — L’Atlas](https://latlas.dev/en/mcp/io.github.cyanheads/census-mcp-server)Source : Registre officiel MCP · retrieved 2 Dec 2026. L’Atlas adds no data beyond this source and its own tests.