Skip to main content
Glama
BuddyGeo MCP Server

BuddyGeo MCP Server

by BuddyGeo
README.md
# BuddyGeo MCP Server (`@buddygeo/mcp-server`)

Give **Claude, ChatGPT, Cursor, VS Code, Windsurf**, and custom AI agents **11 verified OpenStreetMap, PostGIS, and Valhalla geospatial tools** — so your assistant stops hallucinating coordinates and never gets `403`/`429` blocked by public Nominatim.

[![Install in Cursor](https://img.shields.io/badge/Cursor-Install_BuddyGeo_MCP-111111?style=for-the-badge)](https://cursor.com/en/install-mcp?name=buddygeo&config=eyJ1cmwiOiJodHRwczovL3d3dy5idWRkeWdlby5jb20vdjEvbWNwIn0%3D)
[![Install in VS Code](https://img.shields.io/badge/VS_Code-Install_BuddyGeo_MCP-007ACC?style=for-the-badge)](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522buddygeo%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Fwww.buddygeo.com%252Fv1%252Fmcp%2522%257D)
[![Claude Desktop Extension](https://img.shields.io/badge/Claude_Desktop-Download_.mcpb-D97757?style=for-the-badge)](https://www.buddygeo.com/downloads/buddygeo-mcp.mcpb)

> **Plain-English visual guide & starter prompts:** [www.buddygeo.com/mcp](https://www.buddygeo.com/mcp) · **60-second setup:** [www.buddygeo.com/mcp/setup](https://www.buddygeo.com/mcp/setup)

---

## Why BuddyGeo MCP?

- **1-Click Browser Sign-In (OAuth 2.1 + PKCE):** Paste `https://www.buddygeo.com/v1/mcp` in Claude, Cursor, VS Code, or ChatGPT and approve access in the popup — no API key copying required.
- **Zero Hallucinated Coordinates:** Every latitude/longitude, route, and drive-time polygon is deterministically verified by OpenStreetMap, PostGIS, and Valhalla.
- **Cascade AI Messy-Address Repair:** Automatically strips delivery instructions, buzzers, phone numbers, and typos (`Attn: Sarah, ring #12, 290 bremnr blvd tornto`) while preserving structured delivery notes.
- **Agent-Safe Pricing & Hard Caps:**
  - **Free (`$0/mo`):** 2,500 spatial credits + 250 AI actions/month (no credit card required). Need extra volume? Buy never-expiring prepaid packs (`$1.00 / 1k` spatial, `$5.00 / 1k` AI).
  - **Developer (`$19/mo`):** 100,000 credits + 5,000 AI actions (5 req/s). Hard cap by default, or opt in to pro-rated overages (`$0.35 / 1k` spatial · `$3.00 / 1k` AI) with your own monthly `$` spend cap.
  - **Growth (`$29/mo`):** 1,000,000 credits + 15,000 AI actions (10 req/s). Opt-in pro-rated overages (`$0.10 / 1k` spatial · `$2.00 / 1k` AI).
  - **Zero-waste guarantee:** Empty matches, `"TBD"` placeholders, and errors always cost **0 credits**.

---

## Option 1 — Hosted Streamable HTTP with 1-Click OAuth 2.1 (Recommended)

No Node.js install and no manual API key required. Point any OAuth-enabled MCP client at:

- **MCP Endpoint:** `https://www.buddygeo.com/v1/mcp`
- **OAuth Discovery (RFC 9728 / RFC 8414):** `https://www.buddygeo.com/.well-known/oauth-protected-resource`

### Claude.ai & Claude Desktop
1. Open **Settings → Connectors → Add custom connector**.
2. Name it **BuddyGeo** and paste `https://www.buddygeo.com/v1/mcp`.
3. Click **Connect**, sign in via the BuddyGeo popup, choose your workspace, and click **Allow access**.

### Cursor (`.cursor/mcp.json`)
```json
{
  "mcpServers": {
    "buddygeo": {
      "url": "https://www.buddygeo.com/v1/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)
```json
{
  "servers": {
    "buddygeo": {
      "type": "http",
      "url": "https://www.buddygeo.com/v1/mcp"
    }
  }
}
```

### Headless Agents / CI (Static `X-API-Key`)
Create a workspace key at [www.buddygeo.com/dashboard/keys](https://www.buddygeo.com/dashboard/keys) and pass it in the `X-API-Key` header:
```json
{
  "mcpServers": {
    "buddygeo": {
      "url": "https://www.buddygeo.com/v1/mcp",
      "headers": {
        "X-API-Key": "bg_live_your_key_here"
      }
    }
  }
}
```

---

## Option 2 — Local Stdio MCP (`@buddygeo/mcp-server`)

Zero external npm dependencies (requires Node.js 18+):

```json
{
  "mcpServers": {
    "buddygeo": {
      "command": "npx",
      "args": ["-y", "@buddygeo/mcp-server"],
      "env": {
        "BUDDYGEO_API_KEY": "bg_live_your_key_here"
      }
    }
  }
}
```

Or double-click the packaged Claude Desktop extension bundle: [`buddygeo-mcp.mcpb`](https://www.buddygeo.com/downloads/buddygeo-mcp.mcpb).

---

## Included Tools (11)

| Tool | Endpoint | What it does |
| :--- | :--- | :--- |
| `buddygeo_clean_geocode` | `POST /v1/ai/clean-geocode` | Cascade AI messy-address repair + OSM verification + extracted delivery notes |
| `buddygeo_ask` | `POST /v1/ai/ask` | Plain-English Spatial Q&A over routes, drive-time zones, inline points, or batch jobs |
| `buddygeo_geocode` | `GET /v1/search` | Convert an address or place name to verified WGS84 coordinates (`ai_repair` optional) |
| `buddygeo_reverse` | `GET /v1/reverse` | Convert `lat`/`lon` coordinates to the nearest structured street address |
| `buddygeo_route` | `POST /v1/route` | Compute road, cycle, or walk route distance, ETA, maneuvers, and GeoJSON |
| `buddygeo_isochrone` | `POST /v1/isochrone` | Compute real drive, cycle, or walk travel-time polygons (GeoJSON isochrones) |
| `buddygeo_matrix` | `POST /v1/matrix` | Compute travel-time and road-distance matrices between multiple origins & destinations |
| `buddygeo_nearby_places` | `GET /v1/places/nearby` | Find nearby OpenStreetMap places within a meter radius via PostGIS |
| `buddygeo_batch_submit` | `POST /v1/batch` | Submit async batch job with optional Cascade AI repair (`ai_repair_enabled`) |
| `buddygeo_batch_status` | `GET /v1/batch/{job_id}` | Poll batch progress, match counts, and credit usage |
| `buddygeo_usage` | `GET /v1/usage` | Check workspace spatial credits, AI actions, prepaid packs, and overage cap status |

---

## Try These Prompts Right After Connecting

1. **Zero-credit connection test:** *"Check my BuddyGeo workspace balance and tell me how many monthly credits and AI actions I have left."*
2. **Messy delivery repair:** *"Clean this delivery address, keep the gate and buzzer instructions separate, and verify coordinates: `Attn: Sarah, Unit 4B behind blue gate, 290 bremnr blvd tornto ON M5V3L9, ring buzzer #12`"*
3. **15-minute drive-time check:** *"Which of these Toronto addresses are within a 15-minute drive of CN Tower (290 Bremner Blvd): 100 Queen St W, 40 Bay St, and 3401 Dufferin St?"*

---

## Try & Inspect on Glama

[![BuddyGeo MCP server](https://glama.ai/mcp/servers/ganeshkrishnan1/buddygeo-mcp/badges/score.svg)](https://glama.ai/mcp/servers/ganeshkrishnan1/buddygeo-mcp)

View the [BuddyGeo MCP Server listing on Glama](https://glama.ai/mcp/servers/ganeshkrishnan1/buddygeo-mcp) to:

- browse all 11 geospatial & AI tools and check the server's quality score
- test the server online using [MCP Inspector](https://glama.ai/mcp/inspector)

---

## Links & License

- **Overview:** [https://www.buddygeo.com/mcp](https://www.buddygeo.com/mcp)
- **Setup Guide:** [https://www.buddygeo.com/mcp/setup](https://www.buddygeo.com/mcp/setup)
- **Technical Docs & OpenAPI:** [https://www.buddygeo.com/docs/mcp-server](https://www.buddygeo.com/docs/mcp-server)
- **License:** MIT