OpenStreetMap MCP Server for routing and place search

OpenStreetMap MCP Server for routing and place search

openstreetmap-mcpserver•byghassentn

An MCP server that connects Claude to OpenStreetMap and OpenRouteService capabilities for route planning, route comparison, distance matrices, cost estimation, and place search.

License: MIT License•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Calculates optimal routes between an origin and destination, with optional waypoints, transport mode, and toll or highway avoidance.
  • •Compares multiple alternative route options between two points.
  • •Computes a distance and duration matrix across multiple origins and destinations.
  • •Estimates trip costs including fuel and toll estimates, and searches for places via OpenStreetMap geocoding.

BEST FOR

  • •Planning driving, walking, or cycling routes between points and intermediate waypoints.
  • •Evaluating trade-offs between route alternatives such as avoiding tolls or highways.
  • •Finding nearby places such as restaurants or hotels around a location.

ABOUT OPENSTREETMAP-MCPSERVER

OpenStreetMap MCP Server for routing and place search is cataloged as an MCP server attributed to ghassentn. An MCP server that connects Claude to OpenStreetMap and OpenRouteService capabilities for route planning, route comparison, distance matrices, cost estimation, and place search. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for OpenStreetMap MCP Server for routing and place search are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server provide real-time traffic information?

No. The README states that real-time traffic is not available in OpenStreetMap; the traffic tool returns basic route information only.

Which transport modes are supported for routing?

Transport modes include driving, walking, bicycling, and transit, with driving-car as the default profile.

What API key does the server require?

An OpenRouteService API key is required and must be configured before the server will work.

上游原版 README

在 GitHub 查看同一版本原文

README.md · e7142c3e3c0c · 采集于 2026-11-13 12:53:29 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

OpenStreetMap MCP Server

A Model Context Protocol (MCP) server that integrates OpenStreetMap routing capabilities with Claude AI for advanced route planning, cost estimation, and place search using OpenRouteService API.

Features

  • Route Calculation: Get optimal routes between multiple points
  • Route Comparison: Compare different routing options (avoid tolls, highways, etc.)
  • Distance Matrix: Calculate distances and durations between multiple origins and destinations
  • Cost Estimation: Estimate fuel and toll costs for trips
  • Place Search: Find places using OpenStreetMap geocoding
  • Multiple Transport Modes: Support for driving, walking, and cycling

Prerequisites

  • Node.js (LTS version 18+ recommended) - Download from nodejs.org
  • OpenRouteService API Key - Get one free from openrouteservice.org
  • Claude Desktop application for MCP integration

Setup Instructions

1. Clone and Install

git clone [your-repo-url]
cd openstreetmap-mcp-server
npm install

2. Get OpenRouteService API Key

  1. Go to openrouteservice.org
  2. Sign up for a free account
  3. Navigate to your dashboard
  4. Create a new API key
  5. Copy the API key for configuration

3. Configure API Key

Edit config/config.json and replace the API key:

{
  "openStreetMap": {
    "apiKey": "your-actual-api-key-here"
  }
}

4. Test the Server

# Test configuration
npm test

# Start in development mode
npm run dev

5. Configure Claude Desktop

Add this to your Claude Desktop MCP settings file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\\Claude\\claude_desktop_config.json

{
  "mcpServers": {
    "openstreetmap": {
      "command": "node",
      "args": ["/absolute/path/to/openstreetmap-mcp-server/src/index.js"],
      "cwd": "/absolute/path/to/openstreetmap-mcp-server"
    }
  }
}

6. Start Using

Restart Claude Desktop and you can now ask questions like:

  • "Find the best route from Paris to Berlin"
  • "Compare routes to the airport with and without tolls"
  • "What's the estimated cost for driving from London to Edinburgh?"
  • "Find restaurants near Times Square"

Available Tools

calculate_route

Get optimal route using OpenStreetMap data with waypoints support.

Parameters:

  • origin (required): Starting point (address or coordinates in lat,lng format)
  • destination (required): Ending point (address or coordinates in lat,lng format)
  • waypoints (optional): Array of intermediate points
  • mode (optional): Transport mode - driving, walking, bicycling, transit
  • avoidTolls (optional): Boolean to avoid toll roads
  • avoidHighways (optional): Boolean to avoid highways

compare_routes

Compare multiple route alternatives with different options.

Parameters:

  • origin (required): Starting point
  • destination (required): Ending point
  • options (required): Array of routing options to compare

get_matrix

Get distance and duration matrix between multiple origins and destinations.

