OSM MCP Analytics Server

OSM MCP Analytics Server

Provides advanced geospatial analytics for OpenStreetMap, including neighborhood livability scoring and commute analysis, beyond simple geocoding.

Category
Visit Server

README

Enterprise OpenStreetMap (OSM) MCP Analytics Server

A modular, high-performance Model Context Protocol (MCP) server for OpenStreetMap. This implementation goes beyond simple geocoding, providing advanced geospatial analytics like neighborhood livability scoring and commute analysis.

šŸš€ Why this server?

While there are many OSM MCP servers, this version is built for stability, modular extension, and advanced insights:

  • Modular Architecture: Clean separation between API Client, Utility logic, and Tool definitions. Easy to audit and extend.
  • Enterprise Analytics:
    • analyze_neighborhood: Calculates a "Livability Score" based on walking proximity to essential services (groceries, healthcare, parks).
    • analyze_commute: Multi-modal comparison of travel times (car, bike, foot) for lifestyle planning.
  • Efficient: Uses FastMCP for asynchronous I/O and structured tool registration.
  • Windows Optimized: Built and tested to run reliably as a background process on Windows environments.

šŸ›  Features

Core Tools

  • Geocoding: geocode_address, reverse_geocode
  • Routing: get_route_directions (OSRM based)
  • Search: find_nearby_places, search_category
  • Analytics: explore_area, analyze_neighborhood, analyze_commute

Specialized Tools (Optional)

Found in tools/extras.py (not loaded by default for performance):

  • find_schools_nearby
  • find_ev_charging_stations
  • find_parking_facilities
  • suggest_meeting_point

Resources

  • location://place/{query}: Real-time place metadata.
  • location://map/{style}/{z}/{x}/{y}: Interactive map tile retrieval.

šŸ“¦ Installation

Requirements

  • Python 3.10+
  • uv (recommended) or pip

Method 1: Via MCP Config (Claude/Cursor)

Add this to your mcp_config.json:

{
  "mcpServers": {
    "osm-mcp": {
      "command": "python",
      "args": [
        "c:/path/to/osm-mcp-server/src/openstreetmap_mcp/server.py"
      ],
      "env": {
        "PYTHONPATH": "c:/path/to/osm-mcp-server/src/openstreetmap_mcp"
      }
    }
  }
}

Method 2: Local Development

git clone https://github.com/neco001/openstreetmap-mcp
cd openstreetmap-mcp
uv sync

šŸ“‚ Project Structure

src/openstreetmap_mcp/
ā”œā”€ā”€ server.py           # Main Entry Point
ā”œā”€ā”€ instance.py         # FastMCP lifecycle
ā”œā”€ā”€ client.py           # HTTP logic for OSM/OSRM/Overpass
ā”œā”€ā”€ utils.py            # Haversine & geometric helpers
ā”œā”€ā”€ tools/              # Categorized tool definitions
│   ā”œā”€ā”€ geocoding.py
│   ā”œā”€ā”€ routing.py
│   ā”œā”€ā”€ search.py
│   └── analysis.py
└── resources.py        # Map & Data resources

āš–ļø License

MIT License - feel free to use, modify and distribute.

Acknowledgments

Original logic & concepts by Jagan Shanmugam. This repository is a modular refactor focused on Enterprise usage, Windows compatibility, and Analytics tools.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured