Provides geocoding, routing, quality assurance, and data analysis tools for OpenStreetMap via MCP and HTTP APIs.
Configuration
View docs{
"mcpServers": {
"grabosm-osm-mcp": {
"command": "node",
"args": [
"/absolute/path/to/osm-mcp/dist/index.js"
],
"env": {
"YOUR_API_KEY": "YOUR_API_KEY"
}
}
}
}You have an OpenStreetMap MCP Server that exposes 30 tools for geocoding, routing, quality assurance, and data analysis. It connects AI assistants and tools to OSM data, enabling you to search locations, compute routes and isochrones, validate data quality, and inspect editsβall through a programmable MCP interface.
You can use this MCP server with your preferred MCP client or RESTful HTTP client to access a wide range of geospatial capabilities. Start the server locally, then invoke tools through the client by sending requests that target the MCP endpoints. Use it to perform location searches, fetch place details, compute routes, analyze edits, check data quality, and explore OSM tag statistics. Tools are organized by capability, so you can chain a geocoding query with a routing query, or run a QA check after a data import.
Prerequisites: Node.js v18 or higher, npm, and a Unix-like shell.
# Step 1: Clone the project repository
git clone https://github.com/GRABOSM/osm-mcp.git
# Step 2: Change into the project directory
cd osm-mcp
# Step 3: Install dependencies
npm install
# Step 4: Build the project
npm run buildConfigure your MCP client to connect to the local server. If you are using a local AI tool, you can run the server and point the client to its stdio entry or to the HTTP API if you expose it. The provided commands below assume a local path to the built distribution.
# Start the MCP server via a local execution path
node /absolute/path/to/osm-mcp/dist/index.jsAfter starting the server, you can ask capabilities like: - Find places or addresses near a location - Get driving directions and isochrones - Inspect recent changes or data quality issues - Retrieve tags usage statistics and tag suggestions
Search for places and addresses globally.
Get an address from geographic coordinates.
Search by structured fields like street, city, country, etc.
Fetch full details of an OpenStreetMap element.
General point-of-interest search for amenities, shops, and more.
Smart POI search with intelligent category detection.
Locate facilities within a defined radius of a point.
Provide detailed turn-by-turn directions between points.
Calculate travel times and distances between multiple points.
Optimize a route through multiple stops (TSP-like).
Snap GPS traces to the road network.
Compute area reachable within a time limit.
Smart search for roads and motorways.
Retrieve all data within a bounding box.
Find elements by specific OSM tags.
Extract road geometry for custom use.
Run advanced Overpass QL queries.
Find the nearest road for a given point.
Details of a specific mapping edit.
Find edits by user, time, or location.
View exact changes made in an edit.
Find data errors with filters.
Details of a specific quality issue.
Quality issues by nation.
Issues related to a specific user.
Data quality metrics and charts.
List of detectable issue categories.
Autocomplete suggestions for OSM tags.
Usage statistics for any OSM tag.
Check if a tag combination is proper.