tianditu-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tianditu-mcp从西湖到灵隐寺怎么走"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
天地图 MCP Server
AI 霞客的地理能力底座:把天地图 5 类 HTTP API 包装成 6 个 MCP 标准工具,供 CloudBase Agent / 任意 MCP Host 调用。
工具清单
工具 | 功能 | 典型提问 |
| 地址 → 经纬度 | "西湖在哪里" |
| 经纬度 → 地址 | "我现在在哪" |
| 周边/普通/行政区/视野四合一搜索 | "附近有什么吃的" |
| 驾车/步行路线(距离/时长/引导) | "从这到那怎么走" |
| 行政区划(中心点/编码/下级) | "杭州有哪些区" |
| 复合:周边三类去处+距离一次返回 | "逛累了吃点啥" |
Related MCP server: MCP Google Maps
本地运行
npm install
# stdio(IDE 调试)
TIANDITU_TK=你的密钥 npm run start:stdio
# HTTP(部署/Agent 挂载)
TIANDITU_TK=你的密钥 PORT=8788 npm start
# 健康检查
curl http://localhost:8788/healthz部署到 CloudBase 云托管
CloudBase 控制台 → 云托管 → 新建服务 → 上传本目录(或接 Git)
环境变量:
TIANDITU_TK=你的天地图密钥;监听端口 8788(或用默认 PORT 注入)部署后得到访问地址
https://<env>.service.tcloudbase.com/mcp(Streamable HTTP)AI+ → Agent → 工具/MCP → 添加 MCP Server → 填该地址 → 勾选 6 个工具
坐标系说明
天地图 CGCS2000 ≈ WGS84,与小程序 wx.getLocation 同坐标系,全程免纠偏。
配额
个人认证 Key:每接口 2 万次/日。内置:LRU+TTL 缓存、单飞合并、令牌桶限流(8 rps)、429 退避重试,实际调用量可压缩 50%+。
This server cannot be deployed
Maintenance
Related MCP Connectors
HERE MCP — premium geocoding, places, and TRAFFIC-AWARE routing from HERE
- geoOAuthco.thinair
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Geocoding, reverse geocoding, and places search for LatLng.
Geoapify MCP — wraps the Geoapify Location Platform (geoapify.com)
Related MCP Servers
- AlicenseCqualityDmaintenanceProvides access to Google Maps API functionality including geocoding, place search, direction routing, and distance calculations through a structured MCP interface.412 npmMIT
- AlicenseAqualityDmaintenanceProvides access to Google Maps API functionality including places search, geocoding, directions, distance matrix, elevation data, and static map generation through the MCP interface.85 npm1MIT
- FlicenseNot gradedqualityDmaintenanceProvides comprehensive geographic information services and route planning for AI agents via the Amap (Gaode Maps) API. It supports geocoding, multi-modal navigation, POI searches, and administrative region queries.3-
- AlicenseBqualityFmaintenanceProvides comprehensive access to Google Maps Platform APIs through MCP, enabling geocoding, places search, routing, and geospatial operations.15122 npm3MIT