map_geocodeLABSCO SUMMARY
Location questions about China, answered against data that is actually current there.
The matrix call is the one that changes how an itinerary gets planned: travel times across many origin-destination pairs come back in one request, so an agent can order the stops rather than asking for each leg separately.
What it is
Baidu Maps' own location service exposed as tools: geocoding both ways, place search and detail, and route planning including travel-time matrices.
What you get
- An address turned into coordinates, and coordinates turned back into an address
- Points of interest searched by keyword and area
- Full detail for a specific place
- Route planning for driving, walking, cycling and transit
- A distance and travel-time matrix across several origins and destinations
- Weather, IP location and real-time traffic among the wider API set
Requirements
Python for the PyPI package mcp-server-baidu-maps, or Node for the npm package @baidumap/mcp-server-baidu-map. Both run locally over stdio, and those are the routes on this page. Baidu recommends its SSE connection for lower latency; its address and setup are on Baidu's SSE Quickstart (lbsyun.baidu.com/faq/api?title=mcpserver/quickstart), and the key needs the "MCP (SSE)" service enabled. Coverage and data are Baidu's, which is what makes it the right choice inside China.
Setup effort
One command plus a key — pip install mcp-server-baidu-maps, then supply credentials
USE CASES
Turning a written address into something you can put on a map
Geocode it to coordinates, or run it the other way when all you have is a latitude and longitude.
Finding somewhere to eat near where you will be
Search places around the area, then pull the detail on the one you pick.
Working out how to get between two places
Plan the route for the mode you are actually using — driving, walking, cycling or transit.
Ordering the stops on a day out
Get travel times across all the pairs at once and sequence the itinerary from the matrix.
10 tools
Listed in project docs. Your client may show a different list.
map_reverse_geocodemap_search_placesmap_place_detailsmap_directions_matrixmap_directionsmap_weathermap_ip_locationmap_road_trafficmap_poi_extractBEFORE YOU INSTALL
What to know first
Tools you get
10 tools named in the project's documentation.
Requires
- Python for the mcp-server-baidu-maps package, or Node.js with npx for @baidumap/mcp-server-baidu-map
- A Baidu Maps server-side API key (AK) — BAIDU_MAPS_API_KEY for the Python package, BAIDU_MAP_API_KEY for the npm one
Where it runs
All 3 documented clients run the server on your machine.
INSTALLATION
Connect your client
Server setup
pip install mcp-server-baidu-mapsMCP Clients
Claude Desktop, Cursor
{
"mcpServers": {
"baidu-maps": {
"command": "python",
"args": [
"-m",
"mcp_server_baidu_maps"
],
"env": {
"BAIDU_MAPS_API_KEY": "<YOUR_API_KEY>"
}
}
}
}Any MCP client
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": [
"-y",
"@baidumap/mcp-server-baidu-map"
],
"env": {
"BAIDU_MAP_API_KEY": "<YOUR_API_KEY>"
}
}
}
}