MCP Server for OSM
@tpp6me
关于 MCP Server for OSM
MCP server for Nominatim and OSRM applications
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Server for OSM?
MCP Server for OSM is an MCP (Model Context Protocol) server that provides access to OpenStreetMap functions including geocoding and reverse geocoding via Nominatim, route distance via OSRM, and a built-in Haversine distance calculation. It is intended for developers learning about MCP servers or needing light geolocation capabilities.
How to use MCP Server for OSM?
Install Node.js version 20 or higher, then run npm install (or npm install @modelcontextprotocol/sdk). Configure the server in a mcp.json file inside a .vscode or .cursor directory (for VSCode/Cursor) or add it to claude_desktop_config.json for Claude Desktop. The configuration requires the absolute paths to node and index.js.
Key features of MCP Server for OSM
- Geocoding (address to coordinates) via Nominatim API
- Reverse geocoding (coordinates to address) via Nominatim API
- Route distance between two points using OSRM
- Haversine (straight‑line) distance between two points
Use cases of MCP Server for OSM
- Get the coordinates of a city or landmark
- Retrieve the address for given latitude/longitude
- Calculate the straight‑line and route distance between two locations (e.g., San Jose and San Francisco)
- Use as a simple starter project to understand MCP server implementation
FAQ from MCP Server for OSM
What APIs does this server call?
It uses the open Nominatim API for geocoding and reverse geocoding, and the OSRM API for routing. It also includes a non‑API Haversine distance calculation.
What are the runtime requirements?
Node.js version 20 or higher is required.
Can I use my own Nominatim or OSRM servers?
Yes. Edit the NOMINATIM_BASE_URL and OSRM_BASE_URL constants at the top of index.js to point to your custom servers.
Is this suitable for production use?
The README advises using the open servers lightly and fairly. For production, consider installing and hosting your own Nominatim and OSRM servers.
What sample prompts work with this server?
Example prompts include “Give coordinates of New York”, “Give address of (12.77, 78.32)”, and asking for the distance between San Jose and San Francisco.
其他 分类下的更多 MCP 服务器
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
ghidraMCP
LaurieWiredMCP Server for Ghidra
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
评论