Boundary Atlas
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., "@Boundary Atlas Which congressional district contains 1600 Pennsylvania Ave NW?"
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.
Boundary Atlas
(Formerly Election Atlas; the Python package keeps that name.)
US and Canadian boundaries and lookups, served over MCP so Claude, ChatGPT, Cursor, Codex and other agents can use
them: cities and towns, ZIP codes, counties, towns and townships, congressional and state legislative districts
(the 2026 maps), voting precincts, and Canadian provinces, ridings and polling divisions. Agents find what contains
any address or point, cross between units with population shares (ZIP to city, county or district), and get
GeoJSON boundaries. Uses range from routing leads and joining ZIP-level data to finding who represents an address
and mapping election results. Every record carries its source, licence, vintage and updated_at. Every
refresh is logged, so you always know how current each layer is.
Free to use, no key: add https://boundarymcp.com/mcp to your agent (see Client setup), try the map at
https://boundarymcp.com/demo, or point an agent at /llms.txt.
What's in it (built 2026-11-04)
Country | Level | Rows | Source / vintage |
US | state (+DC, PR) | 52 | Census FIPS; 2025 population estimates |
US | county | 3,222 | Census Gazetteer 2025; 2025 population estimates |
US | county_subdivision (towns, townships) | 36,297 | Census Gazetteer 2025 |
US | congressional_district (120th, elected 2026-11-03) | 437 | Census Gazetteer list; population, area and point recomputed from the 120th Congress block file |
US | state_senate_district / state_house_district | 1,958 / 4,873 | Census Gazetteer list; recomputed from the 2026 legislative block files |
US | precinct | 182,792 | Current official precincts for 92% of the population: statewide files in 34 states + DC, plus county-, town- and municipio-level files assembled for the other 15 states, NJ and PR (2022–2026 vintages; see |
US | council_district (city council districts and wards) | 5,376 in 1,045 cities and towns | Each city's own GIS layer (or an official county, regional or state layer), researched Nov 2026: the 600 largest cities and, below that, cities with a published ward layer and a confirmed by-district election, plus official many-city layers: Arkansas municipal wards, Wisconsin aldermanic districts, South Carolina municipal council districts, New Hampshire city wards, wards carried on the state precinct files of Minnesota, Michigan, Rhode Island, North Dakota and Vermont (cities whose charter elects the council by ward), Massachusetts wards (cities confirmed to elect by ward), and county or regional layers for San Diego, Maricopa, Cook (IL), Hamilton (IN) and Johnson (KS) counties and the Houston area; towns, townships and boroughs with wards (Trumbull CT; ten in Montgomery County PA from the county's voting-district layer) where the council is confirmed as elected by ward |
US | county_district (county supervisor, commissioner, council districts) | 6,499 in 846 counties | Each county's own GIS layer, researched Nov 2026: the 200 largest counties; plus statewide sources for Michigan (with commissioners), Wisconsin, Minnesota, Tennessee (Census county subdivisions, checked against three counties' own maps), Virginia (Department of Elections files), Arkansas (quorum court districts), South Carolina, Oklahoma, Iowa (counties that elect supervisors by district), Indiana (county councils) and Delaware, and the Deep East Texas counties |
US | vtd_2020 | 141,029 | 2020 Census VTDs wherever current precincts replaced them, kept for historical joins |
US | place (cities, towns, Census-designated places) | ~32,000 | TIGER/Line 2025 PLACE; 2020 population and population-weighted links to counties, districts and ZIP codes from 2020 blocks |
US | zcta (ZIP Code Tabulation Areas) | 33,774 | TIGER/Line 2020 ZCTA5 shapes; population-weighted links to precincts, counties, towns and districts from the 2020 ZCTA-to-block relationship file. ZCTAs approximate USPS ZIP Codes (no PO-box-only or single-building ZIPs; fixed for the decade) |
US | precinct/county/town ↔ district links | see | 2020 blocks × Census 120th Congress and 2026 legislative block equivalency files, weighted by population. Each block's town is the current (2025) county subdivision containing its 2020 internal point, so towns recoded since 2020 (Methuen and Watertown MA, Mount Lebanon PA) and the census county divisions of non-MCD states are linked too |
US + CA | boundaries (polygons) | every level | TIGER/Line 2025 (states, counties, towns) and 2026 (120th Congress, 2026 legislative plans), 2020 Census VTDs, current precinct files; Elections Canada (ridings, polling divisions), Statistics Canada 2021 (census divisions and subdivisions; provinces built from them), provincial agencies. Water trimmed for display with the Census 1:500k state outlines |
CA | province / territory | 13 | SGC 2021; 2021 Census population |
CA | census_division / census_subdivision | 293 / 5,161 | Statistics Canada 98-10-0002-01 (2021) |
CA | federal_electoral_district | 343 | Elections Canada, 2023 Representation Order |
CA | polling_division | 71,217 | Elections Canada, 45th GE (2025) |
CA | provincial_electoral_district | 762 | Provincial elections agencies / open-data portals, every province and territory except Nunavut |
CA | provincial_polling_division | 31,111 | 10 provinces/territories (not ON or AB, whose terms bar commercial use; NU publishes none) |
Statewide precinct and provincial sources are listed in ingest/precinct_sources.json; the 437 county, town and municipio sources are in ingest/county_precinct_sources.json.
Each source was found by one research agent and re-checked by an independent second agent, with the URL, fields, feature count and licence each confirmed.
Current precinct polygons are joined to the 2020 blocks by each block's internal point.
Precincts too small to contain any block's internal point take the districts of the nearest block, and those links are marked
approximate.A county (or, in CT and ME, a town) switches to current precincts only when its sources together place at least 90% of its 2020 population; any block left in a gap goes to the nearest precinct, so each state's precinct populations add up exactly to its 2020 total.
Per-county precinct counts were audited against official counts (state precinct lists, results reporting units). 69 disagreements were diagnosed and fixed by re-keying, merging split parts or dropping outdated layers; the remaining differences are explained in each source's notes.
Known gaps:
Counties still on 2020 Census VTDs (no official current machine-readable file, a licence that bars commercial use, or an outdated layer), by state share of population on current precincts: AL 71%, AZ 93%, CO 82%, CT 29% (25 of 169 towns), FL 85%, IL 85%, MO 51%, MS 56%, NE 85%, NJ 45%, OH 78%, OR 90%, PA 71%, SD 42%, WY 67%; ME and PR 100%. The largest gaps are Duval FL and Bergen/Essex NJ (no machine-readable file), and Monmouth/Somerset NJ, Bucks/Chester/Lancaster/Berks PA and El Paso CO (licences bar commercial use). Public-records requests are the way to fill them. A county (or CT/ME town) only switches to current precincts when at least 95% of its population falls strictly inside the source's polygons (where a 2020 VTD fallback exists), so partial layers (St. Clair and Vermilion IL without their separate city boards, Pickaway OH without its city layer) stay on 2020 VTDs.
Connecticut: 2020 Census VTDs used the old counties abolished in 2022; they are attached to the planning region holding most of their population.
Oregon: the Census published no 2020 VTDs for Oregon, so its 11 counties without a current file (10% of the population) have no precinct rows at all; counties and districts still cover them.
Commercial terms are "unclear" (public record with no stated licence) for many state and provincial sources.
data_freshnessshows each source's licence. Confirm before selling.Boundaries are display- and lookup-grade, not survey-grade: simplified to about 10 m and snapped to a 1 m grid. Each source layer is cleaned and simplified as one coverage, so neighbouring shapes share identical edges. Current precincts from different county sources, and their neighbouring 2020 VTDs, can leave thin seams where the source files disagree.
District maps: districts are the maps in force on Nov 3, 2026, including the 2025–26 redraws (congressional: AL, CA, FL, LA, NC, OH, TN, TX, UT; legislative: MI, MN, MS). Missouri is on its 2022 map: the 2025 map (HB 1) was used in the Aug 4 primary, but the courts kept the 2022 lines for Nov 3 (US Supreme Court order 26A388) and voters rejected HB 1 that day. Census's TIGER/Line 2026 Missouri shapes draw HB 1, so the atlas uses the 119th Congress shapes (the 2022 map) for Missouri. Several maps are still in court; add any newer plan to
ingest/redistricting.py.
Related MCP server: mapsi-mcp
MCP tools
Tool | What it does |
| Full-text name search, filterable by country, level and state/province |
| One record, with its parent chain, child counts, source/licence, and |
| Walk down the hierarchy (state → counties, county → precincts, riding → polling divisions) |
| Which congressional and legislative districts a precinct, county or town falls in (with population share), or every precinct in a district. For a ZIP ( |
| Every unit at one level, optionally within a state or province |
| GeoJSON polygons for one geography or everything at a level inside it (every precinct in a county, every county in a state, every precinct in a district), at high/medium/low detail, optionally water-trimmed and tagged with each feature's districts. Large sets come back as a download link (hosted) or a file (local) |
| Members of Congress, state legislators and mayors for a district, state, city, county, ZIP or point (party, phone, website; shares for split areas; sources: congress-legislators, Open States and Wikidata, all public domain) |
| A US street address to its city, county, ZIP, districts and precinct (Census Geocoder, then |
| Point-in-polygon: the precinct, county, town, districts, riding and polling division containing a lat/lon |
| Nearest internal point to a lat/lon (approximate; prefer |
| Per-source fetched/checked times, vintage, refresh interval, overdue flag, refresh log |
| Row counts and vintages by level |
Run it
uv sync
uv run python -m election_atlas.ingest all # ~2 GB of downloads, cached in data/cache
uv run boundary-atlas # stdio, no key: for local use (election-atlas also works)
uv run boundary-atlas --http --port 8000 # hosted mode: /mcp open to all, rate-limited per IPRun the ingest again at any time. Each source is hashed, refresh_log records ok / unchanged / error, and a
row's updated_at only moves when its content changes. Schedule it weekly. Each source's own
refresh_interval_days drives the overdue flag in data_freshness.
ZIP codes (ingest zcta) run after links, because they reuse its block-to-precinct assignments. Re-ingesting a
state's precincts drops that state's ZIP-to-precinct links (precinct ids change), so run ingest zcta again after
ingest precincts. It downloads the 530 MB TIGER ZCTA shapefile and the 1 GB ZCTA-to-block relationship file once.
Cities and towns (ingest places) run after zcta: TIGER/Line 2025 PLACE files (about 6 MB per state), with
population and links from 2020 blocks by internal point. Chicago and Beverly Hills come out at exactly their 2020
Census counts.
City council districts and wards, and county board (supervisor, commissioner, council) districts, come from each
government's own GIS layer (ingest local, after places and zcta). There is no national file, so coverage is
entry by entry in src/election_atlas/ingest/local_district_sources.json, largest cities and counties first:
an entry records the layer, the district and member fields, the publisher, licence and vintage, the official roster page, and the members read on the
revieweddate;a layer goes in only if the city or county (or an official regional GIS) publishes it, it downloads without a login, and it has as many districts as the body has district seats;
bodies elected at large are recorded with
at_large_onlyand get no districts; doubtful layers carry aholdwith the reason and are not loaded;levels are
council_district(parent: the city) andcounty_district(parent: the county); each district gets its 2020 population, ZIP links by population share, andofficialsrows for its sitting member(s).
Members change after every election. Re-check members and reviewed before a reload; --names "San Francisco"
or --states CA limits a run, and --new loads only the governments not loaded from their source yet (after a
research wave). An entry with "multi": true is one official layer for many governments (the Arkansas GIS Office's
municipal wards, Michigan's county commissioner districts, Wisconsin's wards with their aldermanic districts): it is
split by city or county on load. A government with a single "district" in such a layer is left out as an at-large
body, and derive splits a column that holds both the city and the district (Lenexa Ward 3).
The local layer ships as a patch, not a full database upload (it is a few MB against 1.7 GB):
uv run python -m election_atlas.ingest local # into the local atlas
uv run python -m election_atlas.ingest.patch export data/atlas.patch.db
railway volume files --volume atlas-volume upload data/atlas.patch.db /atlas.patch.db
railway redeploy --yes # the server applies it at startupAt startup the server replaces every council_district / county_district row (shapes, officials, ZIP links,
sources) with the patch's in one transaction, rebuilds the search index and renames the file to
atlas.patch.applied.db. A patch that doesn't fit (a district whose city isn't in the hosted atlas) is refused
whole and renamed atlas.patch.failed.db; the log line says which.
Public demo (/demo)

The HTTP server also serves a public demo page at /demo. A visitor types a ZIP code or a street address, or
clicks the map, and sees:
the ZIP (ZCTA) outline and the precincts inside it, with names, codes and each precinct's share of the ZIP;
its city council and county board districts (where on file), county, and congressional, state senate and state house districts, with population shares and who holds each seat. One level colours the map at a time: each district's part of the ZIP in its own colour, labelled with its name and member;
for an address or a clicked spot, cards for the exact answer: its districts, who represents it, and the city's and county's websites;
a "What your agent sees" tab listing the MCP tool calls behind the map (
locate_point,related_geographies,get_boundaries), with trimmed JSON;install snippets for Claude Code, Cursor, Codex, the Claude app and ChatGPT (no key), and a Support button when
DONATE_URLis set.
The map uses MapLibre GL JS 4.7.1 from unpkg and the free, no-key OpenFreeMap basemap. Addresses are geocoded server-side by the free U.S. Census Geocoder. The page says plainly that ZCTAs approximate USPS ZIP Codes.
ATLAS_URL_SECRET=dev PUBLIC_URL=http://127.0.0.1:8000 uv run election-atlas --http
open http://127.0.0.1:8000/demo?zip=07102The page calls one keyless endpoint, GET /demo/api/lookup?zip=07102 (or lat=…&lon=…; optional
detail=medium|low). Addresses are sent as POST {"address": "…"} so they stay out of URLs and request logs
(address=… in a GET still works for links). The address forms on the home page and /lookup open this page. It backs the page only, so it stays narrow (agents should use /mcp, which does everything):
one ZIP per request, and one request in flight per visitor;
per-IP limits of
DEMO_PER_HOUR(default 40) andDEMO_PER_DAY(default 150), answered with 429 andRetry-After;detail
mediumorlowonly;county and district layers are each district's part of the ZIP, plus its border in a window around the ZIP;
no download links, no paging, and no
children_levelexcept the precincts inside the one ZIP (never a whole state or country);no generic tool endpoint: that's
/mcp.
Limits are kept in memory per process (the least recently seen visitors are forgotten past 200,000, and at most 8
lookups are pending across all visitors). A lookup that times out keeps its visitor's slot until its work actually
finishes. Behind a proxy or CDN, set DEMO_TRUST_PROXY so the limit counts the visitor rather than the proxy:
DEMO_TRUST_PROXY=<header>, naming the one header your edge sets and overwrites:fly-client-ipon Fly.io,cf-connecting-ipbehind Cloudflare,x-real-ipbehind an nginx that sets it;DEMO_TRUST_PROXY=1: the lastX-Forwarded-Forentry, the one your proxy appended (earlier entries come from the visitor and are ignored).
Leave it unset when visitors connect directly, or they could pick their own rate-limit bucket. The server also runs
uvicorn with proxy_headers=False, so no other layer rewrites the client address. Run tests with uv run pytest.
Access and limits
/mcp is open: no key, no sign-up. Limits are per IP address, kept in memory per process:
MCP_PER_MINUTE(default 60) andMCP_PER_DAY(default 3,000) requests, and 4 in flight at once, answered with 429 andRetry-After;large
get_boundariesresults come back as a signed download link that works for an hour; anonymous downloads are limited toDOWNLOADS_PER_MINUTE(6) andDOWNLOADS_PER_DAY(100). Links carry a keyed hash of the caller's address, never the address itself.
The client address comes from the same DEMO_TRUST_PROXY rule as the demo.
Being found by people and agents (site.py):
/: a plain-HTML home page (what's in it with live counts, how to connect each client, example prompts, the tools, an FAQ), with JSON-LD (WebSite,SoftwareApplication,Dataset,FAQPage) and Open Graph tags./llms.txt: the short index for agents (llmstxt.org format)./llms-full.txt: the full agent guide, with the usage guide, every tool and its parameters, coverage, limits and attribution. The usage guide lives inagent_guide.md; the Claude Code plugin's skill carries the same text (a test keeps them in sync).Fact pages (
pages.py), one per ZIP (/zip/60611), state (/state/nj, index at/states) and congressional district (/congressional-district/nj-10, at-largeak-al). Each leads with a plain-sentence answer ("ZIP code 60611 is in Illinois's 7th congressional district (54% of residents) and…"), with tables, links, the matching MCP call, and JSON-LD (Place,BreadcrumbList,FAQPage)./robots.txtwelcomes AI crawlers by name and keeps them off the APIs./sitemap.xmlis an index of/sitemap-pages.xml(site, states, districts) and/sitemap-zips.xml(every ZIP page)./indexnow.txtservesINDEXNOW_KEYso new pages can be pushed to Bing and other IndexNow engines.GOOGLE_SITE_VERIFICATIONandBING_SITE_VERIFICATION(the token only) add search-console ownership tags.
Tool text on these pages comes from the tools' own descriptions and the counts from the database, so they can't drift. Set DONATE_URL (a
Stripe pay-what-you-want Payment Link, Ko-fi, GitHub Sponsors…) to show a Support button on the demo and a Support
line in /llms.txt and in 429 responses.
Paid keys (dormant). billing.py and the Stripe webhook at /stripe/webhook are
still there in case paid access comes back:
a valid
Authorization: Bearer ea_live_...key skips the limits;an invalid key is refused (401) rather than silently falling back to the anonymous limits;
uv run python -m election_atlas.billing issue|list|revokemanages keys by hand.
To sell keys again, see the webhook events in billing.py (checkout.session.completed, invoice.paid,
customer.subscription.deleted) and the key reveal page at /welcome?session_id=….
Hosting
The hosted server is at https://boundarymcp.com (demo: /demo, MCP: /mcp). To run your own, build
deploy/Dockerfile and mount a volume for the database (ATLAS_DB, /data/atlas.db in the
image). Variables:
PORT=8080PUBLIC_URLATLAS_URL_SECRET(openssl rand -hex 32, the same on every instance)CANONICAL_HOST(optional): pages redirect to this host, while/mcp, downloads and APIs keep answering on any hostDONATE_URL(optional): the Support button's linkDEMO_TRUST_PROXY: the header your edge sets with the visitor's address (see the demo section above)
To ship a rebuilt database, take a consistent copy with SQLite's backup API while no ingest is running (refresh_log
has no running rows), swap it in on the volume and restart, then check /healthz. Before the database goes up,
check that api_keys holds only the keys you mean to ship.
Analytics (/stats)
First-party and privacy-preserving (analytics.py): daily counts in their own SQLite
file (ANALYTICS_DB, default next to the atlas, so database swaps don't reset it). No IP addresses, street addresses,
full URLs, query strings or cookies are stored; unique visitors and agents are counted with a hash under a random salt
that lives only in memory and changes daily.
Site: page views by page type, where visitors came from (AI assistants such as ChatGPT, Perplexity, Claude, Copilot and Gemini by name, including ChatGPT's
utm_source; search engines; social; other hosts), errors.Crawlers: GPTBot, OAI-SearchBot, ClaudeBot, PerplexityBot, Googlebot, Bingbot and others, and which pages they read.
MCP: requests by method, tool calls by tool and client, clients that connect, rate-limited requests.
/stats (and /stats.json) is behind HTTP Basic auth: user stats, password STATS_KEY. Without STATS_KEY it 404s.
MCP Registry
server.json lists the hosted server in the official MCP Registry
as io.github.TaltonFiggins/boundary-atlas (directories such as PulseMCP read from it). The earlier
io.github.TaltonFiggins/election-atlas entry is marked deprecated. To publish a new version, bump
version and run:
mcp-publisher login github
mcp-publisher publishClient setup
No key needed. The MCP endpoint is https://boundarymcp.com/mcp.
Claude Code:
claude mcp add --transport http boundary-atlas https://boundarymcp.com/mcpOr install the plugin, which adds a skill on using the tools well:
/plugin marketplace add TaltonFiggins/boundary-atlas, then/plugin install boundary-atlas@boundary-atlas.
Cursor: plugins/cursor/mcp.json into
~/.cursor/mcp.json.Codex: plugins/codex/config.toml appended to
~/.codex/config.toml.Claude app (claude.ai or desktop): Settings → Connectors → Add custom connector, with the URL above.
ChatGPT (developer mode): add a custom connector with the URL above and no authentication.
Licence
The code is under the MIT licence. The boundary data keeps each source's own terms: data_freshness and
get_geography return the source and licence for every record.
Attribution
Source: U.S. Census Bureau.
Contains information licensed under the Open Government Licence – Canada.
Adapted from Statistics Canada, Population and dwelling counts (table 98-10-0002-01), 2021. This does not constitute an endorsement by Statistics Canada of this product.
Available Tools
12 toolscoverage_summaryCoverage summaryARead-only
What's in the atlas: row counts by country and level, with the vintage of each layer.
Inputs: no named parameters.
data_freshnessData sources and freshnessARead-only
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.
Inputs: no named parameters.
find_officialsFind elected officialsARead-only
Who represents a place: members of the U.S. House and Senate, state legislators, the mayor, and the city council member and county supervisor or commissioner where their district maps are on file, with contacts.
Give a geography `id` (a congressional district, state, city 'us:place:...', county, town or ZIP 'us:zcta:...')
or a point (`lat`, `lon`; for a street address use lookup_address with include_officials=True). 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), of cities and, where towns and townships are the local government (NJ, PA, NY, New
England, MI, MN, WI), of those too, 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).
City council members and county supervisors/commissioners (local=True) come with the largest cities' and
counties' own district maps: a point gets the one member for its district (several in multi-member districts);
a city id 'us:place:...' or a county id lists the whole body by district; a district id
'us:council_district:...' gives its member. Names are from the city's or county's own GIS layer or official
roster, read on the date in `note`; seats change after each election, so confirm on the linked website.
Sources: the @unitedstates congress-legislators dataset (CC0), Open States (public domain), Wikidata (CC0).
US only for now.
Inputs: id, lat, lon, local, +1 more.
get_boundariesGet boundaries (GeoJSON)ARead-only
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).
Inputs: id (required), limit, detail, offset, +4 more.
get_geographyGet a geographyARead-only
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).
Inputs: id (required).
list_childrenList childrenARead-only
Geographies directly under id (state -> counties and districts, county -> precincts and towns,
province -> ridings). Filter with level; page with limit/offset (max 1000).
Inputs: id (required), level, limit, offset.
list_geographiesList geographiesARead-only
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).
Inputs: level (required), country (required), limit, offset, +1 more.
locate_pointLocate a pointARead-only
Which geographies contain a point: precinct, county, town, city, city council and county board district, 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). For a US street address, call lookup_address instead.
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).
'council_district' (city council district or ward) and 'county_district' (county supervisor, commissioner or
council district) are on file for the largest cities and counties only: elsewhere they come back under
not_on_file, which means no map here yet or a body elected at large, not that the point is outside one.
Inputs: lat (required), lon (required), levels.
lookup_addressLook up a US street addressARead-only
What a US street address is in: its city or town, county, ZIP, congressional and state legislative districts and voting precinct, and optionally who represents it.
Give one line with street, city and state: '233 S Wacker Dr, Chicago, IL' (a ZIP helps). The address is matched
by the free U.S. Census Geocoder (sent to census.gov, not stored here), then located exactly as locate_point does:
the answer has `matched_address`, `lat`, `lon` and the same `results` (pass `levels` to narrow them).
include_officials=True adds `officials`, the same list find_officials gives for that point. US addresses only:
for Canada, or when you already have coordinates, call locate_point. PO boxes and new construction may not match;
then fall back to the ZIP with get_geography('us:zcta:<zip>').
Inputs: address (required), levels, include_officials.
nearest_geographiesNearest geographiesARead-only
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.
Inputs: lat (required), lon (required), level (required), limit.
search_geographiesSearch geographiesARead-only
Find geographies by name and get their IDs: 'Austin, TX', 'Cook County', '78701', 'Toronto Centre', 'Newark ward 5', or a congressional district as 'TX-21' or "Texas's 21st congressional district".
Results are the best name matches, most populous first, as id, level, name, full_name, region and population;
call get_geography(id) for the full record. `more` is true when there are further matches: add the state
('Springfield, MO') or a filter. country: 'US' or 'CA'. level: one of the levels from coverage_summary (e.g.
'place', 'county', 'zcta', 'congressional_district', 'federal_electoral_district'). region: USPS state or
province code ('NJ', 'ON'). This searches names, not street addresses: for an address call lookup_address.
Inputs: query (required), level, limit, region, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
The tools divide cleanly by resource and operation: search/get/list for records, get_boundaries for geometry, locate_point vs nearest_geographies explicitly distinguished, and lookup_address vs find_officials for addresses versus representatives. The documented overlap where lookup_address can include officials is a convenience, not a real ambiguity.
All names use consistent snake_case. Most are verb-led (get_, find_, search_, list_, locate_, lookup_), but related_geographies, nearest_geographies, data_freshness, and coverage_summary are noun-led, so the pattern is mostly rather than fully uniform.
Twelve tools is well within the right range for a multi-layer geospatial atlas. Each tool covers a distinct query mode—search, inspect, draw, relate, locate, officials, and metadata—without obvious padding.
The surface is strong for a read-only atlas: discovery, hierarchy, boundaries, overlaps, point/address lookup, representatives, and dataset metadata are all covered. Remaining gaps are minor, such as batch geocoding and historical boundary retrieval, while local official coverage is explicitly partial.
Maintenance
Related MCP Connectors
US/Canada boundaries: cities, ZIPs, counties, districts, precincts. Lookups, crosswalks, GeoJSON.
US & Canada election maps: precincts, ZIP codes, 2026 districts, ridings. GeoJSON + point lookup.
Place search, routes and spatial reasoning for AI agents, with real-world addresses.
Location infrastructure for AI to search and reason over places.
Related MCP Servers
AlicenseAqualityBmaintenanceLocation & routing intelligence for AI agents — geocoding, truck routing, traffic, weather, and place search.1933 npm1MIT- AlicenseAqualityDmaintenanceGeospatial API tools for AI agents — geocoding, reverse geocoding, routing, isochrone, distance matrix, static maps, H3 hexagons, elevation, GPS map-matching, point-in-polygon, address normalisation, timezone lookup, and batch geocoding. Built on OpenStreetMap infrastructure. Cost-effective alternative to Google Maps API.18MIT
- AlicenseNot gradedqualityCmaintenanceEnables forward and reverse geocoding of US addresses, returning coordinates and the full Census geography stack with GEOIDs, including batch geocoding of up to 100 addresses.67 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to look up US and Canadian parcel records either by full address string or by lat/lon point, returning parcel number, owner, mailing address, land use, zoning, acreage, and boundary geometry. It can be run as a local stdio server or reached through a hosted gateway endpoint.80 npmMIT