mcp
by baidu-maps·★ 426·综合分 47
百度地图 MCP 服务器通过 MCP 协议提供全面的地理空间 API 服务。
概述
百度地图 MCP 服务器是一个完全符合 MCP 规范的解决方案,使 AI 代理和大语言模型能够访问现实世界的位置数据和服务。它提供全面的地理空间 API 套件,包括地理编码、兴趣点搜索、路线规划、天气、交通信息等。该服务器支持 Python 和 TypeScript SDK,可通过 CLI 或云平台部署,并提供低延迟的服务器发送事件访问。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
什么时候选它
当您在中国需要全面的地理空间数据和基于位置的服务,或需要百度地图权威位置数据的应用时,选择此 MCP 服务器。
什么时候不要选它
如果您需要中国以外的位置服务,偏好开源地图数据,或需要百度地图未提供的更高级功能,请避免使用。
此 server 暴露的工具
从 README 抽取出 10 个工具map_geocodeConvert address to geographic coordinates.
map_reverse_geocodeGet address, region, and POI info from coordinates.
map_search_placesSearch for global POIs by keyword, type, region, or within a radius.
map_place_detailsGet detailed info for a POI by its unique ID.
map_directions_matrixBatch route planning for multiple origins/destinations.
map_directionsPlan routes between two points (driving, walking, cycling, transit).
map_weatherQuery real-time and forecast weather by region or coordinates.
map_ip_locationLocate city and coordinates by IP address.
map_road_trafficQuery real-time traffic conditions for roads or regions.
map_poi_extractExtract POI info from free text (requires advanced permission).
可对比工具
安装
安装
Python
pip install mcp-server-baidu-mapsNode.js/TypeScript
npm install @baidumap/mcp-server-baidu-mapClaude Desktop 配置
{
"mcpServers": {
"baidu-maps": {
"command": "python",
"args": ["-m", "mcp_server_baidu_maps"],
"env": {
"BAIDU_MAPS_API_KEY": "<您的API密钥>"
}
}
}
}Node.js 配置
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": [
"-y",
"@baidumap/mcp-server-baidu-map"
],
"env": {
"BAIDU_MAP_API_KEY": "<您的API密钥>"
}
}
}
}FAQ
- 使用此 MCP 服务器是否需要百度地图 API 密钥?
- 是的,您需要在百度地图开放平台注册并创建服务器端 API 密钥,并启用'MCP (SSE)'服务以获得最佳性能。
- 是否有使用限制或速率限制?
- 某些高级功能如兴趣点提取需要额外权限。请参阅百度地图文档了解具体的速率限制和定价详情。
mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。