# Baidu Map MCP for AI Agents AI Agent Connect

> Baidu Map Web Service API MCP lets your AI agent handle location-based tasks across China. It handles geocoding, route planning, and POI searches directly from your chat. Whether you need to find specific coordinates for a Chinese address or calculate the best transit route between two cities, this Connector gives your agent the local data it needs to be useful.

## Overview
- **Category:** industry-titans
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_EKhbzruxx5J5FsWsbrubGiToLcG3rJLORg58gn35/ai-agent-connect
- **Tags:** lbs, routing, poi-search, geocoding, mapping, location-services

## Description

This Connector gives your AI agent a direct line to the primary mapping infrastructure in China. It turns complex tasks like geocoding, route planning, and point of interest discovery into a simple conversation. Instead of jumping between different portals to copy addresses or check transit times, you can just ask your agent to do the heavy lifting. It handles everything from converting a physical address into coordinates to figuring out the best driving path between two cities. You can use it to find local hotels, audit business areas, or even check user locations based on IP addresses. It's a huge time-saver for anyone who needs to navigate Chinese geography without the usual friction of manual data entry. Because it's hosted on Vinkius, you can connect it to your favorite tools and start getting accurate spatial data immediately. It's built for people who need reliable, real-time geographic intelligence in one unified source.

## Tools

### direction_driving
Get driving directions between two points. This is the main way to plan vehicle routes across the country.

### direction_riding
Get riding directions for bikes or scooters. This helps your agent plan short-distance urban travel.

### direction_transit
Get transit directions between two points. This helps your agent plan bus or subway routes in Chinese cities.

### direction_walking
Get walking directions between two points. This is useful for planning pedestrian paths for tourists.

### geocoding
Convert an address into precise latitude and longitude coordinates. This lets your agent find exact locations on a map.

### get_business_area
Get information about a specific business area. This helps you understand the layout of a neighborhood.

### get_suggestion
Get place suggestions based on a query. This helps your agent find the correct name for a business.

### ip_location
Get a physical location based on an IP address. This is useful for regional targeting and compliance.

### poi_search
Search for points of interest like hotels or restaurants. This helps your agent find specific types of places.

### reverse_geocoding
Convert coordinates into a human-readable address. This is useful when you have a map point but need the street name.

## Prompt Examples

**Prompt:** 
```
I need to find the coordinates for the 'Shanghai Tower' so I can put it in my report.
```

**Response:** 
```
I've found the coordinates for the Shanghai Tower. It's located at latitude 31.2339, longitude 121.5018. Would you like me to find any nearby hotels or restaurants for your report?
```

**Prompt:** 
```
What's the best way to get from the Beijing West Railway Station to the Forbidden City by bus?
```

**Response:** 
```
To get from Beijing West Railway Station to the Forbidden City by bus, you'll want to take the Line 2 or Line 4. The trip usually takes about 45 minutes. Would you like me to look up the specific bus stops or walking directions from the station?
```

**Prompt:** 
```
Are there any hotels near the coordinates 31.2304, 121.4737?
```

**Response:** 
```
I found several hotels near those coordinates in Shanghai, including:

* **The Langham**
* **The Westin Bund Center**
* **The Ritz-Carlton**

Would you like the specific addresses or contact details for any of these?
```

## Capabilities

### Convert addresses to coordinates
You turn a physical address into precise latitude and longitude coordinates.

### Plan driving and transit routes
Your agent calculates the best paths for cars, buses, or walking.

### Search for local businesses and hotels
You find specific points of interest like hotels or restaurants in any area.

### Find physical locations from IP addresses
You get the geographic location of a user based on their IP address.

### Get details on commercial zones
You pull information about local business areas and commercial surroundings.

## Use Cases

### Planning a delivery fleet
A logistics lead asks the agent to find the best driving routes between five warehouses in Shanghai using `direction_driving`.

### Market research
A researcher asks the agent to find all hotels near a specific coordinate to see how many are nearby using `poi_search`.

### Travel itinerary
A traveler wants to know how to get from a train station to a hotel using public transit, and the agent uses `direction_transit`.

### Data cleaning
Someone has a list of coordinates and needs to know the street names for a report, so they use `reverse_geocoding`.

## Benefits

- Skip the manual work of copying and pasting addresses by using `geocoding` to get coordinates instantly. This saves hours of data entry when you're building out a large list of locations.
- Plan accurate delivery routes with `direction_driving` that account for actual Chinese road networks. Your agent can provide real-world travel times for your logistics planning.
- Identify growth opportunities by using `poi_search` to see where hotels and restaurants are clustered. This gives you a clear picture of the local commercial landscape.
- Verify user regions automatically with `ip_location` to ensure your services are reaching the right audience. It helps with regional compliance and more accurate targeting.
- Get precise walking and transit paths using `direction_walking` and `direction_transit` for better travel planning. These tools help your agent provide clear instructions for tourists.
- Understand local commercial vibes by pulling data with `get_business_area` for market research. You can see what's happening in a specific neighborhood without leaving your workspace.

## How It Works

The bottom line is you get a direct line to the most reliable mapping data in China through your existing AI interface.

1. Subscribe to the Connector on Vinkius
2. Enter your Baidu Map Access Key and Secret Key
3. Ask your AI client to find routes or locations

## Frequently Asked Questions

**Does the Baidu Map MCP work for addresses outside of China?**
This Connector is specifically designed for the Chinese mapping infrastructure. While it might provide some data elsewhere, it is most accurate and reliable for locations within China.

**How does the Baidu Map MCP help with logistics?**
It allows your agent to pull real-time driving directions and verify addresses. This helps you plan delivery routes and verify locations without manual lookups.

**Can I use the Baidu Map MCP to find specific types of businesses?**
Yes, your agent can search for specific points of interest like hotels, restaurants, or other local businesses in any area you specify.

**Does the Baidu Map MCP support walking and transit directions?**
It does. Your agent can provide detailed paths for walking, public transit, and even riding, making it great for travel planning.

**How do I get the Baidu Map MCP to find my location using my IP?**
Your agent can use the IP location tool to identify a physical location based on an IP address, which is useful for regional targeting.

**Can the Baidu Map MCP help me plan a multi-stop trip?**
Absolutely. By using the routing tools, your agent can help you piece together a series of directions between multiple locations in China.

**Is the Baidu Map MCP good for market research?**
Yes, it's excellent for research. It lets you quickly find POI density and get information on local business areas to understand a market.

**How do I find my Baidu Map Access Key (AK)?**
Log in to the [Baidu Map Open Platform Console](https://lbsyun.baidu.com/apiconsole/key), create an application, and your AK will be displayed. Ensure the application type is 'Server' for use with this Connector.

**When do I need to provide a Secret Key (SK)?**
You only need to provide an SK if your Baidu Map application has 'SN verification' enabled in the settings. This server will automatically calculate the required signature (sn) for every request if the SK is provided.

**Does this work for international locations?**
Baidu Map specialized services are highly optimized for mainland China. While some international data exists, for global coverage outside of China, other Connectors like Google Maps or Mapbox might be more appropriate.