Chinese location-based services
## Baidu Maps MCP Server: China Location Intelligence The **Baidu Maps MCP Server** integrates China's leading mapping and location platform directly into Google Antigravity, enabling AI assistants to access geocoding, routing, place search, and navigation services optimized for the Chinese market. This integration is essential for applications serving users in mainland China where Google Maps is unavailable. ### Why Baidu Maps MCP? - **China-Optimized**: The only viable mapping solution for mainland China with accurate data, Chinese address parsing, and local POI coverage - **GCJ-02 Coordinate System**: Native support for China's required coordinate system with proper offset handling - **Rich POI Database**: Access millions of points of interest with Chinese categorization and local business information - **Traffic Intelligence**: Real-time traffic data, road conditions, and congestion predictions specific to Chinese cities - **Multi-Modal Routing**: Walking, driving, cycling, and public transit directions with China-specific considerations ### Key Features #### 1. Geocoding Services ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Geocode this Chinese address: 北京市朝阳区望京街道" }], tools=[{ "name": "baidu_geocode", "description": "Convert addresses to coordinates" }] ) ``` #### 2. Place Search ```python # Search for places in China response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Find the nearest hospitals to the Beijing CBD area with emergency services" }], tools=[{"name": "baidu_place_search", "description": "Search for places and POIs"}] ) ``` #### 3. Route Planning ```python # Calculate routes with traffic response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Plan a driving route from Shanghai Pudong Airport to The Bund, avoiding toll roads" }], tools=[{"name": "baidu_directions", "description": "Calculate routes and directions"}] ) ``` #### 4. Traffic Information ```python # Get real-time traffic data response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Check current traffic conditions on the Beijing Third Ring Road" }], tools=[{"name": "baidu_traffic", "description": "Access traffic information"}] ) ``` ### Configuration ```json { "mcpServers": { "baidu-map": { "command": "npx", "args": ["-y", "@anthropic/mcp-baidu-maps"], "env": { "BAIDU_MAP_AK": "your-baidu-access-key" } } } } ``` ### Use Cases **China Market Applications**: Build location-aware applications for the Chinese market with accurate mapping and local business data. **Logistics Optimization**: Plan delivery routes across Chinese cities with real-time traffic and road condition awareness. **Travel Applications**: Create China travel apps with attraction search, transit planning, and tourist service discovery. **Enterprise Location Services**: Integrate China-compliant location services for multinational applications with Chinese user bases. The Baidu Maps MCP Server provides essential location intelligence for the Chinese market, enabling developers to build applications that work seamlessly within China's unique mapping ecosystem.
{
"mcpServers": {
"baidu-map": {
"mcpServers": {
"baidu-map": {
"env": {
"BAIDU_MAP_API_KEY": "YOUR_API_KEY"
},
"args": [
"-y",
"baidu-map-mcp-server"
],
"command": "npx"
}
}
}
}
}