
Quantaroute Geocoder
io.github.mapdevsaikat由 GitHub 帳號 mapdevsaikat 發布v1.0.0更新於 Oct 24, 2026
Geocode addresses, lookup administrative boundaries, and process DigiPin codes for India
概覽
一個本機 MCP 伺服器,讓助理對印度地址進行地理編碼、在座標與 DigiPin 碼之間轉換,並查詢行政區劃邊界。
- 可以做什麼
- 將地址地理編碼為 DigiPin 碼和座標,將 DigiPin 碼反查為地址,將座標轉換為 DigiPin,驗證 DigiPin 格式,並支援最多 100 筆地址的批次地理編碼及地址自動完成建議。依座標或 DigiPin 碼查詢行政區劃邊界(郵遞區號、邦、專區、地區、縣),支援批次查詢。查看 API 用量統計、位置服務統計和 API 健康狀態。
- 適用情境
- 適合處理印度位置資料:把地址轉換為座標或 DigiPin 碼,把 DigiPin 碼或座標解析為地址和郵政邊界,或驗證並批次處理印度地點資料。
- 執行需求
- 透過 npx 在本機執行,需要 Node.js 18 以上。需要 QuantaRoute API 金鑰,透過環境變數 QUANTAROUTE_API_KEY 提供;README 提到可用於測試的免費測試金鑰。需要能連線至 QuantaRoute API 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Quantaroute Geocoder,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
QuantaRoute MCP Server
A Model Context Protocol (MCP) server that provides AI assistants (Claude Desktop, Cursor, and more) with powerful geocoding, location lookup, and DigiPin processing capabilities using the QuantaRoute Geocoding API.
Package: @quantaroute/mcp-server (MCP Server for AI Agents)
SDK: quantaroute-geocoding (Node.js/TypeScript SDK)
✅ Fully compatible with Claude Desktop and Cursor
Features
🗺️ Geocoding Tools
- Geocode addresses to DigiPin codes and coordinates
- Reverse geocode DigiPin codes to addresses
- Convert coordinates to DigiPin codes
- Validate DigiPin format and location
- Batch geocode multiple addresses (up to 100)
- Autocomplete address suggestions
🚀 Revolutionary Location Lookup with Nominatim + Pincode + Digipin
- Lookup administrative boundaries from coordinates (pincode, state, division, locality)
- Lookup from DigiPin codes
- Batch location lookup for multiple locations
- Find nearby boundaries within a radius [COMING SOON...]
- Access to 36,000+ postal boundaries across India
📊 Utility Tools
- Get API usage statistics
- Get location statistics (boundaries, states, divisions)
- Check API health status
Installation
This MCP server is compatible with Claude Desktop and Cursor. Follow the instructions below for your platform.
For Claude Desktop
-
Locate the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
-
Edit the configuration file and add:
- Save and restart Claude Desktop to apply the changes.
For Cursor
Add to your MCP configuration file (~/.cursor/mcp.json):
Restart Cursor after making changes.
Environment Variables
QUANTAROUTE_API_KEY(required): Your QuantaRoute API key- Get your API key from: https://developers.quantaroute.com
- Free tier test key:
demo_free_key_123(for testing)
Available Tools
geocode
Geocode an address to get DigiPin code and coordinates.
Parameters:
address(required): The address to geocodecity(optional): City namestate(optional): State namepincode(optional): Postal codecountry(optional): Country name (defaults to India)
Example:
reverse_geocode
Reverse geocode a DigiPin code to get coordinates and address.
Parameters:
digipin(required): DigiPin code (format: XXX-XXX-XXXX)
coordinates_to_digipin
Convert latitude and longitude to DigiPin code.
Parameters:
latitude(required): Latitude (-90 to 90)longitude(required): Longitude (-180 to 180)
lookup_location_from_coordinates
🚀 REVOLUTIONARY: Get administrative boundaries from coordinates.
Returns: pincode, state, division, locality, district, population density, and more.
Parameters:
latitude(required): Latitude coordinatelongitude(required): Longitude coordinate
lookup_location_from_digipin
Get administrative boundaries from a DigiPin code.
Parameters:
digipin(required): DigiPin code
batch_location_lookup
Batch lookup for multiple locations (up to 100).
Parameters:
locations(required): Array of location objects- Each object can have
latitude+longitudeORdigipin
- Each object can have
batch_geocode
Geocode multiple addresses in a single request (up to 100).
Parameters:
addresses(required): Array of address objects
autocomplete
Get address autocomplete suggestions.
Parameters:
query(required): Search query (minimum 3 characters)limit(optional): Max suggestions (default: 5, max: 10)
find_nearby_boundaries [COMING SOON...]
Find nearby postal boundaries within a radius.
Parameters:
latitude(required): Center latitudelongitude(required): Center longituderadius_km(optional): Search radius in km (default: 5.0, max: 100)limit(optional): Max results (default: 10, max: 50)
validate_digipin
Validate DigiPin format and check if it's a real location.
Parameters:
digipin(required): DigiPin code to validate
get_usage
Get API usage statistics and quota information.
get_location_statistics
Get live statistics about the Location Lookup service.
get_health
Check API health status.
REST API Wrapper
This project includes a REST API wrapper that makes all MCP tools accessible via HTTP endpoints for mobile and web applications.
Features
- ✅ RESTful API: All MCP tools exposed as HTTP endpoints
- ✅ Authentication: API key via header or environment variable
- ✅ CORS Support: Ready for web and mobile apps
- ✅ Vercel Ready: Optimized for serverless deployment
- ✅ Error Handling: Comprehensive error handling and validation
Quick Start
The REST API is already deployed and ready to use at:
Base URL: https://mcp-gc.quantaroute.com/api
Note: mcp-gc stands for MCP Geocoding. This follows the naming convention:
mcp-gc.quantaroute.com- Geocoding MCP Server (this project)
Using the REST API
1. Get API Information:
2. Geocode an Address:
3. Health Check:
4. Find Nearby Boundaries:[NOT RELEASED, COMING SOON...]
This endpoint finds nearby postal boundaries within a specified radius. Useful for:
- Finding all pincodes within X km of a location
- Discovering nearby administrative boundaries
- Location-based search and discovery
JavaScript/TypeScript Example
Python Example
Deploying Your Own Instance
If you want to deploy your own instance:
-
Deploy to Vercel:
-
Set Environment Variable (optional, for testing):
-
Configure Custom Domain (optional):
- Add your custom domain in Vercel
- Configure DNS CNAME record pointing to Vercel
- Wait for DNS propagation and SSL certificate
API Documentation
For complete REST API documentation, see API.md.
Available Endpoints:
GET /api- API informationGET /api/health- Health checkGET /api/usage- Usage statisticsGET /api/location-statistics- Location service statisticsGET /api/autocomplete?q=query- Address autocompleteGET /api/validate-digipin?digipin=XXX-XXX-XXXX- Validate DigiPinPOST /api/geocode- Geocode an addressPOST /api/reverse-geocode- Reverse geocode DigiPinPOST /api/coordinates-to-digipin- Convert coordinates to DigiPinPOST /api/batch-geocode- Batch geocode addressesPOST /api/lookup-location-from-coordinates- Lookup from coordinatesPOST /api/lookup-location-from-digipin- Lookup from DigiPinPOST /api/batch-location-lookup- Batch location lookupPOST /api/find-nearby-boundaries- Find nearby boundaries [COMING SOON...]
Authentication
The API supports authentication in two ways:
-
Request Header (Recommended for production):
- Users should get their own API key from developers.quantaroute.com
- Send the API key in the
x-api-keyheader with each request - Each user's API key is validated by the backend API and usage is tracked separately
-
Environment Variable (Optional fallback for testing):
- Only used if no
x-api-keyheader is provided - Useful for testing and development
- Not recommended for production use
- Only used if no
Priority: The request header takes precedence over the environment variable.
Getting an API Key:
- Visit developers.quantaroute.com
- Sign up and get your API key
- Use it in the
x-api-keyheader for all API requests
Development
Prerequisites
- Node.js 18+
- TypeScript 5+
Setup
Project Structure
API Documentation
Full API documentation: https://api.quantaroute.com/v1/digipin/docs
License
MIT License
Support
- Website: https://quantaroute.com
- API Docs: https://api.quantaroute.com/v1/digipin/docs
- Issues: https://github.com/mapdevsaikat/quantaroute-geocoder/issues
Supported Platforms
✅ Claude Desktop - Fully supported
✅ Cursor - Fully supported
✅ Other MCP-compatible clients - Should work with any MCP-compatible application
Example Usage in AI Assistants
Once configured, AI assistants (Claude, Cursor AI, etc.) can use tools like:
Example 1: Geocoding
Example 2: Location Lookup
Example 3: Reverse Geocoding
Troubleshooting
Claude Desktop Issues
-
Server not appearing in Claude Desktop:
- Verify the config file path is correct for your OS
- Check that the JSON syntax is valid
- Restart Claude Desktop completely
-
"Command not found" errors:
- Ensure Node.js 18+ is installed:
node --version - Verify
npxis available:which npx
- Ensure Node.js 18+ is installed:
-
API authentication errors:
- Check that
QUANTAROUTE_API_KEYis set correctly in the config - Verify the API key is valid at https://api.quantaroute.com
- Check that
Cursor Issues
-
MCP server not loading:
- Check
~/.cursor/mcp.jsonexists and has valid JSON - Restart Cursor completely
- Check Cursor's MCP logs for errors
- Check
-
Tools not available:
- Verify the server is running (check Cursor's MCP status)
- Ensure API key is configured correctly
來源:README.md,提交 ee84a81
工具
0版本歷史
1- v1.0.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分