Baidu Map MCP Server
Baidu Maps' official MCP server: geocoding, place search, routes, weather and traffic, focused on China
Install
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": ["-y", "@baidumap/mcp-server-baidu-map"],
"env": {"BAIDU_MAP_API_KEY": "<YOUR_API_KEY>"}
}
}
}Node.js version.
This is third-party code. Review the repository files before installing.
What it does
The server gives the agent Baidu Maps geo services. It converts addresses to coordinates and back, searches places by keyword, type or radius, and fetches place details. It plans driving, walking, cycling and transit routes, computes route matrices for several points, and checks weather, traffic and IP-based location. Extracting places from free text needs extra permissions.
Who it is for. For developers of travel, delivery and logistics services operating in China.
Good fit when
- You need routes or place search in China
- You need delivery times between several points
- You need weather and traffic for trip planning
Not a fit when
- You need maps of Russia: Yandex Maps or 2GIS fit better
- You cannot register on a Chinese developer platform
Example request
Plan a transit route from the Forbidden City to the Temple of Heaven and tell me the weatherLimitations
Requires a server-side API key from the Baidu Maps platform; most docs are in Chinese. Data coverage targets China. Some features need extra permissions. The repository has not changed in over a year.
How to disable. Remove the baidu-map entry from your MCP client config.
MCP
- Transport
- stdio, sse
- Authentication
- API key
| Environment variables | |
|---|---|
| BAIDU_MAP_API_KEY required, secret | Baidu Maps server key for the Node.js version |
| BAIDU_MAPS_API_KEY secret | The same key for the Python version |
Security check
- Sends addresses and coordinates to an external API
- Uses an API key that may be billed
README in short
The README lists the server tools and explains how to get an API key. It offers PyPI and npm launch options, and the vendor recommends remote SSE access with a separate guide. Detailed docs and integrations with Chinese platforms are in the Chinese README. MIT licensed.
FAQ
Is there a Python version?
Yes, the mcp-server-baidu-maps package runs with python -m mcp_server_baidu_maps and reads BAIDU_MAPS_API_KEY.
Does it work outside China?
Place search is described as global, but data and service are built primarily for China.
Related
166 skills for scientific work: bioinformatics, cheminformatics, clinical data, geospatial analysis and 100+ databases
Google's open-source MCP server for databases: ready tools for Postgres, MySQL, BigQuery, Spanner and more, plus custom tools in tools.yaml
Official Hugging Face skills: Hub operations via the hf CLI, datasets, model training, Spaces, evals and deployment
A token-lean MCP server for PostgreSQL, MySQL, MariaDB, SQL Server and SQLite with a read-only mode