MapmyIndia Mappls MCP Server
MapmyIndia (Mappls) MCP Server (FastMCP)
MapmyIndia (Mappls) REST API 向けの高性能な Model Context Protocol (MCP) サーバーで、FastMCP オープンソースフレームワークを使用して構築されています。
このサーバーにより、AIアシスタント(Claude、Gemini、ChatGPT、Cursor、Antigravity など)は、地理データのクエリ、ジオコーディング、運転・徒歩ルートの生成、距離行列の所要時間計算、周辺の興味深い地点(POI)の発見、インド全土の eLoc プレース詳細の検索を行うことができます。
機能
FastMCP フレームワーク: Prefect HQ の
fastmcpPython フレームワークに基づき、自動スキーマ生成、堅牢な検証、低レイテンシーを実現します。柔軟な認証:
静的アクセストークンモード: 直接のベアラートークン
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(レストラン、ATM、病院、EV充電器、給油所)を発見します。mappls_place_details: 任意の6文字の Mappls eLoc コードのリッチな属性を取得します。mappls_text_search: スペル修正付きのAIスマートプレース検索。
組み込みの MCP プロンプト:
plan_itineraryやoptimize_logistics_hubなどの事前設定テンプレート。デュアルトランスポートサポート:
stdio(デスクトップアプリ用)またはsse(HTTPマイクロサービス用)で実行できます。オフライン / モックモード: APIキーが提供されていない場合、ドライランモードでシームレスに実行されます。
Related MCP server: NextBillion.ai MCP Server
インストールとセットアップ
1. 要件
Python 3.10 以上
MapmyIndia (Mappls) 開発者資格情報またはアクセストークン(Mappls Console から)
2. 環境設定
このリポジトリをクローンまたはコピーし、.env.example から .env ファイルを作成します:
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]"誰でも簡単セットアップ(GitHub から直接 uvx で実行)
誰でも uvx(uv に含まれています)を使用して、クローンやローカルインストールなしで GitHub から直接この MCP サーバーを使用できます。
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 stdioSSE 経由で実行(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