内容
# 租车服务器
免费、无需登录的MCP服务器,用于发现和比较来自全球多个供应商的实时定价租车。
**端点:** `https://mcp.octotrip.app/rental-cars/mcp`
## 合作伙伴披露
OctoTrip 免费使用。预订链接包含合作伙伴属性 — OctoTrip 可能会赚取佣金,但不会增加您的额外费用。搜索结果按每个类别的价格排序,而不是按合作伙伴分成。
## 快速开始
将以下内容添加到您的 MCP 客户端配置中:
```json
{
"mcpServers": {
"octotrip-rental-cars": {
"url": "https://mcp.octotrip.app/rental-cars/mcp"
}
}
}
```
无需 API 密钥或登录。
## 工具:`search`
按位置、日期和偏好搜索租车。返回多个供应商的可用汽车,按类别(经济型、紧凑型、SUV 等)分组,显示每个类别中最便宜的选项。日期可以使用任何常见格式(YYYY-MM-DD、DD.MM.YYYY、“2026 年 8 月 1 日”等)。
### 参数
| 参数 | 类型 | 必需 | 默认值 | 描述 |
| --- | --- | --- | --- | --- |
| `location` | 字符串 | 是 | - | 取车城市、机场或地址 |
| `pickup_date` | 字符串 | 是 | - | 任意常见日期格式 |
| `dropoff_date` | 字符串 | 是 | - | 任意常见日期格式 |
| `dropoff_location` | 字符串 | 否 | 与取车地点相同 | 单程租车 |
| `pickup_time` | 字符串 | 否 | `"12:00"` | HH:MM 格式 |
| `dropoff_time` | 字符串 | 否 | `"12:00"` | HH:MM 格式 |
| `currency` | 字符串 | 否 | `"EUR"` | ISO 4217 货币代码 |
| `language` | 字符串 | 否 | `"zh"` | 2-letter 语言代码 |
| `age` | 整数 | 否 | `30` | 驾驶员年龄(年轻驾驶员可能会产生额外费用) |
### 响应格式
结果按 SIPP 汽车类别分组,每个类别显示 2 个最便宜的选项:
```json
{
"results": [
{
"name": "大众高尔夫",
"vendor": "Europcar",
"sipp": "CDMR",
"category": "紧凑型",
"price": 181.03,
"price_per_day": 45.26,
"pay_now": 181.03,
"pay_later": 0,
"currency": "EUR",
"transmission": "手动",
"passengers": 5,
"bags": 1,
"doors": 4,
"air_con": true,
"fuel_policy": "满油还车",
"mileage": "不限",
"free_cancellation": true,
"free_amendment": true,
"deposit": 800,
"excess": 950,
"included_protections": ["碰撞损害豁免", "盗窃保护"],
"image_url": "https://...",
"booking_url": "https://...",
"link_type": "affiliate",
"affiliate_disclosure": "此链接包含合作伙伴属性。OctoTrip 可能会赚取佣金,但不会增加您的额外费用。"
}
],
"total": 23,
"total_available": 379,
"rental_days": 4,
"pickup_location_resolved": "慕尼黑国际机场",
"dropoff_location_resolved": "慕尼黑国际机场",
"query": { ... }
}
```
### 错误响应
服务器返回结构化错误,并提供建议:
- **`location_not_found`** -- 无法解析位置。请尝试更具体的名称或机场。
- **`invalid_date`** -- 日期格式无法识别。请使用 YYYY-MM-DD、DD.MM.YYYY 或类似格式。
- **`no_results`** -- 没有符合给定条件的汽车可用。请尝试不同的日期或附近的位置。
## 示例提示
- 在阿姆斯特丹斯希普霍尔机场为下周末找一辆便宜的租车。
- 比较慕尼黑机场 7 月 10-15 日可用的自动 SUV。
- 我需要一辆从 8 月 1-14 日在巴塞罗那的汽车,预算约为 30 欧元/天。
- 从柏林到汉堡的单程租车,周五取车,周一还车。
- 9 月份在伦敦希思罗机场租用经济型汽车一周的最便宜选择是什么?
## 与 Claude Desktop 结合使用
将以下内容添加到 `claude_desktop_config.json`:
```json
{
"mcpServers": {
"octotrip-rental-cars": {
"url": "https://mcp.octotrip.app/rental-cars/mcp"
}
}
}
```
## 与 Cursor / Windsurf 结合使用
将以下内容添加到您的 MCP 设置中:
```json
{
"mcpServers": {
"octotrip-rental-cars": {
"url": "https://mcp.octotrip.app/rental-cars/mcp"
}
}
}
```
## 与 Cline 结合使用
将以下内容添加到您的 Cline MCP 设置中:
```json
{
"mcpServers": {
"octotrip-rental-cars": {
"url": "https://mcp.octotrip.app/rental-cars/mcp"
}
}
}
```
## 与 LobeHub 结合使用
[](https://lobehub.com/mcp/octotrip-rental-cars)
## 与 OpenClaw 结合使用
```bash
openclaw plugins install clawhub:@xltnapps/octotrip-rental-cars
```
## 与 Smithery 结合使用
通过 [Smithery](https://smithery.ai/servers/xltnapps/octotrip-rental-cars) 安装:
```bash
npx -y @smithery/cli install xltnapps/octotrip-rental-cars --client claude
```
## 与 Hermes Agent 结合使用
```bash
hermes mcp add octotrip-rental-cars --url https://mcp.octotrip.app/rental-cars/mcp
hermes mcp test octotrip-rental-cars
```
或添加到 `~/.hermes/config.yaml`:
```yaml
mcp_servers:
octotrip_rental_cars:
url: "https://mcp.octotrip.app/rental-cars/mcp"
```
## 隐私
本服务器不存储、记录或跟踪任何用户数据。查询会转发到供应商 API,结果直接返回。详情请参见 [PRIVACY.md](PRIVACY.md)。
## 安全
报告漏洞请参见 [SECURITY.md](SECURITY.md)。
## 许可证
MIT