OpenStreetMap MCP Server
@jagan-shanmugam
An OpenStreetMap MCP server implementation that enhances LLM capabilities with location-based services and geospatial data.
Overview
What is OpenStreetMap MCP Server?
An OpenStreetMap MCP server that enhances LLM capabilities with location-based services and geospatial data from OpenStreetMap. It provides tools for geocoding, routing, points of interest, and area analysis.
How to use OpenStreetMap MCP Server?
Install and run via uvx osm-mcp-server in MCP hosts like Claude Desktop, Cursor, or Windsurf. For local development, install with pip install -e . and run osm-mcp-server. Configure the server in your MCP host’s JSON config under mcpServers.
Key features of OpenStreetMap MCP Server
- Geocode addresses and place names to coordinates
- Reverse geocode coordinates to addresses
- Find nearby points of interest
- Get route directions between locations
- Search for places by category within a bounding box
- Suggest optimal meeting points for multiple people
- Explore areas and get comprehensive location information
- Find schools and educational institutions near a location
- Analyze commute options between home and work
- Locate EV charging stations with connector and power filtering
- Perform neighborhood livability analysis for real estate
- Find parking facilities with availability and fee information
Use cases of OpenStreetMap MCP Server
- Meeting point optimization for groups of people
- Neighborhood analysis for real estate evaluation
- Parking search near a destination
- Finding EV charging stations along a route
- Commute analysis between home and work locations
FAQ from OpenStreetMap MCP Server
How do I install the OpenStreetMap MCP Server?
Add "osm-mcp-server" to your MCP host’s mcpServers configuration with the command "uvx" and args ["osm-mcp-server"]. For local development, run pip install -e . then osm-mcp-server.
How do I run the server locally?
Install the package in development mode with pip install -e ., then start the server by running osm-mcp-server. It will listen for MCP requests over standard input/output.
How do I debug the OpenStreetMap MCP Server?
Use the MCP Inspector by running npx @modelcontextprotocol/inspector uv --directory /path/to/osm-mcp-server run osm-mcp-server. The Inspector will provide a URL for browser-based debugging.
Where do I configure the server for Claude Desktop?
On macOS, edit ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows, edit %APPDATA%/Claude/claude_desktop_config.json. Add the server to the mcpServers object with the appropriate command and args.