# julesmaxxx/overspan-mcp [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/julesmaxxx/overspan-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 230  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-243

## Description
OpenStreetMap queries as MCP tools, served by the Overspan hosted Overpass API.

## Tools
Capabilities this server exposes over MCP:

- **overpass_query** — Run a raw Overpass QL query against the Overspan hosted Overpass API (full-planet OpenStreetMap data, minutes behind live). Use this when the helper tools are too narrow. Always bound the query to an area and cap the output (for example: out center 25;). Start with [out:json]. Queries without [timeout:] get 25 seconds. Read the overspan://overpass-ql resource for syntax and the overspan://differences resource for how this server differs from the public ones.
- **find_nearby** — Find OpenStreetMap features matching tag filters within a radius of a point. Returns up to 'limit' elements with their tags and a centre coordinate. Good first tool for questions like 'what cafes are near X'. For larger or unknown result sets, call count_features first.
- **features_in_bbox** — Find OpenStreetMap features matching tag filters inside a bounding box (south, west, north, east in decimal degrees). Returns up to 'limit' elements with their tags and a centre coordinate. Keep boxes small; for city-sized areas call count_features first.
- **count_features** — Count OpenStreetMap features matching tag filters in an area without returning them. Cheap. Use this before pulling data when the result size is unknown. Give either a point (lat, lon, radius_m) or a bounding box (south, west, north, east).
- **get_usage** — Check this API key's tier, its limits, month-to-date quota, and recent request history. Does not consume query quota. Use it to pace yourself when running many queries.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "overspan-mcp": {
    "command": "npx",
    "args": ["-y","overspan-mcp"],
    "env": {
      "OVERSPAN_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `OVERSPAN_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What julesmaxxx/overspan-mcp does

julesmaxxx/overspan-mcp exposes Overspan's hosted Overpass API through MCP. Agents can query full-planet OpenStreetMap data using either helper tools or raw Overpass QL. The service is suited to location workflows such as finding tagged features near a coordinate, searching a bounded geographic area, measuring result counts before retrieval, and checking API consumption.

The five tools are:

- `find_nearby` searches for OSM features matching tag filters within a radius and returns up to the requested limit, including tags and a centre coordinate.
- `features_in_bbox` searches a south, west, north, east bounding box and returns matching features with tags and centre coordinates.
- `count_features` counts matching features without returning the feature data.
- `overpass_query` sends a raw Overpass QL query for cases the helpers cannot express.
- `get_usage` reports the API key's tier, limits, month-to-date quota, and recent request history without consuming query quota.

## How it works

The server sends requests to the Overspan API using the configured key as a Bearer authorization header. Successful tool responses include a quota status line, while rejected requests return a plain-language message with an error code and retry guidance. Agents can call `count_features` before retrieving a large or unknown result set, then use a smaller spatial query or an appropriate limit.

Raw queries should begin with `[out:json]`, include an area constraint, and cap output, such as with `out center 25;`. Queries without an explicit `[timeout:]` receive a 25-second timeout; heavier queries can set one within the tier's limit. The server exposes `overspan://overpass-ql` for query syntax and `overspan://differences` for service-specific details, along with a `write-bounded-overpass-query` prompt.

## Setup and configuration

Install or run the package through `npx` and provide an Overspan key in the MCP client's server environment. Claude Code can use:

```bash
claude mcp add overspan --env OVERSPAN_API_KEY=YOUR_KEY -- npx -y overspan-mcp
```

JSON-configured clients can start `npx -y overspan-mcp` and set `OVERSPAN_API_KEY` in the server's `env` block. A shell-exported variable is not automatically passed into the environment created by an MCP client. Keep configuration files containing the key private; Claude Code can reference an existing `${OVerSPAN_KEY}`-style environment variable instead of storing the secret directly.

`OVERSPAN_API_URL` can replace the default `https://api.overspan.dev` endpoint. `OVERSPAN_MAX_RESPONSE_CHARS` controls the result-size threshold and defaults to 48,000 characters.

## Limitations and notes

Overspan data is based on OpenStreetMap and can be several minutes behind live updates. Keep nearby searches and bounding boxes small; city-sized searches should use `count_features` first. Large Overpass JSON responses are trimmed to fit model context, and the result reports how many elements were dropped; the response threshold can be raised with `OVERSPAN_MAX_RESPONSE_CHARS`.

Access is metered by the Overspan API key. Trial keys have a seven-day window and may return `trial_busy` or `trial_ended`; rejected requests do not consume quota. OpenStreetMap results are licensed under the Open Database License, so published uses that display or derive from the data require visible credit linking to OpenStreetMap's copyright page. Overspan provides hosting and access and is independent of the OpenStreetMap Foundation and Overpass API project.

_Full upstream README: https://allmcps.com/mcp/mcp-243/readme_

