Baidu Map MCP Server Practice Guide

Written by
Iris Vance
Updated on:July-09th-2025
Recommendation

The first map service provider in China that is compatible with the MCP protocol, a practical guide for Baidu Map MCP Server.

Core content:
1. Baidu Map core API is fully compatible with the MCP protocol
2. Steps to create server-side AK and configuration files
3. Use windsurf editor to load and verify Baidu Map MCP Server

Yang Fangxian
Founder of 53AI/Most Valuable Expert of Tencent Cloud (TVP)
Last week, Baidu Maps Core API was fully compatible with the MCP protocol, making it the first map service provider in China to be compatible with the MCP protocol. The MCP tool list currently provided includes 8 core API interfaces and MCP protocol docking, covering reverse geocoding, location retrieval, route planning , etc.
Let's practice how to use Baidu Map MCP Server.
1. Create a server AK in the Baidu Map Open Platform console
Only through AK can you call Baidu Map API capabilities
2. Open windsurf editor
Add the following configuration to the configuration file. BAIDU_MAP_API_KEY is the AK for accessing the Baidu Map Open Platform API.
{ "mcpServers": { "baidu-map": { "command": "npx", "args": [ "-y", "@baidumap/mcp-server-baidu-map" ], "env": { "BAIDU_MAP_API_KEY": "xxx" } } }}
Restart windsurf, and the settings panel has successfully loaded Baidu Map MCP Server. You can see that there are 8 available MCP tools, click them to view details.
Next, you can ask questions to verify the use of Baidu mcp.