Baidu Map MCP Server
百度地图 MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Baidu Map MCP Server.
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.
Once 百度地图 is connected, these are the calls the assistant has available:
map_geocode — Convert address to geographic coordinatesmap_reverse_geocode — Get address, region, and POI info from coordinatesmap_search_places — Search for global POIs by keyword, type, region, or within a radiusmap_place_details — Get detailed info for a POI by its unique IDmap_directions_matrix — Batch route planning for multiple origins/destinations (driving, walking, cycling)map_directions — Plan routes between two points (driving, walking, cycling, transit)map_weather — Query real-time and forecast weather by region or coordinatesmap_ip_location — Locate city and coordinates by IP addressmap_road_traffic — Query real-time traffic conditions for roads or regionsmap_poi_extract — Extract POI info from free text (requires advanced permission)@baidumap/mcp-server-baidu-map on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
You will need 3 environment variables: BAIDU_MAPS_API_KEY, BAIDU_MAP_API_KEY, YOUR_API_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. 百度地图's toolset — map_geocode, map_reverse_geocode, map_search_places and 7 more — is a fair guide to whether it matches your workflow. It is maintained by baidu-maps; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| map_geocode | Convert address to geographic coordinates. |
| map_reverse_geocode | Get address, region, and POI info from coordinates. |
| map_search_places | Search for global POIs by keyword, type, region, or within a radius. |
| map_place_details | Get detailed info for a POI by its unique ID. |
| map_directions_matrix | Batch route planning for multiple origins/destinations (driving, walking, cycling). |
| map_directions | Plan routes between two points (driving, walking, cycling, transit). |
| map_weather | Query real-time and forecast weather by region or coordinates. |
| map_ip_location | Locate city and coordinates by IP address. |
| map_road_traffic | Query real-time traffic conditions for roads or regions. |
| map_poi_extract | Extract POI info from free text (requires advanced permission). |
{
"mcpServers": {
"baidu-maps": {
"command": "python",
"args": ["-m", "mcp_server_baidu_maps"],
"env": {
"BAIDU_MAPS_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| BAIDU_MAPS_API_KEY | Credential the server authenticates with. | Yes |
| BAIDU_MAP_API_KEY | Credential the server authenticates with. | Yes |
| YOUR_API_KEY | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.