US Places, Then

io.github.iandersov0.2.0更新于 Oct 6, 2026

US places then: county on a date, PLSS land, GNIS names, old topo maps, post offices.

概览

AI 生成的概览

回答美国历史地名问题:某日期某地属于哪个县、土地描述的位置、已消失的 GNIS 地名、邮局以及旧地形图。

功能
提供十二个只读工具处理美国历史地理。county_at 和 county_history 给出某日期某点所属的县,并附法令与变更链条。parse_legal_description、plss_locate 和 plss_from_point 在公共土地测量描述与坐标之间互转。find_place_name 检索 GNIS 及 2021 年 8 月的冻结档案,post_offices 覆盖 1639 至 2000 年的美国邮局,historical_topo_maps 列出覆盖某点的 USGS 地图,find_land_entry_file 和 glo_links 指向国家档案馆与 BLM 的记录。
适用场景
适合家谱、土地产权与历史研究,尤其是地名、县界或地图随时间变化的情形。可帮助判断某日期某地的记录应由哪个机构或档案馆保存。
运行要求
以 stdio 在本地运行,需要 Python 3.11 或更高版本及 uv,例如用 uvx us-places-mcp 启动。无需 API 密钥或账号。在线工具需要访问所配置的 USGS、BLM、OpenHistoricalMap、National Map 和 Harvard Dataverse 主机;有五个工具可离线使用。可选环境变量用于设置缓存目录、联系信息、服务地址和超时。
安装前请注意
只读:不写入任何内容,除本地缓存外不保存数据。首次使用会下载数据集(邮局数据约 31 MB,GNIS 档案每州最多 17 MB)到 US_PLACES_CACHE_DIR。US_PLACES_CONTACT 为可选,会加入 User-Agent。结果是历史参考数据而非权威记录;边界变更附近的日期和未地理编码的邮局需人工核对。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

us-places-mcp

[CI] [PyPI]

An MCP server for where things were, then. Records follow the jurisdiction that held a place on the date of the event, not today's: a 1795 deed for a farm now in Greene County, Pennsylvania, is in Washington County's books, because Greene was carved out the next year. This server answers the questions that decide which office to write to:

  • Which county held this spot on that date? From the Newberry Library's Atlas of Historical County Boundaries, which records every creation and boundary change of every US county from 1629 to 2000, dated to the day, with the act behind it. OpenHistoricalMap imported the atlas and serves it free (CC0); this server asks it.
  • Where is this land description on the ground? "E½NE Sec. 18, T84N R39W, 5th P.M." becomes a centroid, a bounding box and BLM's ids, from the Bureau of Land Management's national Public Land Survey data. A map pin becomes a land description the other way.
  • Where is the case file behind this land patent? The patent is the end of a process. The file at the National Archives holds the application and, for a homestead, years of residence, witnesses and citizenship papers. The server says which file and which series, and builds the search.
  • Where was Mount Hope Cemetery, or Hines Corners? USGS's Geographic Names Information System (GNIS) names and places every feature it knows, including vanished towns marked "(historical)". In 2021 it dropped cemeteries, churches, schools, post offices and other built features; the server also searches the archive USGS kept from August 2021, and says which answered.
  • Which post offices were there, and when? Richard Helbock's list of every US post office from 1639 to 2000, geocoded by Cameron Blevins: 166,140 offices with the years they opened and closed. A post office is often the only trace of a hamlet.
  • Which old maps show the spot? Every USGS topographic map since 1884 that covers a point, oldest first, with links to the scans.

Nothing here writes anywhere, and nothing here keeps a family tree. It sits well beside nara-catalog-mcp, which can run the archive searches this server builds, familysearch-mcp and snac-archives-mcp.

This is an independent project. It is not affiliated with, endorsed by, or supported by the Newberry Library, OpenHistoricalMap, the Bureau of Land Management, the US Geological Survey, Harvard Dataverse, the dataset's authors or the National Archives.

Tools

The server publishes twelve tools, all read-only and annotated so for the client. Five make no network call at all.

Jurisdiction at a date

ToolPurpose
county_atThe county (or counties) that held a point on a date: a day, a month or a year. Returns the holder, its dates, the event and statute that made it, the whole chain of counties for that spot, changes within a year (check those by hand), and whether two governments contested it.
county_historyEvery version of one county: created when, from what, and each later change, with statutes.

Federal land

ToolPurpose
parse_legal_descriptionRead a land description, however it is written (E½NE, E2NE, E 1/2 NE 1/4, "the east half of the northeast quarter", GLO's padded 0840N, lots, several tracts), into its parts, with quarter-quarters and warnings for anything guessed. Offline.
plss_locatePlace a description on the map: centroid, bounding box, acreage and BLM's ids, to the township, section, quarter-quarter or lot.
plss_from_pointName the survey tract at a point: township, range, section and quarter-quarter.
public_land_stateWas this state federal land? If not, who granted first title and where those records are; if so, its meridians and special cases. Offline.

Vanished places and old maps

ToolPurpose
find_place_nameA named place in GNIS: its point, class, state and county. Searches the live GNIS and, given a state, the archive of August 2021 that keeps the cemeteries, churches, schools, post offices and buildings GNIS dropped that year; says which answered.
post_officesWhich US post offices existed, 1639-2000: by name, by state and today's county, or around a point, and in a given year. Each with its years, whether it ran continuously, and its point if it was geocoded.
historical_topo_mapsEvery USGS topographic map covering a point, oldest first: date, scale and quadrangle, with GeoPDF, GeoTIFF and JPEG preview links, and a TopoView link for JPEG and KMZ.

From patent to case file

ToolPurpose
find_land_entry_fileFrom a patent's Authority: the kind of entry, what its file holds, which National Archives series has it, ready-made arguments for nara-catalog-mcp's search_records_advanced, and how to order the file if it is not online. Offline.
glo_linksA link to a search, or to one record, on BLM's General Land Office Records site, for you to open. Offline.
cache_statusThis session's live calls and cache hits, and the datasets downloaded so far. Offline.

Setup

You need Python 3.11 or later and uv. There is no key to request.

bash
uvx us-places-mcp

or from a clone:

bash
git clone https://github.com/ianderso/us-places-mcpcd us-places-mcpuv syncuv run us-places-mcp   # stdio server, usually launched by the client

Claude Desktop

json
{  "mcpServers": {    "places": {      "command": "uvx",      "args": ["us-places-mcp"]    }  }}

If the server fails to start because uvx cannot be found, give the full path that which uvx prints as the command.

Claude Code

bash
claude mcp add places -- uvx us-places-mcp

Configuration

Nothing is required. A .env file in the directory the server starts in supplies anything the environment does not; only that directory is read.

VariableMeaning
US_PLACES_OVERPASS_URLOpenHistoricalMap's Overpass endpoint. Default https://overpass-api.openhistoricalmap.org/api/interpreter.
US_PLACES_PLSS_URLBLM's national PLSS map service. Default https://gis.blm.gov/arcgis/rest/services/Cadastral/BLM_Natl_PLSS_CadNSDI/MapServer.
US_PLACES_GNIS_URLUSGS's GNIS map service. Default https://carto.nationalmap.gov/arcgis/rest/services/geonames/MapServer.
US_PLACES_GNIS_ARCHIVE_URLThe folder of GNIS state files from August 2021. Default https://prd-tnm.s3.amazonaws.com/StagedProducts/GeographicNames/Archive/MainDomestic.
US_PLACES_TNM_URLThe National Map's TNM Access products API. Default https://tnmaccess.nationalmap.gov/api/v1/products.
US_PLACES_DATAVERSE_URLHarvard Dataverse, which holds the post-office dataset. Default https://dataverse.harvard.edu.
US_PLACES_CACHE_DIRResponse cache directory; downloaded datasets go in its data folder. Default ~/.cache/us-places-mcp.
US_PLACES_TIMEOUTHTTP timeout in seconds. Default 60.
US_PLACES_CONTACTAn email address or URL added to the User-Agent, so the services can reach you. Optional, and courteous.

Every URL must be https. Their hosts, and Dataverse's file store (dvn-cloud-iqss.s3.amazonaws.com, where it redirects downloads), are the only ones the server will contact.

Being a good guest

OpenHistoricalMap's Overpass server runs on donated capacity and publishes no rate limit. The server sends one request at a time to each service, two seconds apart for OpenHistoricalMap, half a second for BLM and a second for USGS and Dataverse, joins identical calls in flight, and caches answers on disk: county answers for 90 days, GNIS and map answers for 30, survey answers until you pass refresh=true. A 429 or a 5xx is retried three times with back-off, then reported as rate_limited or upstream_error, which is never the same as "nothing here".

Downloaded data

Two sources are files rather than services, so the server downloads them once and reads them locally. Nothing is downloaded until a tool needs it, and the result that triggered a download says so: what, how big, how it was checked and where it was saved.

DataWhenSizeChecked against
US Post Offices (Blevins and Helbock, doi:10.7910/DVN/NUKCNA, CC0)The first post_offices call31 MB download, 21 MB on diskThe MD5 Dataverse publishes for the file
GNIS state file of 25 August 2021 (USGS, public domain)The first find_place_name search in that stateUp to 17 MB per state (Pennsylvania 9.8 MB); only the dropped classes are kept, about 6 MB for PennsylvaniaThe ETag USGS's bucket reports (an MD5, or the MD5 of the upload's parts)

Both are stored as SQLite files in data under the cache directory (~/.cache/us-places-mcp/data by default), never in the repository. A file that fails its check is deleted and the tool reports download_failed. cache_status lists what is there; delete the folder to start again.

