Baidu MapsSAFE
Baidu Map MCP Server
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
中文| English
[](https://github.com/baidu-maps/mcp) [](LICENSE) [](https://pypi.org/project/mcp-server-baidu-maps/) [](https://www.npmjs.com/package/@baidumap/mcp-server-baidu-map)
🚀 Introduction
Baidu Map MCP Server is a fully MCP-compliant, open-source Location-Based Service (LBS) solution, providing a comprehensive suite of geospatial APIs and tools for developers and AI agents. As the first map service provider in China to support the Model Context Protocol (MCP), Baidu Map MCP Server bridges the gap between large language models (LLMs), AI agents, and real-world location data and services.
With Baidu Map MCP Server, you can easily empower your applications, LLMs, and agents with advanced mapping, geocoding, POI search, route planning, weather, traffic, and more — all via standardized, developer-friendly MCP interfaces.
Key Features:
- Full MCP Protocol Support: Seamless integration with any MCP-compliant agent, LLM, or platform.
- Rich LBS Capabilities: Geocoding, reverse geocoding, POI search, route planning (driving, walking, cycling, transit), weather, IP location, real-time traffic, and more.
- Cross-Platform SDKs: Official Python and TypeScript SDKs, easy CLI and cloud deployment.
- Enterprise-Grade Data: Powered by Baidu Maps' authoritative, up-to-date geospatial data.
- High Performance & Stability: Recommended SSE (Server-Sent Events) access for low latency and high reliability.
- **Open
234a07e200f3OBSERVED · 2026-09-30Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add mcp-server-baidu-map --env BAIDU_MAPS_API_KEY=${BAIDU_MAPS_API_KEY} --env BAIDU_MAP_API_KEY=${BAIDU_MAP_API_KEY} -- npx -y @baidumap/[email protected]{
"mcpServers": {
"mcp-server-baidu-map": {
"command": "npx",
"args": [
"-y",
"@baidumap/[email protected]"
],
"env": {
"BAIDU_MAPS_API_KEY": "${BAIDU_MAPS_API_KEY}",
"BAIDU_MAP_API_KEY": "${BAIDU_MAP_API_KEY}"
}
}
}
}Exposed tools (11)
11 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
map_directions | read | 路线规划服务, 计算出发地到目的地的距离、路线用时、路线方案 |
map_directions_matrix | read | 批量算路服务: 根据起点和终点坐标计算路线规划距离和行驶时间. |
map_distance_matrix | read | 计算多个出发地和目的地的距离和路线用时 |
map_geocode | read | 地理编码服务 |
map_ip_location | read | 通过IP地址获取位置信息 |
map_place_details | read | 地点详情检索服务 |
map_poi_extract | read | POI智能标注 |
map_reverse_geocode | read | 全球逆地理编码 |
map_road_traffic | read | 根据城市和道路名称查询具体道路的实时拥堵评价和拥堵路段、拥堵距离、拥堵趋势等信息 |
map_search_places | read | 地点检索服务(包括城市检索、圆形区域检索、多边形区域检索) |
map_weather | read | 通过行政区划代码或者经纬度坐标获取实时天气信息和未来5天天气预报 |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (5 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (1)
@types/node-fetch, node-fetch, shx, typescript
Gates applied: no_behavioural_pass.
234a07e200f3full audit observations/trust-audit/mcp-server/baidu-maps__baidu-maps.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-30 | 234a07e200f3 | SAFE | B | 89 | first audit |
Questions
What is the Baidu Maps MCP server?
Baidu Map MCP Server
What tools does Baidu Maps expose?
11 in total: 11 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Baidu Maps safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Baidu Maps need?
It reads BAIDU_MAPS_API_KEY and BAIDU_MAP_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Baidu Maps run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @baidumap/mcp-server-baidu-map at 1.0.3.
How current is this page?
The grade is for one exact copy of the source (234a07e200f3), read on 2026-09-30. The repository is watched and re-audited when it changes.