GridPin offline geocoder

io.github.gridpin由 GitHub 帳號 gridpin 發布v0.5.0更新於 Nov 7, 2026

Offline geocoding and reverse geocoding from one local file per country. No API key, no rate limit.

已驗證STDIO僅桌面位置與生活檔案與儲存

概覽

AI 產生的概覽

離線地理編碼與逆地理編碼 MCP 伺服器,讀取本機依國家分檔的資料檔,不需 API 金鑰,也沒有速率限制。

可以做什麼
  • 列出涵蓋的國家、資料檔大小以及哪些已下載
  • 一次性下載某個國家的資料檔,並以 SHA-256 驗證(唯一的連網步驟)
  • 將地址文字地理編碼為附經緯度、精度與信賴度的排序候選結果
  • 將座標逆地理編碼為最近的已索引地址,並附上以公尺計的距離
  • 每次呼叫可批次地理編碼同一國家最多 1000 個地址,依輸入順序回傳
適用情境
適合助理需要把地址轉成座標或把座標轉成地址、又不希望把查詢送給第三方地理編碼 API 的情境,且所需國家在涵蓋範圍內(v0.7.0 版本包含美國、加拿大、德國、法國、義大利、西班牙、墨西哥、荷蘭、巴西、塞爾維亞)。
執行需求
以 stdio 在本機執行,透過 uvx 從 PyPI 套件 gridpin-mcp 啟動,因此需要 Python/uv 執行環境。首次使用某國家需連網下載其資料檔(32-677 MB),存放於 GRIDPIN_HOME,否則為 XDG_CACHE_HOME/gridpin,再否則為 ~/.cache/gridpin;GRIDPIN_HOME 必須設在伺服器本身的環境中,只在 shell 匯出無效。不需帳號或 API 金鑰。
安裝前請注意
下載資料檔會在本機磁碟寫入大檔案(最大 677 MB),這也是唯一的連網行為;較大的檔案可能超過用戶端預設的工具逾時。街道或城市精度的結果僅為近似值,不應視為精確。不要求任何憑證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 GridPin offline geocoder,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

gridpin-mcp — offline geocoding for AI agents

An MCP server that lets an agent geocode addresses with GridPin: one memory-mapped file per country, read on your machine. No API key, no rate limit, and no query leaves the machine. The only network step is downloading a country sheet once, verified against the signed GridPin release.

Countries (release v0.8.0): United States, Canada, Germany, France, Italy, Spain, Australia, Mexico, Netherlands, Brazil, Serbia.

Add it to an agent

Claude Code:

console
$ claude mcp add gridpin -- uvx gridpin-mcp

Any client that reads an mcpServers config (Claude Desktop, Cursor, ...):

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

To keep sheets in another directory, pass GRIDPIN_HOME in the server's own environment:

json
{ "mcpServers": { "gridpin": { "command": "uvx", "args": ["gridpin-mcp"],                               "env": { "GRIDPIN_HOME": "/path/to/sheets" } } } }

Exporting it in your shell is not enough. Some MCP clients start the server with only a few environment variables (clients built on the MCP Python SDK pass HOME, LOGNAME, PATH, SHELL, TERM and USER on macOS and Linux), so GRIDPIN_HOME and XDG_CACHE_HOME from your shell never reach it and sheets go to ~/.cache/gridpin.

download_sheet fetches a whole sheet in one tool call, and the larger sheets can take longer than a client allows for one call (mcp-haystack's MCPToolset, for example, stops after 30 s by default). Raise the client's tool timeout, or download the sheet beforehand in a terminal, with the same GRIDPIN_HOME as the server; the tool then returns at once:

console
$ uvx --from gridpin-mcp gridpin-fetch fr

Step-by-step setup for agents (requirements, settings, verification): llms-install.md.

If GridPin is useful to you, a star on GitHub helps other people find it.

Tools

ToolWhat it does
list_countriescovered countries, sheet sizes, which are downloaded
download_sheetfetch one country sheet (32-677 MB) once, verify its SHA-256; the only tool that uses the network
geocodeaddress text -> ranked candidates with lat, lon, precision, confidence
reversecoordinates -> nearest indexed addresses with distance_m
batchup to 1000 addresses of one country per call, in input order

Results are the same as the GridPin CLI, Python and DuckDB return. Treat street or city precision as approximate.

Download a sheet without MCP

console
$ pip install gridpin-mcp$ gridpin-fetch fr          # prints the path, e.g. ~/.cache/gridpin/v0.5.0/france.bin
python
import gridpinfrom gridpin_mcp import sheets
path = sheets.download("fr")   # no-op when already downloadedgridpin.Geocoder(str(path)).geocode("1 rue de la Paix, Paris", 1)

Sheets go to $GRIDPIN_HOME, else $XDG_CACHE_HOME/gridpin, else ~/.cache/gridpin. Sizes and SHA-256 of every sheet are pinned in the package from the signed release attestation; a download that does not match is discarded.

License

Apache-2.0. Sheet data: see attributions.

來源:mcp/README.md,提交 831d941

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

4
  1. v0.5.0最新Nov 7, 2026
  2. v0.4.0Nov 3, 2026
  3. v0.3.0Oct 31, 2026
  4. v0.1.0Oct 15, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分