MapmyIndia Mappls MCP Server
Enables AI assistants to query geographic data, perform geocoding, get directions, calculate distance matrices, discover POIs, and look up place details across India using MapmyIndia (Mappls) REST APIs.
README
MapmyIndia (Mappls) MCP Server (FastMCP)
A high-performance Model Context Protocol (MCP) server for MapmyIndia (Mappls) REST APIs, built using the FastMCP open-source framework.
This server enables AI assistants (such as Claude, Gemini, ChatGPT, Cursor, and Antigravity) to query geographic data, perform geocoding, generate driving & walking directions, calculate distance matrix ETAs, discover points of interest (POIs), and look up eLoc place details across India.
Features
- FastMCP Framework: Built on Prefect HQ's
fastmcpPython framework for automatic schema generation, robust validation, and low latency. - Flexible Authentication:
- Static Access Token Mode: Pass a direct bearer
MAPPLS_ACCESS_TOKEN. - OAuth 2.0 Client Credentials Flow: Pass
MAPPLS_CLIENT_IDandMAPPLS_CLIENT_SECRETfor automated token generation and pre-expiry refreshing.
- Static Access Token Mode: Pass a direct bearer
- Comprehensive Mappls Tools:
mappls_geocode: Convert location names to lat/long coordinates & eLoc codes.mappls_reverse_geocode: Convert coordinates to formatted address details.mappls_autosuggest: Live predictive location search suggestions.mappls_get_directions: Route directions (driving, biking, walking, trucking) with turn-by-turn steps.mappls_distance_matrix: N-to-M travel time and distance matrix calculations.mappls_snap_to_road: Snap noisy GPS coordinate traces to road networks.mappls_search_nearby: Discover POIs (restaurants, ATMs, hospitals, EV chargers, fuel stations) nearby.mappls_place_details: Retrieve rich attributes for any 6-character Mappls eLoc code.mappls_text_search: AI smart place search with spelling correction.
- Built-in MCP Prompts: Pre-configured templates like
plan_itineraryandoptimize_logistics_hub. - Dual Transport Support: Run via
stdio(for desktop apps) orsse(for HTTP microservices). - Offline / Mock Mode: Runs seamlessly in dry-run mode when API keys are not provided.
Installation & Setup
1. Requirements
- Python 3.10 or higher
- MapmyIndia (Mappls) Developer Credentials or Access Token (from Mappls Console)
2. Environment Configuration
Clone or copy this repository, then create a .env file from .env.example:
cp .env.example .env
Edit .env and fill in your Mappls token or client credentials:
# Option A: Direct Access Token (Recommended for Token Input)
MAPPLS_ACCESS_TOKEN=your_access_token_here
# Option B: Client Credentials
MAPPLS_CLIENT_ID=your_client_id_here
MAPPLS_CLIENT_SECRET=your_client_secret_here
MCP_TRANSPORT=stdio
3. Install Package
Install the package in editable mode:
pip install -e .
Or install with development dependencies:
pip install -e ".[dev]"
Quick Setup for Anyone (Run via uvx directly from GitHub)
Anyone can use this MCP server directly from GitHub without cloning or local installation by using uvx (included with uv).
1. Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"mappls": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Bhupendrajee07/MMI-MCP.git",
"mmi-mcp"
],
"env": {
"MAPPLS_CLIENT_ID": "YOUR_MAPPLS_CLIENT_ID",
"MAPPLS_CLIENT_SECRET": "YOUR_MAPPLS_CLIENT_SECRET"
}
}
}
}
2. Antigravity / Cursor / VS Code (mcp_config.json)
{
"mcpServers": {
"mappls": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/Bhupendrajee07/MMI-MCP.git",
"mmi-mcp"
],
"env": {
"MAPPLS_ACCESS_TOKEN": "YOUR_MAPPLS_ACCESS_TOKEN"
}
}
}
}
Local Development & Usage
Run via Stdio (Default)
mmi-mcp
# or
python -m mmi_mcp.server --transport stdio
Run via SSE (HTTP Server)
python -m mmi_mcp.server --transport sse --host 127.0.0.1 --port 8000
Running Tests
Run the unit and integration test suite:
$env:PYTHONPATH="src"; python -m pytest tests/ -v
License
MIT License
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.