Election Atlas

io.github.TaltonFiggins由 GitHub 账号 TaltonFiggins 发布v0.1.0更新于 Nov 7, 2026

US & Canada election maps: precincts, ZIP codes, 2026 districts, ridings. GeoJSON + point lookup.

发布方自己的服务:Red Atlas Api

已验证Streamable HTTP可网页运行位置与生活知识与记忆数据与分析

概览

AI 生成的概览

一个美国与加拿大选举地理的远程图集,让助手查询地名、选区、边界和民意代表。

可以做什么
  • 按名称、层级、州或省搜索和列出地理单元,并分页浏览结果
  • 读取单个地理单元的完整记录、上级链、下级数量与来源,并逐层遍历层级结构
  • 交叉查询相互重叠的单元与选区及人口占比,并查找距某点最近的地理单元
  • 判断某点位于哪些辖区、县、选区和选区(加拿大)之内,并获取用于地图的 GeoJSON 边界
  • 查看按国家和层级统计的覆盖范围,以及数据新鲜度、版本年份和刷新历史
  • 查询某地的民意代表,包括众议员、参议员、州议员和市长及其联系方式
适用场景
当助手需要回答美国或加拿大选举地理问题时适用,例如某地或某点属于哪个选区或投票辖区、地图所需的边界形状,或某区域由谁代表。也适合在 ZIP 码、城市、县和选区之间关联数据。
运行要求
远程 streamable HTTP 端点;未声明任何软件包、账户、API 密钥或环境变量。需要能访问该托管服务的网络。较大的边界集合以下载链接形式返回,而非直接内联。
安装前请注意
仅提供只读查询,但结果是参考数据:投票辖区和选区会随选举变化,依赖前应核对版本年份和数据新鲜度。边界简化至约 10 米,ZCTA 仅近似 USPS ZIP 码,最近地理单元结果是点近似而非包含判断。地址需先另行地理编码才能做点查询。

安装

在 SourceWeft 中

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

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.TaltonFiggins%2Felection-atlas/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "election-atlas": {
      "type": "http",
      "url": "https://atlas-production-d344.up.railway.app/mcp"
    }
  }
}

工具

11

search_geographies

Search geographies

Find geographies by name, e.g. 'Essex County', 'Newark ward 5', 'Toronto Centre'. country: 'US' or 'CA'. level: one of the levels from coverage_summary (e.g. 'county', 'precinct', 'congressional_district', 'federal_electoral_district'). region: USPS state or province code ('NJ', 'ON').

输入参数levellimitquery必填regioncountry

get_geography

Get a geography

Full record for one geography: attributes, parent chain up to the country, child counts by level, and the source it came from (licence, vintage, last fetched).

输入参数id必填

list_children

List children

Geographies directly under `id` (state -> counties and districts, county -> precincts and towns, province -> ridings). Filter with `level`; page with limit/offset (max 1000).

输入参数id必填levellimitoffset

list_geographies

List geographies

Every geography at one level, optionally within one state/province, e.g. all congressional districts in 'NJ' or all federal ridings in 'ON'. Page with limit/offset (max 1000).

输入参数level必填limitoffsetregioncountry必填

nearest_geographies

Nearest geographies

Geographies at `level` whose internal point is closest to (lat, lon). This is a nearest-point approximation, not point-in-polygon. To find the geography containing a point, use locate_point.

输入参数lat必填lon必填level必填limit

data_freshness

Data sources and freshness

When each upstream dataset was last fetched and checked, what period it describes (vintage), how often it is re-checked, and whether it is overdue. Includes the recent refresh history.

无需输入参数。

coverage_summary

Coverage summary

What's in the atlas: row counts by country and level, with the vintage of each layer.

无需输入参数。

get_boundaries

Get boundaries (GeoJSON)

Polygon boundaries as a GeoJSON FeatureCollection (EPSG:4326, RFC 7946 winding), for drawing dashboard maps. id: the geography to draw, e.g. 'us:county:34013'. children_level: draw everything at that level inside it instead, e.g. every 'precinct' in a county or state, every 'county' in a state, every 'polling_division' in a riding, or every 'precinct' overlapping a congressional district (any share; use related_geographies for shares). detail: 'high' (~10 m), 'medium' (~50 m, default) or 'low' (~200 m). Neighbouring shapes from the same source share identical edges at every detail level. clip_to_land: trim open water (ocean, bays, Great Lakes) using the state/province shoreline outline (default true; inland lakes are not trimmed; shorelines are generalized to ~1:500k, widened ~200 m so land isn't cut); false gives legal extents. include_districts: add each feature's congressional / state senate / state house district holding the largest share of its population. Feature properties: id, level, code, name, parent_id, region, population (2020 Census for precincts and towns, latest estimate for counties and states), vintage and source_id (2020 Census VTDs have source_id 'us-census-vtd-2020'; current precincts don't), shape_source. Small results come back inline as `geojson`. Larger ones are not returned inline (they'd flood the conversation): the hosted service returns a short-lived `download_url` (fetch it with curl into your project); a local server writes the file to its own export folder and returns `file` (copy it into your project). Page big selections with offset/limit (max 5000 features).

输入参数id必填limitdetailoffsetclip_to_landinline_max_kbchildren_levelinclude_districts

locate_point

Locate a point

Which geographies contain a point: precinct, county, town, congressional and state legislative districts in the US; province, census division and subdivision, federal riding, polling divisions and provincial districts in Canada. Point-in-polygon on stored boundaries (simplified to ~10 m, so a point within ~10 m of a line can land on either side). Geocode an address to lat/lon first. levels: restrict to some levels (default: all except 'vtd_2020'). If a point is just outside every shape of a level that its state/province has (a pier, a beach, a gap between precinct files), it is matched to the nearest shape of that level in the same state/province within ~1 km and flagged approximate=true with distance_m. not_found lists levels the state/province has data for but no shape here; no_data lists levels with no boundaries there at all (e.g. Nebraska has no state house; Ontario has no provincial polling divisions here).

输入参数lat必填lon必填levels

find_officials

Find elected officials

Who represents a place: members of the U.S. House and Senate, state legislators and the mayor, with contacts. Give a geography `id` (a congressional district, state, city 'us:place:...', county, town or ZIP 'us:zcta:...') or a point (`lat`, `lon`; geocode an address first). For a city, county or ZIP that spans several districts, each representative comes with `share` = share of that area's 2020 residents in the district; for an exact answer use a point. Members listed are those serving now (119th Congress, until January 3, 2027); the districts are the 120th Congress maps elected November 3, 2026. In states that redrew for 2026 (AL, CA, FL, LA, NC, OH, TN, TX, UT) a representative's `note` says they were elected under the previous map. A district with no member is vacant. State legislators (state_legislators=True, except for a whole state, where pass it explicitly) come from Open States; members in states that redrew legislative maps for 2026 (MI, MN, MS) carry a similar note. Mayors (local=True) come from Open States (larger cities, while their term runs) or, failing that, Wikidata (one current head of government, in office since 2010; their `note` says to confirm on the city's website). Sources: the @unitedstates congress-legislators dataset (CC0), Open States (public domain), Wikidata (CC0). US only for now.

输入参数idlatlonlocalstate_legislators

版本历史

1
  1. v0.1.0最新Nov 7, 2026

评分

已满足适用检查项的 83%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。

其他 Atlas 集成