MapmyIndia Mappls MCP Server
MapmyIndia (Mappls) MCP Server (FastMCP)
Un servidor del Model Context Protocol (MCP) de alto rendimiento para las APIs REST de MapmyIndia (Mappls), construido con el framework de código abierto FastMCP.
Este servidor permite que asistentes de IA (como Claude, Gemini, ChatGPT, Cursor y Antigravity) consulten datos geográficos, realicen geocodificación, generen indicaciones de conducción y caminata, calculen ETAs de matrices de distancia, descubran puntos de interés (POIs) y consulten detalles de lugares mediante códigos eLoc en toda India.
Características
Framework FastMCP: Construido sobre el framework Python
fastmcpde Prefect HQ para generación automática de esquemas, validación robusta y baja latencia.Autenticación flexible:
Modo de token de acceso estático: Pasa un
MAPPLS_ACCESS_TOKENbearer directo.Flujo de credenciales de cliente OAuth 2.0: Pasa
MAPPLS_CLIENT_IDyMAPPLS_CLIENT_SECRETpara la generación automática de tokens y su renovación antes de la expiración.
Herramientas completas de Mappls:
mappls_geocode: Convierte nombres de lugares en coordenadas lat/long y códigos eLoc.mappls_reverse_geocode: Convierte coordenadas en detalles de dirección.mappls_autosuggest: Sugerencias de búsqueda de ubicación predictivas en vivo.mappls_get_directions: Indicaciones de ruta (conducción, caminata, bicicleta, camión) con pasos paso a paso.mappls_distance_matrix: Cálculo de matrices de tiempo y distancia de N a M.mappls_snap_to_road: Ajusta rastros de coordenadas GPS ruidosos a redes viales.mappls_search_nearby: Descubre POIs (restaurantes, cajeros automáticos, hospitales, cargadores para vehículos eléctricos, estaciones de combustible) en las cercanías.mappls_place_details: Obtiene atributos enriquecidos para cualquier código eLoc de 6 caracteres de Mappls.mappls_text_search: Búsqueda inteligente de lugares con corrección ortográfica.
Prompts MCP integrados: Plantillas preconfiguradas como
plan_itineraryyoptimize_logistics_hub.Soporte de doble transporte: Ejecutar vía
stdio(para aplicaciones de escritorio) osse(para microservicios HTTP).Modo sin conexión / simulación: Se ejecuta sin problemas en modo de prueba cuando no se proporcionan claves de API.
Related MCP server: NextBillion.ai MCP Server
Instalación y configuración
1. Requisitos
Python 3.10 o superior
Credenciales de desarrollador de MapmyIndia (Mappls) o token de acceso (desde Mappls Console)
2. Configuración del entorno
Clona o copia este repositorio y luego crea un archivo .env a partir de .env.example:
cp .env.example .envEdita .env y completa tu token de Mappls o tus credenciales de cliente:
# 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=stdio3. Instalar el paquete
Instala el paquete en modo editable:
pip install -e .O instala con dependencias de desarrollo:
pip install -e ".[dev]"Configuración rápida para cualquiera (ejecutar con uvx directamente desde GitHub)
Cualquier persona puede usar este servidor MCP directamente desde GitHub sin clonar el repositorio ni instalar localmente usando uvx (incluido con 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"
}
}
}
}Desarrollo y uso local
Ejecutar vía Stdio (por defecto)
mmi-mcp
# or
python -m mmi_mcp.server --transport stdioEjecutar vía SSE (servidor HTTP)
python -m mmi_mcp.server --transport sse --host 127.0.0.1 --port 8000Ejecución de pruebas
Ejecuta la suite de pruebas unitarias y de integración:
$env:PYTHONPATH="src"; python -m pytest tests/ -vLicencia
Licencia MIT
Available Tools
9 toolsmappls_autosuggestMappls AutosuggestA
Auto-suggest location search predictions for user input as text is typed. Returns ranked place recommendations.
Inputs: query (required), zoom, location. Returns: object
mappls_distance_matrixMappls Distance MatrixA
Calculate travel distances and durations matrix between multiple origin and destination points in India.
Inputs: origins (required), destinations (required), profile. Returns: object
mappls_geocodeMappls GeocodeA
Geocode an address or location text to retrieve latitude, longitude, eLoc code, and standardized address details in India.
Inputs: address (required), region. Returns: object
mappls_get_directionsMappls Get DirectionsB
Get driving, walking, biking, or trucking navigation directions between origin and destination coordinates/eLocs in India.
Inputs: origin (required), destination (required), profile, resource, +1 more. Returns: object
mappls_place_detailsMappls Place DetailsB
Retrieve rich location attributes and details for a location using its 6-character Mappls eLoc code.
Inputs: eloc (required). Returns: object
mappls_reverse_geocodeMappls Reverse GeocodeA
Reverse geocode a pair of geographic coordinates (latitude and longitude) to get the corresponding formatted address and administrative details.
Inputs: latitude (required), longitude (required). Returns: object
mappls_search_nearbyMappls Search NearbyA
Search points of interest (POIs) such as restaurants, fuel stations, ATMs, EV chargers, hospitals, hotels near given coordinates.
Inputs: keywords (required), latitude (required), longitude (required), page, +1 more. Returns: object
mappls_snap_to_roadMappls Snap To RoadA
Snap raw GPS coordinates trace to the nearest road network segments to smooth GPS noise.
Inputs: coordinates (required), profile. Returns: object
mappls_text_searchMappls Text SearchB
Perform smart text search across place entities with auto-correction for spelling variations.
Inputs: query (required), location. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool maps to a distinct location API operation: geocoding, reverse geocoding, typeahead suggestions, routing, distance matrix, road snapping, nearby POI search, place details, and text search. The only real overlap is between autosuggest and text_search, but their descriptions clarify the intended use cases.
All tools share a consistent mappls_ prefix and snake_case format. Most names follow a verb-plus-object style like get_directions or search_nearby, though a few are bare nouns such as distance_matrix and place_details, so the pattern is clean but not perfectly uniform.
Nine tools is well-scoped for a location/mapping server. Each tool covers a distinct workflow with no obvious redundancy, and the count is within the ideal range for an MCP toolset.
The server covers the core read-only location lifecycle well: geocode and reverse geocode, place search and details, directions, distance matrix, and map matching. Advanced features like static map rendering or route optimization are absent, but common mapping workflows have no critical gaps.
Maintenance
Related MCP Connectors
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Place search, routes and spatial reasoning for AI agents, with real-world addresses.
Geospatial intelligence with Mapbox APIs like geocoding, POI search, directions, isochrones, etc.
Provides AI assistants with direct access to Mapbox developer APIs and documentation.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to query TomTom Search and Routing APIs, including geocoding, places, and route planning.75 npmMIT
- AlicenseNot gradedqualityDmaintenanceProvides geolocation, routing, and navigation tools including geocoding, place search, distance matrix, and turn-by-turn directions via NextBillion.ai APIs.8 npm1MIT

Magic Lane MCP Serverofficial
AlicenseBqualityCmaintenanceEnables AI agents to become geospatially intelligent assistants with tools for location search, smart routing, round trip planning, reverse geocoding, isochrone analysis, route visualization, geofence management, and interactive map display.820 npm8Apache 2.0- AlicenseAqualityDmaintenanceEnables AI agents to perform geocoding, routing, nearby search, and other location-based tasks for Indian addresses using the Mappls (MapMyIndia) platform.1746 npm3MIT