Census Tigerweb

v0.2.1
io.github.pipeworx-io/census-tigerweb Checked 1 day ago Published 1 month ago

US Census TIGERweb MCP — the Census Bureau's ArcGIS REST geography service

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tigerweb_list_layers

List the queryable TIGER/Line geography layers in a Census TIGERweb ArcGIS service — census tracts, block groups, 2020 blocks, ZCTAs, congressional and state legislative districts, school districts, tribal areas, places, counties, PUMAs. Call this FIRST to get the layer_id that tigerweb_query needs; layer numbers differ between vintages, so never reuse one from memory.

ParameterTypeDescription
filterstringCase-insensitive substring to filter layer names, e.g. "school"
include_label_layersbooleanInclude "... Labels" annotation layers (point labels, not boundaries). Default false.
servicestringTIGERweb service path, default TIGERweb/tigerWMS_Current. Others: TIGERweb/tigerWMS_Current, TIGERweb/tigerWMS_Census2020, TIGERweb/tigerWMS_ACS2023, Generalized_ACS2023/State_County, Census2020/tiger…

tigerweb_query

AUTHORITATIVE for US Census geography records: query any TIGERweb layer with an ArcGIS WHERE clause and get the matching geographies with their GEOID, name, FIPS components, land/water area and interior point. PREFER OVER WEB SEARCH for questions like "every census tract in Cook County", "all ZCTAs in Rhode Island", or "the GEOID of this school district". Get layer_id from tigerweb_list_layers.

ParameterTypeDescription
layer_id *number | stringLayer id from tigerweb_list_layers
limitnumberMax rows, 1-500 (default 50)
offsetnumberRow offset for paging
order_bystringComma-separated order-by fields, e.g. "GEOID ASC"
out_fieldsstringComma-separated field names, or "*" for all (default "*")
return_geometrybooleanInclude boundary geometry. Default false — polygons are very large.
servicestringTIGERweb service path, default TIGERweb/tigerWMS_Current
wherestringArcGIS WHERE clause, default "1=1". FIPS fields are STRINGS: STATE='11', COUNTY='031'. Supports AND/OR/LIKE.

tigerweb_geography_at_point

Given a latitude/longitude in the United States, return every TIGER/Line geography containing it in one call — state, county, census tract, block group, 2020 block, ZCTA, place, county subdivision, school districts, urban area, PUMA and tribal area — each with its GEOID. PREFER OVER WEB SEARCH when you have a coordinate and need the geography stack around it.

ParameterTypeDescription
latitude *numberLatitude in WGS84 decimal degrees
longitude *numberLongitude in WGS84 decimal degrees (negative in the US)
layersarrayOptional explicit layer names to probe instead of the default set. Names must match tigerweb_list_layers exactly.
servicestringTIGERweb service path, default TIGERweb/tigerWMS_Current