Geowire

io.github.geowire由 GitHub 帳號 geowire 發布v0.6.1更新於 Oct 24, 2026

Place search, directions, isochrones & area analysis across 10 map providers. No API key to start.

已驗證STDIO僅桌面位置與生活資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理在多家地圖資料來源上進行地點搜尋、地理編碼、路線規劃、等時圈與區域分析,不需任何 API 金鑰即可使用。

可以做什麼
  • 依名稱、座標或區域搜尋地點,並依資料來源參照取得單一地點詳細資料
  • 將地址解析為座標,或將座標反查為最近地址
  • 取得途經點之間的路線、N×M 距離矩陣與行車時間等時圈多邊形
  • 分析區域內的類別密度、競爭狀況、評分以及美國人口普查人口統計
  • 列出目前啟用的資料來源及其能力與狀態
適用情境
適合助理需要真實世界位置資訊的情境:尋找某點附近的地點、依開車時間為候選地點排序,或評估某個商業街區。由於 OpenStreetMap 搜尋與 OSRM 路線不需金鑰,導入門檻很低。
執行需求
透過 npx 從 npm 套件 @geowirehq/mcp 在本機執行(需要 Node.js)。OpenStreetMap 搜尋與 OSRM 路線不需金鑰。選用金鑰可啟用更多資料:GOOGLE_MAPS_API_KEY、YELP_API_KEY、FOURSQUARE_API_KEY 以及免費的 CENSUS_API_KEY。選用的 GEOWIRE_CONFIG 與 GEOWIRE_INTERNAL_CSV 分別指向設定檔與自有地點 CSV。呼叫資料來源需要網路存取。
安裝前請注意
選用的資料來源金鑰從環境變數讀取,使用 Google、Yelp 或 Foursquare 可能產生費用;設定檔可設定單次請求的費用預算。查詢內容、座標與地址會傳送給第三方地圖資料來源,伺服器會依其條款執行快取與署名要求。內部 CSV 資料來源會登錄自有地點資料,並回傳給助理。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

GeoWire

Give any AI agent real-world location intelligence in 5 minutes — no API key required.

One interface for place search, directions, and area/market analysis across every map provider.

[geowire MCP server — tools/list and a geocode_address call over stdio]

GeoWire is an open-source geo intelligence gateway that sits between AI agents and map/place data providers (OpenStreetMap, Google, Yelp, Foursquare, US Census, your own data) and exposes them through a single MCP server, REST API, and SDK. One interface for place search, geocoding, directions & distance matrices, and commercial-area analysis (density, ratings, demographics) — with provider fallback, multi-provider merge + dedup, cost budgets, and a policy engine that enforces each provider's caching/attribution terms.

Published on npm — MCP · REST · CLI · SDK all functional. 10 providers, 8 operations.

Honest by design: OpenStreetMap (the zero-key default) is a great geocoder — strong on place names, addresses, and landmarks — but thin on category words ("coffee", "pharmacy"), ratings, and hours. For US/Western commercial data, add a Google, Yelp, or Foursquare key (BYOK) — GeoWire merges them and tells you which source every field came from. Directions run key-free on OpenStreetMap routing (OSRM); US demographics come from the Census (free key).

Contents: Why · Quickstart · MCP tools · REST · Anatomy of a response · Config · Providers · Recipes & examples · Roadmap · Architecture

Why GeoWire?

Direct integrationSingle-provider MCPGeoWire
Unified place schema❌ per-provider code❌✅
Provider fallback on failure❌❌✅
Multi-provider merge + dedup❌❌✅
Cost budgets & routing❌❌✅
Works without any API key❌depends✅ (OSM by default)
Self-hosted—depends✅
Your own place data as a provider❌❌✅
Transparent provenance (which source, what cost)❌❌✅ (every response)

Not a Google replacement — it uses Google. The thing no single provider can do: merge your own store data + Google + OSM into one deduped record, with per-field provenance (your name is authoritative, Google adds ratings, OSM adds coordinates). Real run below:

