OpenStreetMap (OSM) MCP Server logo

OpenStreetMap (OSM) MCP Server

by jagan-shanmugam

An OpenStreetMap MCP server implementation that enhances LLM capabilities with location-based services and geospatial data. It provides LLMs with tools to interact with OpenStreetMap data, enabling location-based applications.

View on GitHub

Last updated: N/A

What is OpenStreetMap (OSM) MCP Server?

This is an OpenStreetMap MCP server that provides LLMs with tools to interact with OpenStreetMap data. It enables location-based applications by providing functionalities like geocoding, reverse geocoding, finding nearby points of interest, and getting route directions.

How to use OpenStreetMap (OSM) MCP Server?

To use the server, install it locally using pip install -e . and start it with osm-mcp-server. You can then interact with it using the provided example clients or by writing your own client using the mcp.client library. Configuration for Claude Desktop is also provided.

Key features of OpenStreetMap (OSM) 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 (OSM) MCP Server

  • Meeting Point Optimization

  • Neighborhood Analysis

  • Parking Search

  • Real Estate Decision Making

FAQ from OpenStreetMap (OSM) MCP Server

How do I install the server?

Use pip install -e .

How do I start the server?

Use the command osm-mcp-server

How do I geocode an address?

Use the geocode_address tool with an address parameter.

How do I find nearby places?

Use the find_nearby_places tool with latitude, longitude, radius, and categories parameters.

How do I debug the server?

Use the MCP Inspector for the best debugging experience.