Baidu Map MCP Server is a fully MCP-compliant, open-source Location-Based Service (LBS) solution, providing a comprehensive suite of geospatial APIs and tools for developers and AI agents. As the first map service provider in China to support the Model Context Protocol (MCP), Baidu Map MCP Server bridges the gap between large language models (LLMs), AI agents, and real-world location data and services. 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.
Convert address to geographic coordinates.
Get address, region, and POI info from coordinates.
Search for global POIs by keyword, type, region, or within a radius.
Get detailed info for a POI by its unique ID.
Batch route planning for multiple origins/destinations (driving, walking, cycling).
Plan routes between two points (driving, walking, cycling, transit).
Query real-time and forecast weather by region or coordinates.
Locate city and coordinates by IP address.
Query real-time traffic conditions for roads or regions.
Extract POI info from free text (requires advanced permission).
{
"mcpServers": {
"baidu-map": {
"command": "npx",
"args": [
"-y",
"@baidumap/mcp-server-baidu-map"
],
"env": {
"BAIDU_MAP_API_KEY": "<YOUR_API_KEY>"
}
}
}
}