Content
## Baidu Map MCP Server
Baidu Map MCP Server is an open-source, MCP-compliant Location-Based Service (LBS) solution that provides a comprehensive set of geospatial APIs and tools for developers and AI agents. As China's first map service provider 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.
### Typical Scenarios
- **Travel Planning Assistant**: Use `map_search_places`, `map_directions`, and `map_weather` to plan optimal routes, check weather, and recommend POIs.
- **Logistics and Delivery Optimization**: Use `map_directions_matrix` to calculate routes and durations for multiple origins and destinations.
- **POI Extraction**: Use `map_poi_extract` to extract POI information from user input or travel notes (requires advanced permissions).
### Tool Use Cases
1. `map_geocode`: Convert addresses to geographic coordinates.
- Example: "Convert '123 Main St, New York' to coordinates"
2. `map_reverse_geocode`: Get address, area, and POI information from coordinates.
- Example: "Get address and POI for coordinates (40.7128, -74.0060)"
3. `map_search_places`: Search for POIs by keyword, type, area, or radius.
- Example: "Search for restaurants near Times Square"
4. `map_place_details`: Get detailed information about a POI by its unique ID.
- Example: "Get details for POI with ID '1234567890'"
5. `map_directions_matrix`: Calculate routes and travel times for multiple origins and destinations.
- Example: "Calculate driving directions from New York to Los Angeles"
6. `map_directions`: Plan routes between two points (driving, walking, cycling, public transportation).
- Example: "Plan a walking route from Central Park to the Empire State Building"
7. `map_weather`: Query real-time and forecasted weather by area or coordinates.
- Example: "Get current weather for New York"
8. `map_ip_location`: Locate a city and coordinates by IP address.
- Example: "Locate IP address '8.8.8.8'"
9. `map_road_traffic`: Query real-time traffic conditions for a road or area.
- Example: "Get real-time traffic for Broadway, New York"
10. `map_poi_extract`: Extract POI information from free text (requires advanced permissions).
- Example: "Extract POI from 'I'm near the Eiffel Tower'"
## Features
- **MCP Compliance**: Seamlessly integrate with any MCP-compliant agent, LLM, or platform.
- **Rich LBS Capabilities**: Geocoding, reverse geocoding, POI search, route planning, weather, IP location, real-time traffic, and more.
- **Cross-Platform SDKs**: Official Python and TypeScript SDKs, simple CLI, and cloud deployment.
- **Enterprise-Grade Data**: Powered by Baidu Maps' authoritative and up-to-date geospatial data.
- **High Performance and Stability**: Recommended SSE (Server-Sent Events) access for low latency and high reliability.
- **Open-Source and Extensible**: MIT licensed, easy to customize and extend.