Free open map data
## OpenStreetMap MCP Server: Open Geographic Data Access The **OpenStreetMap MCP Server** integrates the world's largest collaborative mapping database directly into Google Antigravity, enabling AI assistants to query geographic data, access POI information, and perform spatial analysis using open data. This integration provides access to community-maintained mapping data without vendor lock-in or licensing restrictions. ### Why OpenStreetMap MCP? - **Open Data**: Access freely available geographic data contributed by millions of mappers worldwide - **Global Coverage**: Comprehensive mapping data for every country with particularly strong coverage in developed regions - **Rich Tagging**: Detailed feature attributes using OSM's flexible tagging system for precise queries - **Historical Data**: Access to map history and changesets for analyzing geographic changes over time - **No Licensing Fees**: Use map data freely with only attribution requirements under ODbL license ### Key Features #### 1. Feature Queries ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Find all bicycle parking facilities within 500 meters of this location using OSM data" }], tools=[{ "name": "osm_query", "description": "Query OpenStreetMap features" }] ) ``` #### 2. Overpass API ```python # Complex spatial queries response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Query all restaurants in Berlin that have outdoor seating and wheelchair accessibility" }], tools=[{"name": "osm_overpass", "description": "Execute Overpass queries"}] ) ``` #### 3. Nominatim Geocoding ```python # Open geocoding service response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Geocode this address using OSM Nominatim: Brandenburger Tor, Berlin" }], tools=[{"name": "osm_nominatim", "description": "Geocode with Nominatim"}] ) ``` #### 4. Map Data Export ```python # Export geographic data response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Export all hiking trails in Yosemite National Park as GeoJSON" }], tools=[{"name": "osm_export", "description": "Export map data"}] ) ``` ### Configuration ```json { "mcpServers": { "openstreetmap": { "command": "npx", "args": ["-y", "@anthropic/mcp-openstreetmap"], "env": { "OSM_USER_AGENT": "your-app-name/1.0" } } } } ``` ### Use Cases **Open Source Projects**: Build mapping applications using freely available data without commercial licensing restrictions. **Research Applications**: Access geographic data for academic research, urban planning studies, and spatial analysis. **Humanitarian Mapping**: Support disaster response and development projects with community-maintained local data. **Custom Map Rendering**: Create specialized maps using detailed OSM data with custom styling and feature selection. The OpenStreetMap MCP Server provides unrestricted access to the world's most comprehensive open geographic database, enabling mapping applications without vendor dependencies.
{
"mcpServers": {
"openstreetmap": {
"mcpServers": {
"osm": {
"args": [
"-y",
"osm-mcp-server"
],
"command": "npx"
}
}
}
}
}