How to read what comes back

  • The county then, not now. A record was made by the county that held the place on the day. A new county does not take its parent's earlier records, so a deed from before Greene County existed is in Washington County's books still.
  • Check dates near a change. boundary_change_within_a_year lists changes close to your date. Laws took effect on stated days, but offices took time to organise; records from those months can be in either county.
  • "Attached to". Before an area was organised as a county it was often attached to a neighbour for administration, and that neighbour kept its records. county_at reads this from the atlas's event text.
  • Contested ground. Pennsylvania and Virginia both governed the Waynesburg area in the 1770s, and similar disputes ran elsewhere. "status": "contested" means look in both governments' records.
  • The atlas files counties under today's state. Monongalia County was created by Virginia but is filed under West Virginia; the event text says which government acted.
  • The atlas ends in 2000 and holds counties only: not towns, townships or parishes as church units.
  • A located tract is not a house. A section's centre is up to half a mile from any point in it, and BLM's data is a modern compilation that can differ from the original plat near correction lines and water. Lotted sections (along a township's north and west edges, or by water) have lots where a regular section has quarter-quarters.
  • A parse is a reading of a reading. parse_legal_description keeps the original text and says what it guessed: a section number with no "Sec.", a meridian taken from the state.
  • A patent proves a conveyance, on its signature date. The entry was years earlier: homesteaders lived on the land five years before final proof, and mid-century backlogs put years between purchase and signature. The Homestead Act took effect in 1863, so an "1856 homestead" in a family story is a cash, credit, preemption or warrant entry.
  • The patentee may never have seen the land. Military bounty-land warrants were bought and sold; the veteran is in the warrant file, the patentee may be a speculator.
  • No federal patents in state-land states. The thirteen colonies, Maine, Vermont, Kentucky, Tennessee, West Virginia, Texas and Hawaii granted their own land. A nil search there means nothing; public_land_state says where first title was recorded.
  • Old GLO links are dead. BLM rebuilt glorecords.blm.gov in July 2026, and older record links now land on the home page. Cite a patent by its accession number, document number, state and signature date.
  • GNIS names are today's official names, not the spellings in old records. GNIS writes out Mount, Fort and Saint and drops possessive apostrophes (Pikes Peak); the server does the same to what you type. A place that is gone is often listed as "Name (historical)". A GNIS county is today's county: pass the point to county_at.
  • The 2021 archive is frozen. Cemeteries, churches, schools, post offices and buildings are as GNIS held them on 25 August 2021, and USGS no longer maintains them. topo_quad names the 1:24,000 map each was read from.
  • A map's date is the date of its survey or edit, not of the ground on the day you care about, and a reprint keeps the old date. Several scans often share a quadrangle and a date: later printings or other copies of one edition. Compare them. At 1:62,500 and larger, maps show roads, churches, schools and cemeteries, and often houses; a house symbol names no one.
  • A post office's years are Helbock's. A renaming, or a change to a branch, ends one record and may start another, so "discontinued" can mean renamed. An office closed for under ten years stays one record, marked continuous: false. Moves within a town are not recorded.
  • A post office's county is today's. Helbock listed the county in which the site lies now. For the county that kept the records then, pass the office's point and year to county_at.
  • A third of the post offices have no point. Blevins placed an office by matching its name to a GNIS feature; offices that matched nothing have no coordinates, so a search around a point misses them. Search the county too. gnis_match shows what each was matched to and how closely.
  • Postmasters' names are in the Records of Appointment of Postmasters at the National Archives (microfilm M1131 for 1789-1832, M841 for 1832-1971).

Deliberately not here

  • Searching GLO itself. The rebuilt site has no public API. The server builds links for you to open; it does not fetch the site.
  • Townships and church parishes as jurisdictions. The atlas is counties only; GNIS names places but says nothing of who governed them.
  • Writing anywhere.

Security

  • A fixed set of hosts. A request hook refuses any request not for a configured service or Dataverse's file store, so a value a model passes in cannot make the server fetch another site. A download follows a redirect only to one of those hosts.
  • Downloads are checked before they are kept, against the checksum the publisher states, and are capped in size.
  • Inputs are validated before they reach a query: coordinates as finite numbers in range, states and GNIS classes against tables, survey numbers as digits, and a county name escaped character by character into the Overpass query. A place name reaches GNIS only as find's search text, never inside a where clause, and local searches use bound parameters.
  • Event, statute and place-name text is data. It comes from the sources and reaches the model verbatim; the server's instructions tell the model to treat it as data, never as instructions.

To report a vulnerability, see SECURITY.md.

Development

bash
uv sync --extra devuv run pytest                      # mocked with respx; never touches a serviceuv run ruff check .uv run ruff format --check .uv run python -m tests.live_check  # a few paced calls to every live service

See CONTRIBUTING.md, docs/API-NOTES.md for what was observed of each service and when, and docs/DESIGN.md for why the server is shaped this way.

Credits

County boundaries: the Newberry Library's Atlas of Historical County Boundaries (John H. Long, editor), as imported into OpenHistoricalMap and released under CC0. Survey data: the Bureau of Land Management's National PLSS (CadNSDI), a US government work. Place names: the US Geological Survey's Geographic Names Information System, a US government work. Maps: USGS's Historical Topographic Map Collection, through The National Map. Post offices: Cameron Blevins and Richard W. Helbock, US Post Offices, Harvard Dataverse, doi:10.7910/DVN/NUKCNA, released under CC0.

License

MIT.

来源:README.md,提交 2768438

工具

0
工具元数据尚未被收录。

版本历史

1
  1. v0.2.0最新Oct 6, 2026