Skip to main content
Glama
GeoWire

GeoWire

Official
by geowire

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 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 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:

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:

// "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.

Related MCP server: chuk-mcp-geocoder

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 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

npx @geowirehq/cli search "Golden Gate Bridge"    # terminal search with a results table
npx @geowirehq/cli search "coffee" --near 37.7749,-122.4194 --radius 2000   # near a coordinate
npx @geowirehq/cli reverse 37.8199,-122.4783      # coordinate → nearest place
npx @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

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)

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

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

get_directions

Route between waypoints (distance, time, legs) — no key (OSRM)

distance_matrix

N×M travel distances/times — rank candidates by drive time — no key

analyze_area

Commercial-area analysis: category density, competition, rating landscape, demographics

get_isochrone

Travel-time reachability polygon ("what's within a 15-min drive") — no key (OSRM)

get_demographics

Population / age / income for a coordinate's area (US Census, free key)

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

POST

/v1/directions

directions between waypoints (no key)

POST

/v1/distance-matrix

N×M travel distance/time matrix (no key)

POST

/v1/analyze-area

commercial-area analysis (density, competition, ratings, demographics)

POST

/v1/isochrone

travel-time reachability polygon (no key)

GET

/v1/demographics?lat=&lon=

area demographics (US Census, free key)

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": "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:

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.2
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-osrm (OpenStreetMap routing)

none

route, distanceMatrix

@geowirehq/provider-google (Maps Platform)

BYOK

search, geocode, reverseGeocode, getPlace, route, distanceMatrix

@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-baidu (百度地图, CN)

BYOK BAIDU_MAP_AK

search, geocode, reverseGeocode

@geowirehq/provider-foursquare (global POI)

BYOK FOURSQUARE_API_KEY

search, getPlace

@geowirehq/provider-yelp (US/Western business, ratings & reviews)

BYOK YELP_API_KEY

search, getPlace

@geowirehq/provider-census (US demographics)

BYOK CENSUS_API_KEY (free)

demographics

@geowirehq/provider-internal (your CSV)

none

search

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:

Provider

Authoritative for

Role

Nominatim / OSM

location, address

base map geometry & addresses

Google

business (rating, hours, reviews), contact

rich business data

Foursquare

business (photos, price), categories

global POI specialist

Kakao / Naver / Baidu

name, address

country-specific local names

Internal (your CSV)

name, contact, business

your 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:

Area

Shipped

Planned

Operations

search, geocode, reverse-geocode, get-place, directions, distance-matrix, area analysis, isochrones

autocomplete (typed, not wired)

Strategies

first-success, merge, cost-aware, weighted, fastest

— (all 5 shipped)

Field sourcing

