Streetmap Port

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

Geocode, reverse geocode and find nearby places with the public OpenStreetMap APIs.

發布方自己的服務:Port

概覽

AI 產生的概覽

本機 stdio MCP 伺服器,為助理提供 OpenStreetMap 地理編碼、地點搜尋、周邊查詢與距離計算工具。

可以做什麼
  • 將地址或地名轉換為座標,或將座標反查為最近地址
  • 依名稱搜尋地點,並查詢單一 OSM 節點、路徑或關聯的詳細資料
  • 尋找某座標附近指定類別的地點
  • 在本機計算兩組座標之間的大圓距離,不發出任何 API 呼叫
適用情境
當助理需要把地址解析為座標、查詢 OpenStreetMap 地點、了解某位置周邊有什麼,或測量兩點間距離,而不想自行建置地理編碼整合時適用。
執行需求
透過 npx(需 Node.js)或 Docker 以本機程序執行。未宣告需要帳號、API 金鑰或環境變數。除本機距離計算外,其餘工具都需要連線至公開的 Nominatim 與 Overpass API。
安裝前請注意
查詢會送往公開的 OpenStreetMap Nominatim 與 Overpass 服務,搜尋的地址與座標會離開本機。這些公開 API 有使用政策與速率限制,高頻或自動化使用可能被限流或封鎖。結果依賴 OpenStreetMap 資料(ODbL),可能不完整或不準確。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

streetmap-port

OpenStreetMap geography as a CLI and a stdio MCP server in one bin: geocode a name to coordinates, reverse geocode coordinates to an address, search places, look up an OSM object by type and id, find places of a category near a point, and compute great-circle distances locally.

Geocoding, reverse geocoding and lookup use the public Nominatim API (with the descriptive User-Agent its usage policy requires); nearby search uses the public Overpass API. All requests go through an injectable fetch function, coordinates are validated before any request is built, and API error payloads are surfaced as errors — never replaced with invented places. distance_between is a pure local haversine computation and makes no API call.

Install

bash
npx -y @reneturcios/streetmap-port mcp

CLI

bash
streetmap-port mcpstreetmap-port geocode <query...>streetmap-port reverse <lat> <lon>streetmap-port search <query...>streetmap-port nearby <lat> <lon> [category] [radius-m]streetmap-port distance <lat1> <lon1> <lat2> <lon2>streetmap-port --version

Exit codes: 0 success, 1 API/validation error, 2 usage error.

MCP tools

ToolPurpose
geocode_addressGeocode a free-form address or place name to coordinates via the OSM Nominatim API
reverse_geocodeReverse geocode coordinates to the nearest address via the OSM Nominatim API
search_placesSearch for places by name via the OSM Nominatim API
find_nearbyFind places of a category near coordinates via the OSM Overpass API
get_place_detailsGet details of one OSM object (node, way or relation) via the Nominatim lookup API
distance_betweenCompute the great-circle distance in kilometres between two coordinate pairs (local, no API call)

MCP client config:

json
{  "mcpServers": {    "streetmap-port": {      "command": "npx",      "args": ["-y", "@reneturcios/streetmap-port", "mcp"]    }  }}

Docker

bash
docker run -i ghcr.io/cloudcorprecords/streetmap-port          # MCP serverdocker run --rm ghcr.io/cloudcorprecords/streetmap-port --version

Development

bash
npm installnpm run buildnpm test

Data © OpenStreetMap contributors (ODbL). MIT license for the code.

來源:README.md,提交 008e6f6

工具

6

geocode_address

Geocode a free-form address or place name to coordinates via the OSM Nominatim API

輸入參數limitquery必填

reverse_geocode

Reverse geocode coordinates to the nearest address via the OSM Nominatim API

輸入參數latitude必填longitude必填

search_places

Search for places by name via the OSM Nominatim API

輸入參數limitquery必填

find_nearby

Find places of a category near coordinates via the OSM Overpass API

輸入參數limitradiuscategorylatitude必填longitude必填

get_place_details

Get details of one OSM object (node, way or relation) via the Nominatim lookup API

輸入參數osm_id必填osm_type必填

distance_between

Compute the great-circle distance in kilometres between two coordinate pairs (local, no API call)

輸入參數to_latitude必填to_longitude必填from_latitude必填from_longitude必填

版本歷史

1
  1. v0.1.0最新Oct 31, 2026

評分

已滿足適用檢查項的 90%

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

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

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

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Port 整合