address-to-census-tract-mcp
This MCP server helps AI assistants map US addresses or coordinates to Census geographies and decode Census GEOIDs.
Look up the census tract, block group, block, state/county FIPS, incorporated place, county subdivision, congressional district, state senate/house districts, urban area, and combined statistical area for a US street address.
Run the same geography lookup for a latitude and longitude.
Select a Census/ACS vintage for lookups:
current,census2020,census2010, oracs2017throughacs2026.Decode 2-, 5-, 11-, 12-, and 15-digit Census GEOIDs, including
1400000US...prefixes, offline into FIPS parts, tract number, block group, and block.Receive structured JSON results with a summary,
as_of, exact source request, tract profile link, andmorelink; no API key is required, and lookups are US-only.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@address-to-census-tract-mcp What census tract is 1600 Pennsylvania Ave NW, Washington, DC in?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
address-to-census-tract-mcp
Address to census tract for AI assistants. Give a US street address or a latitude and longitude and get the exact census tract, block group, block, county FIPS and districts from the US Census Bureau Geocoder.
This is a Model Context Protocol (MCP) server. It calls the Census Geocoder at call time. It needs no API key.
Tools
Tool | What it returns |
| The matched address, latitude and longitude, 11-digit tract GEOID and tract number, block group and block GEOIDs, state and county FIPS, incorporated place, county subdivision, congressional district, state senate and house districts, urban area and combined statistical area. |
| The same geographies for a latitude and longitude. |
| A state, county, tract, block group or block GEOID split into its FIPS parts, with the tract number as Census shows it (012405 is 124.05). Works offline. |
Both lookup tools take an optional vintage. The default current uses today's geographies. census2020 uses the 2020 Census geographies, and acs2017 to acs2026 match an American Community Survey release.
Every result has structured JSON, a one-paragraph summary, as_of, source (the exact Census Geocoder request), a data.census.gov profile link for the tract and more (a page on mcpstamp.com).
Related MCP server: U.S. Census Bureau Data API MCP
What it knows that your model does not
Which census tract a given address is in. Tract lines follow streets, rivers and rail lines, and the two sides of one street can be in different tracts. A model cannot work that out from an address.
The 11, 12 and 15 digit GEOIDs that census data, CRA, LIHTC and grant eligibility lists are keyed on.
The congressional and state legislative districts the Census Bureau currently publishes for that point.
Install
Hosted (Claude.ai custom connector, ChatGPT developer mode)
Paste this URL. No token, no sign-up. It works now.
https://address-to-census-tract-mcp.lipmichal.workers.dev/mcpClaude Code
claude mcp add --transport http census-tract https://address-to-census-tract-mcp.lipmichal.workers.dev/mcpClaude Desktop
Claude Desktop adds remote servers under Settings, Connectors, Add custom connector. Paste the URL above.
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"census-tract": { "url": "https://address-to-census-tract-mcp.lipmichal.workers.dev/mcp" }
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"census-tract": { "type": "http", "url": "https://address-to-census-tract-mcp.lipmichal.workers.dev/mcp" }
}
}Local stdio (after npm release)
The npm package is not published yet. After it is, run it locally with Node 20 or newer:
claude mcp add census-tract -- npx -y address-to-census-tract-mcpExample prompts
"What census tract is 1 Dr Carlton B Goodlett Pl, San Francisco, CA 94102 in?"
"Give me the 11-digit tract GEOID and block group for this address."
"Which census tract and congressional district is 41.8827, -87.6237 in?"
"What is the 2020 census tract for 1600 Pennsylvania Ave NW, Washington, DC?"
"What does GEOID 060750124053007 mean?"
Data sources
Full list with fetch dates in DATA_SOURCES.md.
Address matching and geographies from the US Census Bureau Geocoder, benchmark
Public_AR_Current.State FIPS codes from the Census state reference file.
Limitations
US addresses only.
The Census Geocoder matches street addresses from Census address ranges. PO boxes, rural routes and very new streets may not match. Use the coordinates tool for those.
When an address matches more than one record, the first match is used and the others are listed in
other_matches.The geocoder can be slow. The tool waits up to 30 seconds and then returns a clear error instead of a guess.
More
More MCP servers that answer questions your assistant cannot answer alone are on mcpstamp.com.
Part of the Zovo MCP collection: https://mcp.zovo.one
Built by theluckystrike.
Development
npm install
npm test # builds, then runs the fixture tests and an offline stdio test
node scripts/stdio-transcript.mjs # live stdio round trip, writes .live/stdio-transcript.jsonlLicense
MIT
More from zovo
All free zovo VS Code extensions — file viewers, database clients, formatters. Offline, no telemetry, no sign-up.
Full MCP server catalogue — local-first MCP servers for back-office work: invoices, VAT, PDFs, spreadsheets, payroll.
Hosted no-install MCP endpoints — paste a URL in Claude / Cursor, nothing to install.
Available Tools
3 toolsexplain_census_geoidExplain a census GEOIDARead-onlyIdempotentInspect
Split a census GEOID (2 digits state, 5 county, 11 tract, 12 block group, 15 block, or with a 1400000US style prefix) into state and county FIPS, tract code, the tract number as Census displays it (012405 is 124.05), block group and block. No network call.
Inputs: geoid (required).
get_census_tract_for_addressGet census tract for an addressARead-onlyIdempotentInspect
Look up the census tract for a US street address with the official US Census Bureau Geocoder. Returns the matched address, latitude and longitude, the 11-digit tract GEOID and tract number, block group and block GEOIDs, state and county FIPS, incorporated place, county subdivision, congressional district, state senate and house districts, urban area and combined statistical area. Use it for CRA, LIHTC, opportunity zone, grant eligibility and demographic lookups that start from an address.
Inputs: address (required), vintage.
get_census_tract_for_coordinatesGet census tract for coordinatesBRead-onlyIdempotentInspect
Census tract, block group, block, county, place and congressional and state legislative districts for a latitude and longitude, from the US Census Bureau Geocoder.
Inputs: latitude (required), longitude (required), vintage.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a clearly distinct input modality: street address, lat/long coordinates, and an offline GEOID parser. There is no realistic way to confuse them, and the descriptions reinforce the split between network lookups and pure parsing.
All names are snake_case with a consistent <verb>_census_<noun> shape (get_census_tract_for_address, get_census_tract_for_coordinates, explain_census_geoid). The verb variation (get vs explain) is meaningful rather than arbitrary, signaling network fetch vs local parsing.
Three tools is on the lean side, but for a single-purpose geocoding wrapper each one earns its place with no filler. Slight under-scoping (no batch variant) keeps it just below a 5.
The surface covers forward lookup from address, reverse lookup from coordinates, and GEOID decomposition, which are the core operations of the domain. Minor gaps remain, such as batch lookups or obtaining a tract's centroid/boundary rather than only parsing an ID.
Maintenance
Related MCP Connectors
Geocode US addresses to census tracts and add ACS demographics. Runs on Apify.
AI-operated: US address to districts, legislators, governor and mayor; Google Civic-compatible
US/Canada boundaries: cities, ZIPs, counties, districts, precincts. Lookups, crosswalks, GeoJSON.
Location infrastructure for AI to search and reason over places.
Related MCP Servers
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to discover Census datasets, resolve geographies to FIPS codes, fetch aggregate statistics, and retrieve population data from official Census Bureau sources.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to query official Census Bureau datasets and statistics, resolve geographies to FIPS codes, and retrieve aggregate population and demographic data.-
- FlicenseNot gradedqualityAmaintenanceEnables AI assistants to access official Census Bureau statistics by listing datasets, fetching aggregate data and geography, resolving FIPS codes, and retrieving population data through natural-language prompts.-
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to discover Census datasets, resolve geography FIPS codes, and fetch aggregate statistics from official Census Bureau APIs and local data.MIT