MCPVault

census_compare_geographies

MCP tool from Census MCP Server by cyanheads

Rank and compare variables across multiple geographies — all counties in a state, all states nationally, or a named set. Sorted table output, with the same predicate filtering.

How to use it

census_compare_geographies is exposed by the Census MCP Server MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the census_compare_geographies tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.

Install Census MCP Server

$docker run --rm -e CENSUS_API_KEY=your-key -p 3010:3010 census-mcp-server
FULL CENSUS MCP SERVER LISTING

Other tools in Census MCP Server (10)

available_years

is exhaustive, not a sample: any other year fails with yearnotavailable before a request goes out, naming the years that do work. It is narrower than what the Census API hosts — pep/charv reaches its 2020-2022 estimates through the YEAR filter inside the 2023 vintage, and the cbp/nonemp vintages lef

census_get_variable

Fetch full metadata for one or more variable codes — label, concept, predicate type, universe, MOE sibling.

census_list_datasets

Browse available Census Bureau datasets (ACS5, ACS1, Population Estimates, Decennial, County Business Patterns, Economic Census, Nonemployer Statistics) with vintage years and dataset codes.

census_list_geographies

List the geography levels supported by a dataset and year, with parent requirements and example FIPS values.

census_list_predicate_values

List the codes a filter dimension accepts (EMPSZES, LFO, POPGROUP, NAICS2017…), from the dataset dictionary or a live wildcard enumeration.

census_query_data

Query a Census dataset for variables at a specific geography. Returns estimates with MOE, suppression codes resolved to readable reasons, and predicate filtering for the business datasets.

census_resolve_geography

Convert place names (e.g., "King County, WA") or street addresses to Census FIPS identifiers via TIGERweb and Census Geocoder.

census_search_variables

Keyword search across variable labels and concept groups. On ACS, returns estimate and margin-of-error codes together.

ecnbasic

publishes TAXSTAT and TYPOP per industry, so withinnaics scopes the enumeration — and the notice says the result is complete for that industry alone. A per-industry dimension is left unchecked for the same reason, since an unscoped check would withhold codes a scoped query does return

parent_fips

and countyfips are zero-padded to the widths the Census matches on, so "5" and "05" both find Arkansas; either also takes "", which is what reaches every block group in a state. geographyfips takes its width from geographylevel and is passed through as given