[GeoWire merging a private store DB, Google, and OpenStreetMap into one record with per-field provenance]

More than search — location intelligence for agents

Once your agent can find places, it can reason about areas. One analyze_area call turns a point + radius into a commercial-district read — category density, competition, the rating landscape, and (in the US) demographics:

jsonc
// "Is this a good block for a new café?" — SF, 1 km radius{ "center": { "latitude": 37.7749, "longitude": -122.4194 }, "radiusMeters": 1000,  "categories": ["cafe", "restaurant", "bar"] }// → per-category counts + density/km², avg rating (Google/Yelp), price mix,//   an activity proxy (Yelp review volume), and Census demographics for the tract.

Same gateway also does directions & distance matrices and travel-time isochrones — key-free via OSRM — so an agent can rank candidates by drive time and answer catchment questions like "what's within a 15-minute drive of this address?" See Recipes.

Quickstart

1. MCP (Claude Desktop / Cursor) — 30 seconds

Add this to your MCP client config (e.g. Claude Desktop claude_desktop_config.json):

json
{  "mcpServers": {    "geowire": { "command": "npx", "args": ["-y", "@geowirehq/mcp"] }  }}

Then ask: "Where is the Golden Gate Bridge?", "Find coffee within 2 km of 37.7749, -122.4194 (San Francisco).", or "How do I drive from downtown SF to Fisherman's Wharf?" Works with zero API keys — OpenStreetMap + OSRM routing are the defaults. Add "env": { "GOOGLE_MAPS_API_KEY": "..." } (or YELP_API_KEY) for ratings, reviews, and hours, and "CENSUS_API_KEY" for area demographics. See more MCP client configs.

2. CLI — one-shot search & server

[geowire search in the terminal, with source attribution and response time]

bash
npx @geowirehq/cli search "Golden Gate Bridge"    # terminal search with a results tablenpx @geowirehq/cli search "coffee" --near 37.7749,-122.4194 --radius 2000   # near a coordinatenpx @geowirehq/cli reverse 37.8199,-122.4783      # coordinate → nearest placenpx @geowirehq/cli route 37.7749,-122.4194 37.8083,-122.4156   # driving directions (no key, OSRM)npx @geowirehq/cli get google:ChIJ...             # one place by reference (getPlace-capable provider)npx @geowirehq/cli                                # start the REST + MCP server (zero-config)npx @geowirehq/cli init                           # interactive setup wizard (.env + config)npx @geowirehq/cli test                           # check provider connections

Add --json to any command for the full response (results + provenance meta).

3. Docker — self-hosted server

bash
docker run -p 4980:4980 geowire/geowire# then:curl -X POST http://localhost:4980/v1/places/search \  -H 'content-type: application/json' \  -d '{"query":"coffee","near":{"latitude":37.7749,"longitude":-122.4194},"radiusMeters":2000}'

Or with docker compose up (see docker-compose.yml). API docs at /docs.

4. SDK (embedded)

ts
import { createGeoWire } from "@geowirehq/core";import { createNominatimProvider } from "@geowirehq/provider-nominatim";
const geo = createGeoWire({ providers: [createNominatimProvider()] });const { results, meta } = await geo.searchPlaces({  query: "coffee",  near: { latitude: 37.7749, longitude: -122.4194 },  radiusMeters: 2000,});

Full embedded-SDK guide: examples/typescript-sdk.md.

MCP tools

ToolDescription
search_placesNatural-language + coordinate/region place search
get_placeDetails by provider:providerPlaceId reference
geocode_addressAddress → coordinates (+ normalized address)
reverse_geocodeCoordinates → nearest address
get_directionsRoute between waypoints (distance, time, legs) — no key (OSRM)
distance_matrixN×M travel distances/times — rank candidates by drive time — no key
analyze_areaCommercial-area analysis: category density, competition, rating landscape, demographics
get_isochroneTravel-time reachability polygon ("what's within a 15-min drive") — no key (OSRM)
get_demographicsPopulation / age / income for a coordinate's area (US Census, free key)
list_geo_providersActive providers, capabilities, status (agent self-awareness)

