简介
专为香港优化的全球公交路线规划工具,支持MTR、巴士、电车、渡轮实时换乘,香港数据精准度媲美官方App,全球城市覆盖依赖Transitous开源数据。
原始描述
Plan public transit trips globally using Wheels Router (Hong Kong) and Transitous (worldwide)
中文使用说明 来自收录源
核心用法
wheels-router 是一款面向全球公共交通出行的 MCP 技能,通过双引擎架构实现本地化与国际化的路线规划服务。香港地区采用 Wheels Router 引擎,覆盖 MTR 地铁、巴士、电车、渡轮及步行五种交通模式,提供实时班次、精确票价、站台信息及换乘优惠(轉乘優惠)计算;全球其他地区则调用 Transitous 开源数据引擎,支持主要城市的公交换乘与步行指引。
用户通过 search_location 工具先进行地点检索获取坐标,再调用 plan_trip 完成路线规划。支持坐标对(lat,lon)、站点 ID(stop:ID)两种定位格式,可指定出发或到达时间,灵活筛选交通模式,最多返回 5 条备选方案。每个行程结果包含总时长、票价区间(港币)、分步导航及换乘细节,香港路线额外标注闸口编号与换乘折扣信息。
显著优点
- 双引擎精准覆盖:香港本地数据深度优化,支持平台级细节与实时优惠计算;全球数据依托 Transitous 社区维护,覆盖主流城市无盲区。
- 原生 MCP 架构:符合 OpenCode 规范,可与 Claude Desktop、Cursor、Windsurf 等主流 AI 编辑器无缝集成,通过标准工具调用实现自然语言交互。
- 隐私设计透明:纯文档型技能无本地代码执行,位置数据仅通过 HTTPS 加密传输至官方服务端,无明文密钥硬编码风险。
- 开发者友好:提供 mcporter 直连配置与多客户端部署示例,支持 mcporter CLI 快速调试,降低集成门槛。
潜在局限
- 全球覆盖不均衡:Transitous 数据在小城市或偏远地区可能存在缺失,实时性不及香港本地引擎。
- 功能边界明确:专注公共交通,不含网约车、共享单车、驾车导航等场景;票价预测仅限港币结算区域。
- 时间格式依赖:强制要求 ISO 8601 带时区格式,对终端用户输入容错性较低,需 Agent 层做格式转换兜底。
- 离线能力缺失:所有计算依赖云端 API,无本地缓存机制,网络中断时完全不可用。
适合人群
- 香港通勤者:需要精确掌握 MTR 闸口、换乘折扣、实时延误的本地用户。
- 国际旅客:前往东京、新加坡、伦敦等 Transitous 覆盖城市,需快速规划公交路线的游客。
- AI 工作流开发者:在 Claude、Cursor 等环境中构建出行助手、行程规划 Agent 的技术用户。
- 隐私敏感型用户:偏好纯文档 MCP、无本地代码执行、开源 MIT 许可证的安全意识群体。
使用风险
- 位置数据外传:搜索关键词与坐标必发送至 Wheels Router 服务器,虽经 TLS 加密,但仍存在服务端的留存与合规风险,建议避免输入家庭住址等高度敏感位置。
- 第三方服务依赖:API 可用性、费率策略、数据更新频率均由 Wheels Router 团队掌控,若服务端变更或停止运营,技能将失效。
- 实时数据偏差:Transitous 全球数据依赖各地 GTFS 源,更新延迟可能导致班次不准,关键行程需二次确认。
- 速率限制未明:文档提示注意 API 使用率但未公开具体配额,高频调用可能触发限流,生产环境建议实施调用缓存与退避策略。
技能正文
name: wheels-router description: Plan public transit trips globally using Wheels Router (Hong Kong) and Transitous (worldwide) license: MIT compatibility: opencode metadata: transport: mcp coverage: global specialty: hong-kong
What I do
I help you plan public transit trips anywhere in the world by connecting to the Wheels Router MCP server.
For Hong Kong trips, I use the Wheels Router API which provides:
- Detailed routing with MTR, bus, tram, ferry, and walking
- Real-time schedules and accurate fares
- Platform information and exit details
- Interchange discounts (轉乘優惠) when available
For worldwide trips, I use the Transitous API which covers:
- Major cities globally with transit data
- Basic routing with public transportation
- Walking directions and transfers
When to use me
Use this skill whenever you need to:
- Plan a trip using public transportation
- Find the best route between two locations
- Check transit schedules and connections
- Get fare estimates for Hong Kong transit
- Search for locations before planning routes
Examples:
- "How do I get from Yau Tong MTR to Hong Kong Airport?"
- "What's the best way to Central from Causeway Bay right now?"
- "Plan a trip from Tokyo Station to Shibuya"
- "Search for locations near Victoria Park"
How to connect
If you're using mcporter (clawdbot, etc.)
Follow your mcporter skill, if you don't have one follow below:
Add to config/mcporter.json:
{
"mcpServers": {
"wheels-router": {
"description": "Plan public transit trips globally",
"baseUrl": "https://mcp.justusewheels.com/mcp"
}
}
}
Then call tools directly:
npx mcporter call wheels-router.search_location query="Hong Kong Airport"
npx mcporter call wheels-router.plan_trip origin="22.28,114.24" destination="22.31,113.92"
For other MCP clients
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"wheels-router": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.justusewheels.com/mcp"]
}
}
}
Cursor/Windsurf/VS Code (.cursor/mcp.json or similar):
{
"mcpServers": {
"wheels-router": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.justusewheels.com/mcp"]
}
}
}
Available tools
search_location
Search for places before planning trips. Always use this first if you don't have exact coordinates.
Parameters:
query(required): Place name or address (e.g., "Hong Kong Airport", "Yau Tong MTR Exit A2")limit(optional): Number of results (1-10, default 5)
Example:
search_location({
query: "Hong Kong International Airport",
limit: 3
})
Returns:
display_name: Full addresslat,lon: Coordinates for use inplan_triptype,class: Location category
plan_trip
Plan a transit route between two points.
Parameters:
origin(required): Starting point as"lat,lon"or"stop:ID"destination(required): Ending point as"lat,lon"or"stop:ID"depart_at(optional): ISO 8601 departure time (e.g.,"2026-01-26T10:00:00+08:00")arrive_by(optional): ISO 8601 arrival deadlinemodes(optional): Comma-separated modes like"mtr,bus,ferry"(only specify if needed)max_results(optional): Limit number of route options (1-5)
Example:
plan_trip({
origin: "22.2836,114.2358",
destination: "22.3080,113.9185",
depart_at: "2026-01-26T14:30:00+08:00",
max_results: 3
})
Returns:
plans: Array of route optionsduration_seconds: Total trip timefares_min,fares_max: Fare range in HKD (Hong Kong only)legs: Step-by-step directionstype: "walk", "transit", "wait", "station_transfer"- Transit legs include: route name, headsign, stops, platform info
- Walk legs include: distance, duration
Best practices
- Always search first: Use
search_locationto find coordinates before callingplan_trip - Use coordinates: Plan trips with
lat,lonformat for best results - Specify times: Include
depart_atorarrive_byfor accurate schedules - Check multiple options: Request 2-3 route options with
max_results - Understand fares:
fares_minandfares_maxshow the range—interchange discounts are noted separately when available
Important notes
- Interchange discounts (轉乘優惠): Only shown when explicitly present in Hong Kong routes, not all routes qualify
- Real-time data: Hong Kong routes use live schedules; worldwide coverage may vary
- Time zones: Use UTC or local timezone offsets (HKT is UTC+8)
- Coverage: Best for Hong Kong; worldwide coverage varies by city
Example workflow
// 1. Search for locations
const origins = await search_location({
query: "Yau Tong MTR Station",
limit: 1
});
const destinations = await search_location({
query: "Hong Kong Airport",
limit: 1
});
// 2. Plan the trip
const routes = await plan_trip({
origin: `${origins[0].lat},${origins[0].lon}`,
destination: `${destinations[0].lat},${destinations[0].lon}`,
depart_at: "2026-01-26T15:00:00+08:00",
max_results: 2
});
// 3. Present the best options to the user or present specific results but only if user asked specifically. By default just give them something like "[walk] > [3D] > [walk] > [Kwun Tong Line] > [walk]"- unless they ask for specifics.
Error handling
- "Could not find location": Try a more specific search query
- "No routes found": Check if coordinates are valid and in a covered area
- "Invalid time format": Ensure ISO 8601 format with timezone
- Rate limits: Be mindful of API usage, cache results when appropriate
Coverage areas
- ✅ Full coverage: Hong Kong (MTR, bus, tram, ferry, detailed fares)
- ✅ Good coverage: Major global cities with Transitous data
- ⚠️ Limited coverage: Smaller cities may have incomplete transit data
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: