# Tencent Map LBS API MCP for AI Agents AI Agent Connect

> Tencent Map LBS API MCP connects your AI client to China's leading mapping infrastructure. It lets your agent handle geocoding, route planning, and POI discovery for WeChat Miniapps and regional logistics. Stop jumping between technical consoles to get accurate location data across Chinese cities.

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

## Description

Imagine you're trying to figure out the best way to get a delivery truck from a warehouse in Shenzhen to a specific street corner. Usually, that means opening a separate mapping tool, copy-pasting addresses, and squinting at route options. With this Connector, you just tell your agent what you need. It handles the heavy lifting of converting those addresses into precise coordinates and figuring out the driving time instantly. It's built for anyone working within the WeChat ecosystem who needs reliable geographic data without the headache of manual API calls. You can ask about local restaurants, check if a specific IP address is actually in the region you think it is, or get a list of administrative districts for a market report. It turns a complex mapping workflow into a simple conversation. It's one of the reasons the Vinkius catalog is so useful for developers who need to bridge the gap between their AI and specialized regional services.

## Tools

### direction_driving
Get driving directions. This tool calculates the best routes and estimated travel times between two points.

### direction_transit
Get transit directions. Find the best public transportation routes for moving between locations.

### direction_walking
Get walking directions. Use this to get step-by-step paths for pedestrians.

### geocoding
Convert address to coordinates. Turn a written street address into precise latitude and longitude.

### get_district_list
Get administrative districts. Pull a full list of official districts across China for regional sorting.

### ip_location
Get location by IP. Identify the geographic location of a user based on their IP address.

### poi_search
Search for Points of Interest. Find specific types of businesses, landmarks, or shops in a set area.

### poi_suggestion
Get place suggestions. Offer a list of suggested locations based on partial user input.

### reverse_geocoding
Convert coordinates to address. Turn a set of coordinates back into a readable street address.

### direction_bicycling
Get bicycling directions. Use this to find the most efficient paths for bike deliveries or travel.

## Prompt Examples

**Prompt:** 
```
Where is the nearest coffee shop to the Shenzhen Science Park?
```

**Response:** 
```
I've checked the area for you. Here are the top 3 coffee shops within 500 meters:

| Name | Distance | Rating |
| :--- | :--- | :--- |
| Luckin Coffee | 200m | 4.5 |
| Starbucks | 450m | 4.2 |
| Moka | 300m | 4.0 |

Would you like the exact address for any of these?
```

**Prompt:** 
```
How long does it take to drive from the airport to the city center?
```

**Response:** 
```
The estimated driving time from the airport to the city center is approximately 35 minutes depending on traffic. I can provide a turn-by-turn breakdown if you'd like.
```

**Prompt:** 
```
Give me the coordinates for the main office in Shanghai.
```

**Response:** 
```
I've geocoded that for you. The main office is located at:

- **Latitude:** 31.2304 
- **Longitude:** 121.4737 

Do you need me to find a route to this location?
```

## Capabilities

### Convert addresses to coordinates
Turn physical street addresses into precise latitude and longitude values.

### Get multi-modal directions
Find the best paths for driving, walking, bicycling, or public transit.

### Find local businesses
Search for restaurants, hotels, and other points of interest in specific areas.

### Identify user locations
Determine the geographic location of a user based on their IP address.

### List administrative districts
Pull a complete list of administrative districts across China.

### Get place suggestions
Receive a list of suggested locations based on partial user input.

### Convert coordinates to addresses
Turn a set of coordinates back into a readable street address.

## Use Cases

### Verifying a user's address
A developer needs to know if a user's address is valid. They ask the agent to find the coordinates for a street in Shanghai and check which district it belongs to.

### Optimizing bike deliveries
A logistics manager needs to find the fastest bike route. They ask the agent to find the best path for a bicycle between two points in a city.

### Mapping retail density
A researcher wants to find coffee shops in a specific city. They ask the agent to find coffee shops within a 1km radius of a landmark.

### Auditing regional web traffic
A marketing team wants to see where their web traffic is coming from. They provide a list of IPs to the agent to identify the geographic locations of their users.

## Benefits

- Stop manually copying addresses into a map. You can get coordinates instantly via chat for any street in China.
- Plan multi-modal trips faster. Pull driving, walking, or transit results in one go to see the best options.
- Audit your user base easily. Identify where your traffic is actually coming from without extra tools.
- Find local businesses faster. Search for hotels or shops in specific areas for your research projects.
- Simplify regional data. Pull every district in China to help with easier categorization and reporting.
- Improve app UX. Help your users find the right places with fewer clicks using auto-suggestions.

## How It Works

The bottom line is you get instant access to China's most accurate mapping data through a simple chat interface.

1. Subscribe to this Connector on Vinkius and get your API keys.
2. Add your Tencent Map API Key and Secret Key to your AI client settings.
3. Ask your agent to find a location or plan a route.

## Frequently Asked Questions

**What can I do with the Tencent Map LBS API MCP?**
You can use it to perform geocoding, get driving or transit directions, find local businesses, and identify user locations by IP address.

**Does this work for navigation in China?**
Yes, it provides accurate routing for driving, walking, bicycling, and public transit across Chinese cities.

**Can I use this for my WeChat Miniapp?**
It's perfect for that because it uses the same underlying infrastructure that powers many WeChat-integrated services.

**How do I get coordinates for a specific address?**
You can just ask your agent to find the coordinates for any address, and it will use the geocoding tool to give you the exact latitude and longitude.

**Can it find specific types of places?**
Yes, you can search for anything from hotels and restaurants to specific landmarks within a certain radius.

**How does it help with logistics?**
It helps you optimize delivery routes and verify addresses quickly, ensuring your drivers have the correct information without manual lookups.

**Is it good for market research?**
It's great for analyzing POI density, which helps you see where specific types of businesses are clustered in different regions.

**How do I find my Tencent Map API Key?**
Log in to the [Tencent Map Open Platform Console](https://lbs.qq.com/dev/console/key/manage), create an application, and your Key will be displayed. You can also configure the optional Secret Key (SK) in the key settings.

**When should I provide the Secret Key (SK)?**
Provide the SK if you have enabled 'Signature Verification' (sig) in your Tencent Map key settings. This server will automatically calculate the MD5 signature for every request if the SK is provided.

**Can I use this for international geocoding?**
Tencent Map is highly optimized for mainland China, Hong Kong, and Macau. While some international coverage exists, results outside these regions may be less detailed than local providers.