OpenStreetMap MCP Server
Overview
The OpenStreetMap MCP Server is an implementation that enhances large language model (LLM) capabilities with location-based services and geospatial data, allowing for various location-aware applications.
To use the server, install the package in development mode, start the server, and connect to it using example clients provided in the repository. You can also write your own client to interact with the server's API.
- Geocode and reverse geocode addresses and coordinates. - Find nearby points of interest and get route directions. - Suggest optimal meeting points and analyze neighborhoods. - Locate educational institutions and EV charging stations. - Perform livability analysis for real estate decisions.
- Real estate decision-making by evaluating neighborhoods.
- Finding optimal meeting points for groups.
- Analyzing commute options for users.
- Locating parking facilities and EV charging stations.
Add to your AI client
Use these steps to connect OpenStreetMap MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"osm-mcp-server-jagan-shanmugam": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-osm-mcp-server-jagan-shanmugam"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"osm-mcp-server-jagan-shanmugam": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-osm-mcp-server-jagan-shanmugam"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"osm-mcp-server-jagan-shanmugam": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-osm-mcp-server-jagan-shanmugam"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"osm-mcp-server-jagan-shanmugam": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-osm-mcp-server-jagan-shanmugam"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"osm-mcp-server-jagan-shanmugam": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-osm-mcp-server-jagan-shanmugam"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"osm-mcp-server-jagan-shanmugam": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-osm-mcp-server-jagan-shanmugam"
]
}
}
}FAQ
Can the server handle all types of location queries?
Yes! It supports a wide range of location-based queries and geospatial analyses.
Is there a demo available?
Yes! The repository includes demo use cases showcasing various functionalities.
How can I contribute to the project?
You can contribute by submitting issues, pull requests, or suggestions on GitHub.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1809,"uuid":"812ebc4a-1a11-49d6-b02d-94267e3f47ff","name":"osm-mcp-server","title":"OpenStreetMap MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/30863630?v=4","created_at":"2025-03-05T05:28:41.389Z","updated_at":"2025-03-12T10:20:52.720Z","status":"created","author_name":"jagan-shanmugam","author_avatar_url":"https://avatars.githubusercontent.com/u/30863630?v=4","tags":"osm-mcp-server,geospatial,location-services","category":"location-services","is_featured":false,"sort":1,"url":"https://github.com/jagan-shanmugam/osm-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/jagan-shanmugam/osm-mcp-server/raw/main/demo/use-case-meeting.gif","type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-03 23:53:48\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]