Compatible with every major AI agent and IDE
What is the OpenStreetMap MCP Server?
Connect your AI agent to the world's largest open geographic database. This server enables full interaction with the OpenStreetMap API (v0.6), allowing you to query, create, and update geospatial data through natural conversation.
What you can do
- Map Data Retrieval — Fetch raw OSM data (nodes, ways, relations) within specific bounding boxes for analysis or visualization.
- Element Management — Create, read, update, or delete map elements including points of interest (nodes), roads (ways), and complex boundaries (relations).
- Changeset Workflows — Open, update, and close changesets to group your edits and provide meaningful metadata to the OSM community.
- Historical Analysis — Retrieve the full version history of any map element to track changes over time.
- Advanced Querying — Filter changesets by user, time range, or geographic area to monitor local mapping activity.
How it works
- Subscribe to this server
- Enter your OpenStreetMap OAuth Token
- Start exploring and editing the map from Claude, Cursor, or any MCP-compatible client
Your AI can now act as a GIS specialist, helping you audit map data or contribute to open-source geography without leaving your workspace.
Who is this for?
- GIS Analysts — quickly extract raw map data for specific regions without manual exports
- Open Source Contributors — automate the creation of map elements and manage changesets via chat
- Developers — inspect map element metadata and history directly while building location-based services
Built-in capabilities (33)
Close a changeset
Close a map note
Add a comment to an existing map note
Create a new changeset
Create a new node, way, or relation
Create a new map note
Delete a node, way, or relation
Delete a message
Download a changeset in OsmChange format
Get details for the authenticated user
Read a changeset by ID
Read a node, way, or relation by ID
Get the history of a node, way, or relation
Multi-fetch nodes, ways, or relations
Download data for a GPS trace
Read metadata for a GPS trace
Get the authenticated user's message inbox
Get map data (nodes, ways, relations) within a bounding box
Read a specific message
Read a map note by ID
Get the authenticated user's message outbox
Get OAuth permissions for the authenticated user
Get details for a specific user
Get preferences for the authenticated user
List map notes within a bounding box
List GPS traces for the authenticated user
Query changesets with filters
Search for map notes
Send a private message to another user
Update tags of an open changeset
Update an existing node, way, or relation
Update the read status of a message
Upload a GPS trace (GPX)
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and OpenStreetMap tool infrastructure. Connect 33 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add OpenStreetMap without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every OpenStreetMap tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
OpenStreetMap in Mastra AI
OpenStreetMap and 4,000+ other MCP servers. One platform. One governance layer.
Teams that connect OpenStreetMap to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 4,000+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for OpenStreetMap in Mastra AI
The OpenStreetMap MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 33 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
OpenStreetMap for Mastra AI
Every tool call from Mastra AI to the OpenStreetMap MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
How can I download map data for a specific region?
Use the get_map_data tool by providing a bounding box string (left, bottom, right, top). The agent will retrieve all nodes, ways, and relations within those coordinates.
Can I see who edited a specific road or building?
Yes! Use the get_element_history tool with the element type (node, way, or relation) and its ID. It will return the full version history, including timestamps and user information.
Is it possible to search for recent map updates in a city?
You can use query_changesets with a bbox (bounding box) parameter. This will list all changesets that intersect with that area, allowing you to inspect recent mapping activity.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Explore More MCP Servers
View all →
EIA Energy Outlook — Forecasts & Projections
4 toolsOfficial U.S. energy forecasts: the Short-Term Energy Outlook (18-month price and supply projections), Annual Energy Outlook (30-year U.S. projections), International Energy Outlook (world projections), and country-level global energy data.

Dynamic (Web3 Auth)
8 toolsManage Web3 authentication and user data via Dynamic — fetch user profiles, check wallet sanctions, and manage sessions directly from any AI agent.

Extensiv
10 toolsManage omnichannel operations via Extensiv — track orders and shipments, monitor inventory and warehouses, and manage vendors directly from any AI agent.

Adyen
4 toolsGlobal payment processing — manage payments, refunds, and merchant accounts via AI.
