Address to Census Tract MCP

io.github.theluckystrike由 GitHub 帳號 theluckystrike 發布v1.0.0更新於 Nov 5, 2026

US address to census tract, block group, county FIPS and districts, from the Census Geocoder.

已驗證Streamable HTTP可網頁執行位置與生活資料與分析

概覽

AI 產生的概覽

託管型 MCP 伺服器,透過美國人口普查局地理編碼器把美國街道地址或經緯度轉成精確的普查區、區塊群、區塊、FIPS 與選區地理資訊。

可以做什麼
  • 依美國街道地址查詢普查地理資訊:比對到的地址、經緯度、普查區 GEOID 與編號、區塊群與區塊、州與郡 FIPS、建制地、選區及城市化地區
  • 依經緯度查詢同樣的地理資訊
  • 離線解析州、郡、普查區、區塊群或區塊 GEOID,拆出 FIPS 各部分並依普查局顯示方式給出普查區編號
  • 每次查詢可選擇地理版本:current、census2020,或 acs2017 至 acs2026 的 ACS 版本
  • 回傳結構化 JSON,含摘要、as_of 日期、實際送出的普查局地理編碼請求、data.census.gov 普查區資料連結及其他比對結果
適用情境
適合需要回答某個美國地址或座標屬於哪個普查區、區塊群、FIPS 代碼或立法選區的情況,例如補助資格、CRA 或 LIHTC 相關工作,或依 GEOID 串接普查資料。模型無法自行推算普查區界線,因此這類查詢確實有價值。
執行需求
遠端 streamable HTTP 端點,不需權杖、註冊或 API 金鑰。在 Claude、ChatGPT 開發者模式、Cursor 或 VS Code 中以自訂連接器或 MCP 項目加入伺服器網址即可。兩個查詢工具需要能連線到普查局地理編碼器;GEOID 解析工具可離線使用。README 提到的本機 npm 套件尚未發布。
安裝前請注意
送出的地址與座標會傳給第三方美國人口普查局地理編碼器。僅支援美國地址,郵政信箱、鄉村路線和很新的街道可能比對不到;多筆紀錄符合時只取第一筆,其餘另列。查詢可能較慢,約 30 秒後逾時。工具只讀取資料,不會修改任何內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Address to Census Tract MCP,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.theluckystrike%2Faddress-to-census-tract-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "address-to-census-tract": {
      "type": "http",
      "url": "https://address-to-census-tract-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

README

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

ToolWhat it returns
get_census_tract_for_addressThe 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.
get_census_tract_for_coordinatesThe same geographies for a latitude and longitude.
explain_census_geoidA 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).

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/mcp

Claude Code

claude mcp add --transport http census-tract https://address-to-census-tract-mcp.lipmichal.workers.dev/mcp

Claude Desktop

Claude Desktop adds remote servers under Settings, Connectors, Add custom connector. Paste the URL above.

Cursor

Add to ~/.cursor/mcp.json:

json
{  "mcpServers": {    "census-tract": { "url": "https://address-to-census-tract-mcp.lipmichal.workers.dev/mcp" }  }}

VS Code

Add to .vscode/mcp.json:

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-mcp

Example 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.

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 installnpm test                              # builds, then runs the fixture tests and an offline stdio testnode scripts/stdio-transcript.mjs     # live stdio round trip, writes .live/stdio-transcript.jsonl

License

MIT

來源:README.md,提交 1e02f83

工具

3

get_census_tract_for_address

Get census tract for an address

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.

輸入參數address必填vintage

get_census_tract_for_coordinates

Get census tract for coordinates

Census tract, block group, block, county, place and congressional and state legislative districts for a latitude and longitude, from the US Census Bureau Geocoder.

輸入參數vintagelatitude必填longitude必填

explain_census_geoid

Explain a census GEOID

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.

輸入參數geoid必填

版本歷史

1
  1. v1.0.0最新Nov 5, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分