MCP server for route distance calculations using OSRM and Nominatim.
- Route Distance: Calculate driving distance and travel time between two locations
- Geocoding: Converts addresses to coordinates using Nominatim (OpenStreetMap)
- Coordinate Support: Accepts both addresses and lat,lng coordinates
- No API Key Required: Uses free OpenStreetMap services
- Node.js 18+
npm install
npm run setupThis builds the project and links the osmaps-mcp binary globally.
After running npm run setup, configure your MCP client to use osmaps-mcp:
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"osmaps": {
"command": "osmaps-mcp"
}
}
}Add via CLI:
claude mcp add --transport stdio osmaps -- osmaps-mcpOr add to ~/.claude.json:
{
"mcpServers": {
"osmaps": {
"command": "osmaps-mcp"
}
}
}Create .cursor/mcp.json in your project root:
{
"mcpServers": {
"osmaps": {
"command": "osmaps-mcp"
}
}
}Add to your Windsurf MCP configuration:
{
"mcpServers": {
"osmaps": {
"command": "osmaps-mcp"
}
}
}Add to your opencode.json config file:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"osmaps": {
"type": "local",
"command": ["osmaps-mcp"],
"enabled": true
}
}
}Add via CLI:
gemini mcp add osmaps osmaps-mcp -t stdioOr add to your Gemini CLI configuration file:
{
"mcpServers": {
"osmaps": {
"command": "osmaps-mcp"
}
}
}Calculate driving route distance and travel time between two locations.
Parameters:
origin- Starting location (address or lat,lng coordinates)destination- Ending location (address or lat,lng coordinates)
Example:
origin: "Berlin, Germany"
destination: "Paris, France"
Returns: 452.31 km, 265 min
Coordinate example:
origin: "52.5200,13.4050"
destination: "48.8566,2.3522"