百度地图 MCP Server

Baidu Map MCP Server

Local serverstdioPython

What is the 百度地图 MCP server?

百度地图 MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Baidu Map MCP Server.

What you get

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.

What the assistant can call

Once 百度地图 is connected, these are the calls the assistant has available:

  • 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)

Setting it up

@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.

Configuration and credentials

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.

Choosing this one

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.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 10 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch 百度地图.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the 百度地图 mcp server does with a few real requests.

Available tools

ToolWhat it does
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 (driving, walking, cycling).
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).

How to install the 百度地图 MCP server

{
  "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.

Configuration

VariableDescriptionRequired
BAIDU_MAPS_API_KEYCredential the server authenticates with.Yes
BAIDU_MAP_API_KEYCredential the server authenticates with.Yes
YOUR_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use 百度地图 to map geocode.
  • Use 百度地图 to map reverse geocode.
  • Use 百度地图 to map search places.

Frequently asked questions

It connects 百度地图 to MCP-compatible AI assistants such as Claude and Cursor, exposing 10 tools (map_geocode, map_reverse_geocode, map_search_places, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with 百度地图 directly.