Civic Library Mcp

io.github.adriancisnerosspeed-hub由 GitHub 账号 adriancisnerosspeed-hub 发布v0.1.1更新于 Oct 24, 2026

US civic & property data: geocoding, census tracts, Opportunity Zones, FEMA flood zones.

发布方自己的服务:Nexus

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

一个 MCP 服务器,让助手查询美国市政与房产数据:地理编码、人口普查区、机会区、ACS 人口统计和 FEMA 洪水区。

可以做什么
将美国街道地址地理编码为坐标、州、县和 2020 年人口普查区,或将坐标解析为所属普查区及县/州。检查地址、坐标点或普查区是否位于指定的合格机会区,并按 2010 年普查区边界重新解析。查询某坐标的 FEMA 洪水危险区及是否属于特殊洪水危险区。获取 ACS 五年期普查区指标,如人口、家庭收入中位数、房屋价值和贫困率。
适用场景
适用于房产、住房、市政科技或 GIS 相关工作,助手需要从官方联邦开放数据中快速、紧凑地查询美国普查区、机会区、洪水风险或人口统计信息。
运行要求
通过 npx 本地运行(需 Node.js)。五个工具中有四个无需配置;人口统计工具需要免费的 Census API 密钥,以 CENSUS_API_KEY 设置。需要访问 Census、Treasury 和 FEMA 数据源的网络。
安装前请注意
Census API 密钥是放在环境变量中的机密。结果仅供参考,不构成法律、税务、保险或投资建议,交易前应向官方来源核实。机会区匹配使用 2010 年普查区边界,与地理编码返回的 2020 年 GEOID 不同。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Civic Library Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

civic-library-mcp

An MCP server that gives AI agents clean, token-efficient access to US civic & property data — geocoding, census tracts, Opportunity Zones, ACS demographics, and FEMA flood zones — sourced entirely from free federal open data.

No scraping, no paid keys for the core tools, no proprietary databases. Just the official sources (U.S. Census Bureau, U.S. Treasury CDFI Fund, FEMA), wrapped in a small set of well-described tools that return compact JSON instead of the bloated payloads most data MCPs dump into your context window.

Built for developers working on proptech, real-estate, fintech, civic tech, GIS, and housing research with AI agents.


Tools

ToolWhat it doesAPI key?
geocode_addressUS street address → lat/lng + state, county, and 2020 census tract GEOIDNone
lookup_census_tractlat/lng → the 2020 census tract (with county/state) containing that pointNone
check_opportunity_zoneIs this address / point / tract in a designated Qualified Opportunity Zone?None
get_tract_demographicsACS 5-Year indicators (income, population, home value, poverty rate, …) for a tractFree Census key
check_flood_zonelat/lng → FEMA flood-hazard zone + whether it's a Special Flood Hazard AreaNone

Four of the five tools work with zero configuration. Only get_tract_demographics needs a free Census API key (see below).


Install

Claude Desktop / Cursor / any MCP client

Add to your MCP config (e.g. claude_desktop_config.json):

json
{  "mcpServers": {    "civic-library": {      "command": "npx",      "args": ["-y", "civic-library-mcp"],      "env": {        "CENSUS_API_KEY": "your-free-census-key-optional"      }    }  }}

Claude Code

bash
claude mcp add civic-library -- npx -y civic-library-mcp

The CENSUS_API_KEY line is optional — leave it out and four of the five tools still work.

Census API key (only for demographics)

get_tract_demographics calls the U.S. Census ACS Data API, which requires a free key. Get one in ~30 seconds at https://api.census.gov/data/key_signup.html and set it as CENSUS_API_KEY in the server's environment.


Examples

Check whether a property is in an Opportunity Zone:

jsonc
// check_opportunity_zone({ "address": "900 Camp St, New Orleans, LA 70130" }){  "is_opportunity_zone": true,  "tract_geoid_2010": "22071013400",  "designation_type": "Low-Income Community",  "round": "1.0",  "authority": "Tax Cuts and Jobs Act of 2017 (26 U.S.C. § 1400Z-1)",  "resolved_from": "address",  "source": "U.S. Treasury CDFI Fund (designated 2018-12-14)"}

Flood risk for a coordinate:

jsonc
// check_flood_zone({ "latitude": 29.9511, "longitude": -90.0715 }){  "flood_zone": "X",  "zone_subtype": "0.2 PCT ANNUAL CHANCE FLOOD HAZARD",  "in_special_flood_hazard_area": false,  "zone_description": "Moderate-to-minimal risk (outside the 1% annual-chance floodplain).",  "source": "FEMA National Flood Hazard Layer"}

Tract demographics (needs a key):

jsonc
// get_tract_demographics({ "tract_geoid": "22071013400",//   "fields": ["population", "median_household_income", "poverty_rate"] }){  "tract_geoid": "22071013400",  "tract_name": "Census Tract 134, Orleans Parish, Louisiana",  "acs_dataset": "ACS 5-Year 2023",  "population": 2276,  "median_household_income": 41250,  "poverty_rate": 0.231}

A note on correctness: Opportunity Zones use 2010 census tracts

Opportunity Zone designations are keyed to 2010 census tract boundaries, but the default Census geocoder returns 2020 tracts — and tract GEOIDs changed between the two vintages. A naive lookup that matches a 2020 GEOID against the OZ list will silently return wrong answers near any boundary that moved.

check_opportunity_zone handles this correctly: it re-resolves the address/coordinate to its 2010 tract before matching. (You can see the difference — the same address can yield GEOID …980000 from geocode_address and …006202 from check_opportunity_zone.) If you pass tract_geoid directly, it's treated as a 2010 GEOID.


Data sources & licensing

DataSourceNotes
Geocoding & census tractsU.S. Census Bureau GeocoderPublic domain
Opportunity ZonesU.S. Treasury CDFI FundRound 1 (2018) designations, 8,764 tracts, bundled
DemographicsU.S. Census ACS 5-YearPublic domain; free key required
Flood zonesFEMA National Flood Hazard LayerPublic domain

All underlying data is U.S. federal open data (public domain). This software is MIT-licensed.

The bundled Opportunity Zone list is regenerated with npm run build:oz.


Roadmap

  • OZ 2.0 — designations under the One Big Beautiful Bill Act (2025) once finalized/published.
  • More ACS fields — educational attainment, race/ethnicity, housing tenure, commute.
  • County parcel / CAD lookups — added per-county only where the source's terms of use permit automated access.
  • Census place & ZIP geographies, FEMA base flood elevations.

Disclaimer

This tool surfaces public government data for informational purposes. It is not legal, financial, tax, insurance, or investment advice. Opportunity Zone, flood-zone, and demographic determinations should be confirmed against the official source of record before relying on them for any transaction. Data is provided "as is" with no warranty.

Contributing

Issues and PRs welcome — especially additional federal open-data sources and ACS fields. Keep responses compact (token cost is a feature) and every data point attributed to its source.

License

MIT © 2026 Adrian Cisneros

来源:README.md,提交 b25ebea

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Civic 集成