关于 Openrouteservice
Openrouteservice 是面向地理路线与位置数据的 MCP 服务,适用于需要路线、行程时间或海拔查询的应用。工具涵盖导航、等时圈、道路匹配、地理编码等。
主要功能
- 01计算路线与距离矩阵
- 02生成行程等时圈
- 03将坐标匹配到道路
- 04查询点位和线路海拔
- 05通过地理编码搜索地点
适用场景
- 01规划不同出行方式的路线
- 02估算指定时间内可到达的区域
- 03将 GPS 坐标匹配到附近道路
MCP 相关
向 MCP 客户端提供 Openrouteservice 的路线、矩阵、等时圈、道路匹配、海拔和地理编码工具。可通过 Pipeworx 网关连接或在本地以 stdio 运行;需要 API 密钥。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://gateway.pipeworx.io/openrouteservice/mcpclaude mcp add --transport http pipeworx-io-openrouteservice https://gateway.pipeworx.io/openrouteservice/mcp{"mcpServers":{"pipeworx-io-openrouteservice":{"type":"http","url":"https://gateway.pipeworx.io/openrouteservice/mcp"}}}在 Cursor 中打开{"servers":{"pipeworx-io-openrouteservice":{"type":"http","url":"https://gateway.pipeworx.io/openrouteservice/mcp"}}}在 VS Code 中打开{"mcpServers":{"pipeworx-io-openrouteservice":{"type":"http","url":"https://gateway.pipeworx.io/openrouteservice/mcp"}}}{"mcpServers":{"pipeworx-io-openrouteservice":{"serverUrl":"https://gateway.pipeworx.io/openrouteservice/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
工具
详细介绍
@pipeworx/openrouteservice
Openrouteservice (ORS) MCP — 路线规划、矩阵、等时圈、吸附到道路、高程、兴趣点。免费版每天 2000 次请求。需要密钥。
属于 Pipeworx — 一个将 AI Agent 连接到 1683+ 个实时数据源的 MCP 网关。
身份验证
- 平台:
PLATFORM_ORS_KEY。自带密钥:?_apiKey=…。
工具
directions(coordinates, profile?, format?, instructions?)— 路线规划matrix(locations, profile?, sources?, destinations?, metrics?)— 距离/时长矩阵isochrones(locations, profile?, range, range_type?)— 驾车/步行等时圈snap(locations, profile?, radius?)— 吸附到最近的道路elevation_line(format_in, geometry)— 沿线高程elevation_point(format_in, geometry)— 点位高程geocode_search(text, sources?, layers?, size?, focus_lat?, focus_lon?)— Pelias 地理编码器
profile:driving-car(默认)| driving-hgv | cycling-regular | cycling-road | cycling-mountain | foot-walking | foot-hiking | wheelchair。
数据源
https://api.openrouteservice.org/v2/
快速开始
添加到 MCP 客户端(Claude Desktop、Cursor、Windsurf 等):
{
"mcpServers": {
"openrouteservice": {
"url": "https://gateway.pipeworx.io/openrouteservice/mcp"
}
}
}
此端点实际提供的内容
https://gateway.pipeworx.io/openrouteservice/mcp 上的 tools/list 会返回上表中的工具,以及 Pipeworx 共享元工具 — ask_pipeworx、
discover_tools、search_within、remember/recall,以及网关范围内的其他工具。因此,你看到的工具数量会多于此表中的数量:目前,单个工具包端点除了该工具包自身的工具外,还会列出大约 30 个共享工具。连接的 initialize 响应会说明确切范围,是当天情况的权威信息。
这是有意为之,并非意外的多路复用。元工具让范围受限的连接也能回答此工具包未涵盖的问题 — 通过可跨整个目录路由的 ask_pipeworx — 而无需添加第二个 MCP 服务。目前无法挂载不含这些元工具的工具包端点;如果额外的架构信息占用的上下文超过路由带来的价值,请连接一次完整网关,而不是连接多个工具包端点。
或者连接完整的 Pipeworx 网关,直接列出所有工具包的工具,而不只是此工具包的工具:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
两个 URL 都连接到同一个网关和同一批 1683+ 个数据源。唯一的区别是直接列出哪个工具包的工具;从任一端点都可以通过 ask_pipeworx 访问所有工具。
没有 MCP 客户端?通过 HTTP 调用
curl -X POST https://gateway.pipeworx.io/v1/tools/openrouteservice_directions \
-H 'Content-Type: application/json' \
-d '{"coordinates":[[8.681495,49.41461],[8.687872,49.420318]],"profile":"driving-car","instructions":true}'
首次调用无需账户。查看任意工具:GET https://gateway.pipeworx.io/v1/tools/openrouteservice_directions。查找工具:使用 {"query":"..."} 向 POST https://gateway.pipeworx.io/v1/tools/search_packs 发送请求。
独立运行(无需网关账户)
此软件包也可以作为本地 stdio MCP 服务运行 — 无需 Pipeworx 账户,也无需经过网关往返:
{
"mcpServers": {
"openrouteservice": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-openrouteservice"]
}
}
}
也可以直接运行,确认服务能够启动:
npx -y @pipeworx/mcp-openrouteservice
它通过 stdin/stdout 使用 MCP,并响应 initialize/tools/list/tools/call,仅提供此工具包的工具 — 不包含上述网关连接所添加的任何共享元工具。相同的数据源、相同的工具,不支持 ask_pipeworx 路由。
与 ask_pipeworx 搭配使用
你也可以用通俗英语提问,而不直接调用工具 — 在上面的工具包端点和完整网关上都能使用:
ask_pipeworx({ question: "your question about Openrouteservice data" })
网关会自动选择合适的工具并填写参数。
更多信息
许可证
MIT
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。