GeoWire

GeoWire

Unified place search and geocoding over OpenStreetMap, Google, and your own CSV data. Provider fallback, multi-provider merge + dedup, cost budgets, and a policy engine. Works with zero API keys. Tools: search_places, get_place, geocode_address, reverse_geocode, list_geo_providers.

Category
访问服务器

README

GeoWire

Add real-world places to any AI agent in 5 minutes — no API key required.

One place-search interface for every AI and map provider.

<p align="center"> <img src="docs/media/geowire-mcp.gif" alt="geowire MCP server — tools/list and a geocode_address call over stdio" width="760"> </p>

GeoWire is an open-source geo search gateway that sits between AI agents and map/place data providers (OpenStreetMap, Google, your own data) and exposes them through a single MCP server, REST API, and SDK — with provider fallback, multi-provider merge + dedup, cost budgets, and a policy engine that enforces each provider's caching/attribution terms.

Status: v0.1 ("It works") — published on npm. MCP · REST · CLI · SDK all functional.

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"), opening hours, and coverage outside Europe. Add a Google key for full business data; GeoWire merges both and tells you which source every field came from.

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

Why GeoWire?

Direct integration Single-provider MCP GeoWire
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:

<p align="center"> <img src="docs/media/geowire-merge.gif" alt="GeoWire merging a private store DB, Google, and OpenStreetMap into one record with per-field provenance" width="760"> </p>

Quickstart

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

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

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

Then ask: "Where is the Eiffel Tower?" or "Find a Starbucks within 3 km of 37.4979, 127.0276." Works with zero API keys — OpenStreetMap is the default. Add "env": { "GOOGLE_MAPS_API_KEY": "..." } for business listings and hours (e.g. "Find a 24-hour pharmacy near me"). See more MCP client configs.

2. CLI — one-shot search & server

<p align="center"> <img src="docs/media/geowire-search.gif" alt="geowire search in the terminal, with source attribution and response time" width="720"> </p>

npx @geowirehq/cli search "Eiffel Tower"          # terminal search with a results table
npx @geowirehq/cli search "Starbucks" --near 37.4979,127.0276 --radius 3000   # near a coordinate
npx @geowirehq/cli reverse 37.5665,126.9780       # coordinate → nearest place
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

docker run -p 4980:4980 geowire/geowire
# then:
curl -X POST http://localhost:4980/v1/places/search \
  -H 'content-type: application/json' \
  -d '{"query":"Starbucks","near":{"latitude":37.4979,"longitude":127.0276},"radiusMeters":3000}'

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

4. SDK (embedded)

import { createGeoWire } from "@geowirehq/core";
import { createNominatimProvider } from "@geowirehq/provider-nominatim";

const geo = createGeoWire({ providers: [createNominatimProvider()] });
const { results, meta } = await geo.searchPlaces({
  query: "Starbucks",
  near: { latitude: 37.4979, longitude: 127.0276 },
  radiusMeters: 3000,
});

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

MCP tools

Tool Description
search_places Natural-language + coordinate/region place search
get_place Details by provider:providerPlaceId reference
geocode_address Address → coordinates (+ normalized address)
reverse_geocode Coordinates → nearest address
list_geo_providers Active providers, capabilities, status (agent self-awareness)

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

REST endpoints

Method Path
POST /v1/places/search search
GET /v1/places/{ref} place details (provider:id)
GET /v1/geocode?address= geocode
GET /v1/reverse-geocode?lat=&lon= reverse geocode
GET /v1/providers list providers
GET /v1/health health check
GET /metrics Prometheus metrics
GET /docs Swagger UI (OpenAPI 3.1)
POST /mcp MCP 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.

{
  "results": [{
    "id": "gwp_CvWvRZrFtegkJPxP9CW0",
    "name": "경복궁",
    "location": { "latitude": 37.579754, "longitude": 126.9766818 },
    "sources": [{
      "provider": "nominatim",
      "providerPlaceId": "relation/5501517",
      "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:

providers:
  nominatim: { enabled: true }                       # default ON, no key
  google:    { enabled: true, apiKey: ${GOOGLE_MAPS_API_KEY} }
  kakao:     { enabled: true }                        # env KAKAO_REST_API_KEY (KR)
  naver:     { enabled: true }                        # env NAVER_CLIENT_ID + NAVER_CLIENT_SECRET (KR)
  internal:  { enabled: true, source: ./my-places.csv, priority: 100 }
routing:
  defaultStrategy: merge          # first-success | merge
budget:
  perRequestMaxUSD: 0.10          # over-budget paid providers are skipped, free ones used

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

Providers

Provider Key? Capabilities
@geowirehq/provider-nominatim (OpenStreetMap) none search, geocode, reverseGeocode
@geowirehq/provider-google (Maps Platform) BYOK search, geocode, reverseGeocode, getPlace
@geowirehq/provider-kakao (카카오맵, KR) BYOK KAKAO_REST_API_KEY search, geocode, reverseGeocode
@geowirehq/provider-naver (네이버 지역검색, KR) BYOK NAVER_CLIENT_ID+NAVER_CLIENT_SECRET search, geocode
@geowirehq/provider-internal (your CSV) none search

Kakao & Naver make Korea coverage first-class (where OSM is thin and Google has gaps) — merge all four + your own store data into one deduped record.

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:

Area v0.1 Planned
Operations search, geocode, reverse-geocode, get-place autocomplete (typed, not wired)
Strategies first-success, merge cost-aware, fastest, weighted (v0.3)
Routing explicit country country inference from coordinates (v0.3)
Cache in-memory (LRU) Redis adapter (v0.2)
Providers OSM, Google, Kakao, Naver (KR), your CSV Mapbox, Foursquare, Baidu, … (community PRs welcome)
Rate limiting per-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 · google · 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选