TravelMind MCP Server
# TravelMind MCP Server
TravelMind (差旅 + 报销 + AI Agent 一体化) 的官方 MCP (Model Context Protocol) server。
让任意 MCP 兼容客户端(Claude Desktop / Cursor / WorkBuddy / 等)直接调用中国境内的差旅核心能力:地理编码、POI 搜索、周边搜索和反向地理编码。
## Features
4 个核心 Tools,全部由高德开放 API 提供实时数据:
| Tool | Description | API |
|---|---|---|
| `geocode` | 地址 → 经纬度 (城市/地址解析) | `/v3/geocode/geo` |
| `regeocode` | 经纬度 → 行政区 + POI (逆地理编码) | `/v3/geocode/regeo` |
| `text_search` | 关键词搜 POI (酒店/餐厅/景点) | `/v3/place/text` |
| `around_search` | 周边搜 POI (坐标 + radius) | `/v3/place/around` |
## Quick Start
### Prerequisites
- Node.js >= 18
- 高德开放平台 API Key: https://lbs.amap.com/dev/key/app
### Install
```bash
git clone https://github.com/gcszkjpzzv-beep/TravelMind_MCP.git
cd TravelMind_MCP
npm install
```
### Configure
```bash
export AMAP_API_KEY="your-amap-api-key"
```
### Run
```bash
node index.js
```
### Use in Claude Desktop / Cursor
```json
{
"mcpServers": {
"travelmind": {
"command": "node",
"args": ["/path/to/TravelMind_MCP/index.js"],
"env": { "AMAP_API_KEY": "your-key" }
}
}
}
```
## Tools Reference
### geocode
```json
{
"address": "北京市朝阳区望京 SOHO",
"city": "北京"
}
```
Returns `{ location: "lng,lat", formatted_address, ... }`.
### regeocode
```json
{ "location": "116.481,39.990" }
```
Returns `{ formatted_address, addressComponent: { province, city, district, ... } }`.
### text_search
```json
{
"keywords": "希尔顿酒店",
"city": "北京",
"types": "住宿"
}
```
Returns `{ pois: [{ id, name, address, location, ... }] }`.
### around_search
```json
{
"keywords": "餐厅",
"location": "116.481,39.990",
"radius": "1000"
}
```
Returns `{ pois: [...] }` within radius.
## About TravelMind
- Official site: https://www.trvaelmind.online
- ICP: 浙ICP备2026021219号
## License
MIT
TDQS
Scored across 4 tools
All four tools have clearly distinct purposes: geocode converts address to coordinates, regeocode does the reverse, text_search searches POIs by keyword in a city, and around_search finds POIs near a coordinate. No overlap or ambiguity.
All tool names follow a consistent snake_case pattern with descriptive verbs (geocode, regeocode, text_search, around_search). The use of 'regeocode' as a prefix variant is coherent within the domain.
The server has 4 tools, which is perfectly scoped for a geocoding and POI search service. Each tool covers a fundamental operation without being excessive or insufficient.
The tool set covers forward and reverse geocoding as well as two common POI search modes (keyword and proximity). A minor gap is the lack of a tool to retrieve details for a specific POI, but the existing tools still provide useful results.