MapmyIndia Mappls MCP Server
MapmyIndia (Mappls) MCP Server (FastMCP)
Высокопроизводительный сервер Model Context Protocol (MCP) для MapmyIndia (Mappls) REST APIs, созданный на основе фреймворка с открытым исходным кодом FastMCP.
Этот сервер позволяет ИИ-ассистентам (таким как Claude, Gemini, ChatGPT, Cursor и Antigravity) запрашивать географические данные, выполнять геокодирование, строить автомобильные и пешеходные маршруты, рассчитывать матрицу расстояний и ETA, находить точки интереса (POI) и получать сведения о местах по кодам eLoc по всей Индии.
Возможности
FastMCP Framework: создан на основе Python-фреймворка
fastmcpот Prefect HQ для автоматической генерации схем, надежной валидации и низкой задержки.Гибкая аутентификация:
Режим статического токена доступа: передайте прямой bearer-токен
MAPPLS_ACCESS_TOKEN.Поток учетных данных клиента OAuth 2.0: передайте
MAPPLS_CLIENT_IDиMAPPLS_CLIENT_SECRETдля автоматической генерации токена и его обновления до истечения срока действия.
Комплексные инструменты Mappls:
mappls_geocode: преобразует названия мест в координаты широты/долготы и коды eLoc.mappls_reverse_geocode: преобразует координаты в форматированные данные адреса.mappls_autosuggest: живые прогнозные подсказки поиска мест.mappls_get_directions: маршруты (на автомобиле, велосипеде, пешком, грузовом транспорте) с пошаговыми инструкциями.mappls_distance_matrix: расчет матрицы расстояний и времени в пути от N до M точек.mappls_snap_to_road: привязка зашумленных GPS-треков к дорожной сети.mappls_search_nearby: поиск ближайших POI (рестораны, банкоматы, больницы, зарядные станции для электромобилей, заправки).mappls_place_details: получение расширенных атрибутов для любого 6-значного кода eLoc Mappls.mappls_text_search: интеллектуальный поиск мест с исправлением орфографии.
Встроенные MCP-промпты: предварительно настроенные шаблоны, такие как
plan_itineraryиoptimize_logistics_hub.Поддержка двух транспортов: запуск через
stdio(для настольных приложений) илиsse(для HTTP-микросервисов).Офлайн / Mock-режим: бесперебойная работа в режиме пробного запуска (dry-run) при отсутствии API-ключей.
Related MCP server: NextBillion.ai MCP Server
Установка и настройка
1. Требования
Python 3.10 или выше
Учетные данные разработчика MapmyIndia (Mappls) или токен доступа (из Mappls Console)
2. Конфигурация окружения
Клонируйте или скопируйте этот репозиторий, затем создайте файл .env из .env.example:
cp .env.example .envОтредактируйте .env и укажите ваш токен Mappls или учетные данные клиента:
# 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. Установка пакета
Установите пакет в режиме редактирования:
pip install -e .Или установите с зависимостями для разработки:
pip install -e ".[dev]"Быстрая настройка для всех (запуск через uvx напрямую из GitHub)
Любой может использовать этот MCP-сервер напрямую из GitHub без клонирования или локальной установки с помощью uvx (входит в состав 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"
}
}
}
}Локальная разработка и использование
Запуск через Stdio (по умолчанию)
mmi-mcp
# or
python -m mmi_mcp.server --transport stdioЗапуск через SSE (HTTP-сервер)
python -m mmi_mcp.server --transport sse --host 127.0.0.1 --port 8000Запуск тестов
Запустите набор модульных и интеграционных тестов:
$env:PYTHONPATH="src"; python -m pytest tests/ -vЛицензия
Лицензия 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