osm-mcp-server

osm-mcp-server

1

This project is an MCP server dedicated to leveraging OSM functionalities like geocoding and routing. It provides educational insights into implementing these APIs, supporting integration with IDEs like VSCode and applications like Claude.

Overview

This project is an MCP server for accessing OpenStreetMap (OSM) functionalities like geocoding, reverse geocoding, and distance calculations using the Nominatim and OSRM APIs. It is intended for learning and offers implementations of these APIs along with the Haversine distance formula. The project requires Node version 20 and above.

Features

  • Geocoding with Nominatim API
  • Reverse geocoding with Nominatim API
  • Route distance calculation using OSRM API
  • Haversine formula for straight-line distance

Installation

  • Install dependencies with npm
  • Create a configuration file for enabling the MCP server
  • Supports integration with VSCode and Claude Desktop application

Usage

  • Use for testing or educational purposes with open servers. For production, set up custom Nominatim and OSRM servers.