Every response includes both a human-readable summary and structuredContent (schema-valid JSON).

REST endpoints

MethodPath
POST/v1/places/searchsearch
GET/v1/places/{ref}place details (provider:id)
GET/v1/geocode?address=geocode
GET/v1/reverse-geocode?lat=&lon=reverse geocode
POST/v1/directionsdirections between waypoints (no key)
POST/v1/distance-matrixN×M travel distance/time matrix (no key)
POST/v1/analyze-areacommercial-area analysis (density, competition, ratings, demographics)
POST/v1/isochronetravel-time reachability polygon (no key)
GET/v1/demographics?lat=&lon=area demographics (US Census, free key)
GET/v1/providerslist providers
GET/v1/healthhealth check
GET/metricsPrometheus metrics
GET/docsSwagger UI (OpenAPI 3.1)
POST/mcpMCP over Streamable HTTP

Optional Bearer auth: set GEOWIRE_API_KEYS=key1,key2.

Anatomy of a response

No black box. Every response carries a meta block: which providers were used / skipped / failed (and why), dedup counts, cache status, estimated cost, and per-field sourcing — so you always know where each value came from.

jsonc
{  "results": [{    "id": "gwp_CvWvRZrFtegkJPxP9CW0",    "name": "Golden Gate Bridge",    "location": { "latitude": 37.8199286, "longitude": -122.4782551 },    "sources": [{      "provider": "nominatim",      "providerPlaceId": "way/27385590",      "fields": ["name", "location", "categories", "address"]   // ← what this source contributed    }],    "attributions": ["© OpenStreetMap contributors"]  }],  "meta": {    "providersUsed":   [{ "provider": "nominatim", "resultCount": 1, "latencyMs": 2449 }],    "providersSkipped": [],   // e.g. { provider: "google", reason: "MISSING_CREDENTIALS" | "QUOTA_EXCEEDED" }    "providersFailed":  [],   // e.g. { provider: "google", reason: "TIMEOUT" }    "strategy": "first-success",    "cache": { "hit": false }    // merging adds:  "dedup": { "before": 3, "after": 1 }    // paid provider: "estimatedCostUSD": 0.032  }}

After a merge, sources[].fields shows (say) the phone came from Google while the coordinates came from OSM. Walkthrough: docs/recipes.md.

Configuration (optional — everything works without it)

geowire.config.yaml:

yaml
providers:  nominatim: { enabled: true }                       # default ON, no key (search/geocode)  osrm:      { enabled: true }                        # default ON, no key (directions)  google:    { enabled: true, apiKey: ${GOOGLE_MAPS_API_KEY} }  yelp:      { enabled: true }                        # env YELP_API_KEY (US/Western business & reviews)  census:    { enabled: true }                        # env CENSUS_API_KEY (US demographics, free)  kakao:     { enabled: true }                        # env KAKAO_REST_API_KEY (KR)  internal:  { enabled: true, source: ./my-places.csv, priority: 100 }routing:  defaultStrategy: merge          # first-success | merge | cost-aware | weighted | fastest  providerWeights:                # for `weighted`: order by priority·cost·coverage    priority: 0.5    cost: 0.3    coverage: 0.2budget:  perRequestMaxUSD: 0.10          # over-budget paid providers are skipped, free ones used

Keys come from the environment (${VAR}), never committed in plaintext.

Providers

ProviderKey?Capabilities
@geowirehq/provider-nominatim (OpenStreetMap)nonesearch, geocode, reverseGeocode
@geowirehq/provider-osrm (OpenStreetMap routing)noneroute, distanceMatrix
@geowirehq/provider-google (Maps Platform)BYOKsearch, geocode, reverseGeocode, getPlace, route, distanceMatrix
@geowirehq/provider-kakao (카카오맵, KR)BYOK KAKAO_REST_API_KEYsearch, geocode, reverseGeocode
@geowirehq/provider-naver (네이버 지역검색, KR)BYOK NAVER_CLIENT_ID+NAVER_CLIENT_SECRETsearch, geocode
@geowirehq/provider-baidu (百度地图, CN)BYOK BAIDU_MAP_AKsearch, geocode, reverseGeocode
@geowirehq/provider-foursquare (global POI)BYOK FOURSQUARE_API_KEYsearch, getPlace
@geowirehq/provider-yelp (US/Western business, ratings & reviews)BYOK YELP_API_KEYsearch, getPlace
@geowirehq/provider-census (US demographics)BYOK CENSUS_API_KEY (free)demographics
@geowirehq/provider-internal (your CSV)nonesearch

Regional providers make Korea (Kakao/Naver) and China (Baidu) coverage first-class where OSM is thin and Google has gaps — Baidu returns BD-09 coordinates, which GeoWire converts to WGS84 automatically. Merge them all + your own store data into one deduped record.

Provider roles — each provider does what it's best at

Providers aren't interchangeable; they're complementary. When merge combines duplicates, GeoWire doesn't just pick the highest-priority provider's whole record — it sources each field from the provider that's authoritative for it. Every provider declares its strengths in its manifest (fieldAuthority), so one merged place can carry OSM's coordinates, Google's reviews, and Kakao's local name at once:

ProviderAuthoritative forRole
Nominatim / OSMlocation, addressbase map geometry & addresses
Googlebusiness (rating, hours, reviews), contactrich business data
Foursquarebusiness (photos, price), categoriesglobal POI specialist
Kakao / Naver / Baiduname, addresscountry-specific local names
Internal (your CSV)name, contact, businessyour own data is the source of truth

sources[].fields in every response records which provider contributed which field. This is the "Stripe for Maps" idea in code: you get one clean place record, and each part of it comes from whoever knows it best. (Reviews/photos are provider originals — the policy engine enforces each provider's storage terms; Google originals aren't cached.)

Want another provider? See CONTRIBUTING.md — "Write a provider in 30 minutes".

Recipes & examples

Roadmap

v0.1 is deliberately "It works" scope. Honest about what's not in it yet:

AreaShippedPlanned
Operationssearch, geocode, reverse-geocode, get-place, directions, distance-matrix, area analysis, isochronesautocomplete (typed, not wired)
Strategiesfirst-success, merge, cost-aware, weighted, fastest— (all 5 shipped)
Field sourcingrole-based merge (each provider's authoritative fields)per-field config overrides
Routing providersOSRM (no key), Google Routes (BYOK)Mapbox, Valhalla, HERE
Routingexplicit country, free-first cost orderingcountry inference from coordinates
Analysiscategory density / competition / rating landscape, US demographics, activity proxy, isochrones (travel-time catchment)real foot-traffic (paid data), exact isochrones (ORS/Valhalla), Korea demographics (SGIS)
Cachein-memory (LRU)Redis adapter
ProvidersOSM, OSRM, Google, Yelp, Foursquare, Census, Kakao, Naver, Baidu, your CSVMapbox, HERE, TomTom, … (community PRs welcome)
Rate limitingper-provider (OSM 1 req/s)global / per-endpoint

Architecture

AI agent / app   │  MCP · REST · SDK   ▼GeoWire core  ── pipeline: plan → execute → normalize → dedup → rank → policy → cache   │  GeoProvider contract   ▼providers: nominatim · osrm · google · yelp · foursquare · census · kakao · naver · baidu · internal · (community)

Monorepo packages: schema · provider-sdk · provider-testkit · core · providers/* · mcp · apps/server · cli.

Documentation

License

Apache-2.0. GeoWire's code license is separate from the terms of third-party map/place data providers — usage of Google, Mapbox, HERE, Kakao, Naver, etc. is governed by each provider's own terms. OSM data is under ODbL; GeoWire's policy engine enforces attribution and caching limits per provider.

來源:README.md,提交 8b2975f

工具

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

版本歷史

1
  1. v0.6.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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