role-based merge (each provider's authoritative fields)

per-field config overrides

Routing providers

OSRM (no key), Google Routes (BYOK)

Mapbox, Valhalla, HERE

Routing

explicit country, free-first cost ordering

country inference from coordinates

Analysis

category density / competition / rating landscape, US demographics, activity proxy, isochrones (travel-time catchment)

real foot-traffic (paid data), exact isochrones (ORS/Valhalla), Korea demographics (SGIS)

Cache

in-memory (LRU)

Redis adapter

Providers

OSM, OSRM, Google, Yelp, Foursquare, Census, Kakao, Naver, Baidu, your CSV

Mapbox, HERE, TomTom, … (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 · 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.

Available Tools

10 tools
analyze_areaA

Analyze a commercial area / neighborhood: given a center point, radius, and business types, return how many of each exist nearby, their density (per km²), rating landscape, and top places. Use this for market/competition questions — 'how saturated is coffee here', 'is this a good spot for a bakery', 'what's the dining scene within 1km'. Example: {"center": {"latitude": 37.4979, "longitude": 127.0276}, "radiusMeters": 1000, "categories": ["cafe", "restaurant", "convenience store"]}. Works with any configured providers; richer with Google/Foursquare (ratings). Not demographic data — it's a place-density/competition view built from live search.

Inputs: center (required), categories (required), radiusMeters (required), options, +1 more.

distance_matrixA

Compute a matrix of travel distances and times from each origin to each destination (N origins × M destinations) in one call. No API key needed. Use this to rank/compare many candidates by drive time — e.g. 'which of these 5 stores is closest to the customer' or delivery/logistics assignment. Example: {"origins": [{"latitude": 37.57, "longitude": 126.98}], "destinations": [{"latitude": 37.49, "longitude": 127.02}, {"latitude": 37.51, "longitude": 127.05}]}. rows[i][j] is origins[i] → destinations[j]. Public OSRM supports driving only.

Inputs: origins (required), destinations (required), mode, options.

geocode_addressA

Convert a street address or place name into geographic coordinates and a normalized address. Use this when you have an address string and need latitude/longitude. Example: {"address": "1600 Amphitheatre Parkway, Mountain View, CA"}. To search for businesses by name/category, use search_places.

Inputs: address (required), limit, country, options.

get_demographicsA

Get demographics (population, median age, median household income, households) for the area containing a coordinate. Use this for market context — 'who lives around here', income/age of an area. Requires a demographics provider: US Census (free key, US only). Returns null outside coverage. Example: {"location": {"latitude": 37.7749, "longitude": -122.4194}}. For a full commercial picture combine with analyze_area, which folds this in automatically.

Inputs: location (required), options.

get_directionsA

Get a route (driving directions) between two or more waypoints, with total distance, travel time, and per-leg breakdown. Works with no API key (OpenStreetMap routing via OSRM). Use this for 'how do I get from A to B', 'how far by car', or 'how long to drive' questions. Waypoints are {latitude, longitude} in order (start, [via...], end). Example: {"waypoints": [{"latitude": 37.5665, "longitude": 126.9780}, {"latitude": 37.4979, "longitude": 127.0276}]}. Set geometry:true to also get the route polyline. Note: the public OSRM server supports driving only.

Inputs: waypoints (required), mode, options, geometry, +1 more.

get_isochroneA

Compute a travel-time reachability area (isochrone): from an origin, the region reachable within N minutes of driving/walking/cycling, as a GeoJSON polygon + area in km². No API key (OpenStreetMap routing). Use for site selection / catchment questions — 'what's within a 15-minute drive', 'how big is this store's 10-min catchment'. Example: {"origin": {"latitude": 37.7749, "longitude": -122.4194}, "minutes": 15, "mode": "driving"}. It's an approximation (sampled bearings scored by a distance matrix), not a routing-engine isochrone.

Inputs: origin (required), minutes (required), mode, options, +1 more.

get_placeA

Fetch full details for a single place by its provider reference id, in the form 'provider:providerPlaceId' (e.g. 'google:ChIJN1t_tDeuEmsRUsoyG83frY4'), as found in a place's sources. Only providers that support getPlace can resolve a reference — currently Google (needs an API key). OpenStreetMap/Nominatim does not, so a 'nominatim:...' reference returns nothing; use search_places or geocode_address for OSM instead. Internal 'gwp_' ids cannot be resolved directly. Example: {"id": "google:ChIJN1t_tDeuEmsRUsoyG83frY4"}.

Inputs: id (required), options.

list_geo_providersA

List the geo data providers currently configured, with their capabilities, enabled state, priority, and required attribution. Use this to understand which data sources are available (e.g. whether Google is configured) before choosing a strategy or explaining coverage. Takes no arguments.

Inputs: no named parameters.

reverse_geocodeC

Convert geographic coordinates into the nearest address / place. Example: {"location": {"latitude": 37.5665, "longitude": 126.9780}}.

Inputs: location (required), options.

search_placesA

Search for places (businesses, points of interest, landmarks) by a natural-language query, optionally biased to a coordinate (near) and/or restricted to a country. Returns places ranked by relevance/distance, each with location, address, contact, opening hours, and its data source(s). Use this for 'find X near Y' requests. Example: {"query": "24-hour pharmacy", "near": {"latitude": 10.7769, "longitude": 106.7009}, "radiusMeters": 2000}. To turn an address into coordinates use geocode_address instead; to look up one known place use get_place.

Inputs: query (required), near, limit, country, +4 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose. For example, search_places handles natural-language queries, get_place retrieves by specific ID, and geocode_address converts addresses to coordinates, with descriptions explicitly clarifying boundaries.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with lowercase and underscores, making the set predictable and easy to navigate.

    Tool Count5/5

    10 tools cover the core geo service functionalities without unnecessary extras, striking a good balance between completeness and simplicity.

    Completeness5/5

    The tool set provides comprehensive coverage for common geo tasks: searching, geocoding, routing, distance matrices, area analysis, demographics, and isochrones, with no obvious gaps.

    Maintenance

    ActivityInactive
    ResponsivenessMostly unanswered

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Geospatial API tools for AI agents — geocoding, reverse geocoding, routing, isochrone, distance matrix, static maps, H3 hexagons, elevation, GPS map-matching, point-in-polygon, address normalisation, timezone lookup, and batch geocoding. Built on OpenStreetMap infrastructure. Cost-effective alternative to Google Maps API.
      18
      39 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides forward/reverse geocoding, bounding box extraction, nearby places discovery, batch geocoding, route waypoints, and administrative boundary lookup using OpenStreetMap data.
      10
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables LLMs to geocode and reverse geocode places, find nearby points of interest, search categories within an area, get turn-by-turn routing, suggest meeting points, and analyze neighborhoods, commutes, schools, EV charging, and parking through OpenStreetMap data services. It also serves place and map tile resources over stdio, SSE, or Streamable HTTP transports.
      12
      MIT