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 分