Parameters:

  • origins (required): Array of origin points
  • destinations (required): Array of destination points

get_traffic_info

Get basic route information (Note: Real-time traffic not available in OpenStreetMap).

Parameters:

  • origin (required): Starting point
  • destination (required): Ending point

estimate_costs

Calculate trip costs including fuel and toll estimates.

Parameters:

  • origin (required): Starting point
  • destination (required): Ending point
  • fuelPricePerLiter (optional): Price of fuel per liter (default: 1.50)
  • vehicleFuelEfficiency (optional): Vehicle efficiency in km/liter (default: 8.0)
  • tollEstimatePerKm (optional): Estimated toll cost per km (default: 0.05)

find_places

Search for places using OpenStreetMap geocoding service.

Parameters:

  • query (required): Search query (e.g., "restaurants", "hotels")
  • location (optional): Center location for search
  • radius (optional): Search radius in meters (default: 1000)

Configuration Options

Edit config/config.json to customize:

{
  "openStreetMap": {
    "apiKey": "your-api-key"
  },
  "server": {
    "port": 3001,
    "host": "localhost"
  },
  "routing": {
    "defaultProfile": "driving-car",
    "maxWaypoints": 25,
    "maxAlternatives": 3,
    "units": "metric"
  },
  "costs": {
    "fuelPricePerLiter": 1.50,
    "vehicleFuelEfficiency": 8.0,
    "tollEstimatePerKm": 0.05
  }
}

Troubleshooting

Common Issues

1. "Error loading config" message

  • Check that config/config.json exists and has valid JSON format
  • Ensure the API key is properly set

2. "API request failed" errors

  • Verify your OpenRouteService API key is valid and active
  • Check your API quota limits at openrouteservice.org
  • Ensure you have internet connectivity

3. "Address not found" errors

  • Try using coordinates instead of addresses (lat,lng format)
  • Verify the location exists and is accessible
  • Check spelling of address

4. Server won't start

# Check Node.js version
node --version  # Should be 18+

# Clear dependencies and reinstall
rm -rf node_modules package-lock.json
npm install

# Check for configuration errors
npm test

5. Claude Desktop can't find the server

  • Use absolute paths in Claude Desktop config
  • Restart Claude Desktop after configuration changes
  • Check that the MCP config file path is correct for your OS

Debug Mode

Run with debug logging:

DEBUG=* npm start

Testing Individual Functions

You can test the server functionality by creating test scripts or using the npm test command.

Differences from Google Maps

This OpenStreetMap MCP server provides similar functionality to Google Maps but with some key differences:

Advantages

  • Free and Open Source: No usage limits for basic features
  • Privacy Focused: No tracking or data collection
  • Community Driven: Data maintained by volunteers worldwide
  • Customizable: Full control over routing profiles and preferences

Limitations

  • No Real-time Traffic: Traffic data is not available
  • Limited Transit: Public transportation routing is limited
  • Geocoding Quality: May be less accurate in some regions compared to Google
  • Commercial POI: Fewer commercial points of interest

API Rate Limits

OpenRouteService free tier includes:

  • 2,000 requests per day
  • 40 requests per minute
  • 2,000 requests per month for matrix calculations

For higher limits, consider upgrading to a paid plan at openrouteservice.org.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - feel free to modify and distribute.

About

OpenStreetMap MCP Server - Bringing open-source mapping to Claude AI

Built with:

reverse_geocode

Get location name and address from latitude and longitude coordinates.

Parameters:

  • latitude (required): Latitude coordinate (between -90 and 90)
  • longitude (required): Longitude coordinate (between -180 and 180)
  • zoom (optional): Zoom level for detail (1-18, higher = more detailed, default: 18)

Example Usage:

reverse_geocode({
  latitude: 48.8584,
  longitude: 2.2945
})

Response Format:

{
  "status": "success",
  "coordinates": {
    "latitude": 48.8584,
    "longitude": 2.2945
  },
  "address": {
    "formatted_address": "Tour Eiffel, Avenue Gustave Eiffel, Gros-Caillou, 7e Arrondissement, Paris, Île-de-France, France métropolitaine, 75007, France",
    "name": "Tour Eiffel",
    "street": "Avenue Gustave Eiffel",
    "neighbourhood": "Gros-Caillou",
    "locality": "Paris",
    "region": "Île-de-France",
    "country": "France",
    "country_code": "FR",
    "postal_code": "75007"
  }
}

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for OpenStreetMap MCP Server for routing and place search from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/openstreetmap-mcpserver)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research