Official Baidu Maps MCP server for geocoding, POI search, route planning, weather and real-time traffic, available through Python, Node.js or a hosted endpoint.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add baidu-map -- npx -y @baidumap/mcp-server-baidu-map~/.codex/config.toml
[mcp_servers.baidu-map]
command = "npx"
args = ["-y", "@baidumap/mcp-server-baidu-map"]
# codex mcp add baidu-map -- npx -y @baidumap/mcp-server-baidu-map~/.cursor/mcp.json
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": [
"-y",
"@baidumap/mcp-server-baidu-map"
]
}
}
}.vscode/mcp.json
{
"servers": {
"baidu-map": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@baidumap/mcp-server-baidu-map"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": [
"-y",
"@baidumap/mcp-server-baidu-map"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": [
"-y",
"@baidumap/mcp-server-baidu-map"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": [
"-y",
"@baidumap/mcp-server-baidu-map"
]
}
}
}Remote
claude mcp add --transport http baidu-map 'https://mcp.map.baidu.com/mcp?ak=<YOUR_AK>'~/.codex/config.toml
[mcp_servers.baidu-map]
url = "https://mcp.map.baidu.com/mcp?ak=<YOUR_AK>"
# codex mcp add baidu-map --url 'https://mcp.map.baidu.com/mcp?ak=<YOUR_AK>'~/.cursor/mcp.json
{
"mcpServers": {
"baidu-map": {
"url": "https://mcp.map.baidu.com/mcp?ak=<YOUR_AK>"
}
}
}.vscode/mcp.json
{
"servers": {
"baidu-map": {
"type": "http",
"url": "https://mcp.map.baidu.com/mcp?ak=<YOUR_AK>"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"baidu-map": {
"httpUrl": "https://mcp.map.baidu.com/mcp?ak=<YOUR_AK>"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.map.baidu.com/mcp?ak=<YOUR_AK>"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"baidu-map": {
"url": "https://mcp.map.baidu.com/mcp?ak=<YOUR_AK>"
}
}
}