Skip the install. Get this working in under 2 minutes.
Start a free trial on cloud.anythingmcp.com, add the Deutsche Bahn Fahrplan in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.
Summary
通过 MCP 从任何 AI 代理搜索德意志铁路时刻表、出发、到达和旅程。AnythingMCP 中的免费 DB Fahrplan 适配器 — 无需 API 密钥。
试试这样问
Deutsche Bahn Fahrplan 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
使用 AI 代理查询德意志铁路时刻表
德意志铁路(DB)运营着德国的国家铁路网络以及大部分区域和 S-Bahn 服务。AnythingMCP 封装了社区维护的 v6.db.transport.rest 代理,基于 DB 的 HAFAS API,使你的 AI 代理能够解析车站、查找实时出发、规划旅程并提供实时延误信息。
使用内置适配器快速设置
德意志铁路适配器随 AnythingMCP 一起提供。该端点是免费的,无需身份验证。
第一步:部署 AnythingMCP
git clone https://github.com/HelpCode-ai/anythingmcp.git
cd anythingmcp && docker compose up -d
第二步:导入适配器
打开 http://localhost:3000/connectors/store,找到德意志铁路 Fahrplan,然后点击 导入。无需凭据。
第三步:连接到你的 AI 代理
{
"mcpServers": {
"db": {
"url": "http://localhost:4000/mcp"
}
}
}
可用工具
| 工具 | 描述 |
|---|---|
db_search_locations | 将车站、地址或 POI 名称解析为停靠点 ID |
db_get_stop | 停靠点详情 — 名称、位置、提供的产品(ICE/IC/RE/S) |
db_get_departures | 实时出发信息,包括线路、目的地、延误、站台 |
db_get_arrivals | 实时到达信息,包括出发地、延误、站台 |
db_get_journeys | 规划两个停靠点之间的旅程,包括换乘和时间 |
AI 代理用例
- “从弗赖堡 Hbf 到柏林的下一班 ICE 出发时间是什么?”
- “规划从慕尼黑到汉堡的旅程,明天早上 8 点出发”
- “法兰克福(主)Hbf 现在有延误吗?”
- “今天下午我如何从斯图加特 Hbf 乘火车到海德堡?”
生产注意事项
v6.db.transport.rest 是一个公共的、社区维护的代理,提供最佳努力的托管。对于关键任务集成,请考虑自托管 db-rest — 导入后可以覆盖适配器的 baseUrl。
下一步
- OpenPLZ MCP 指南 — 德国邮政编码和地方
- HERE 地理编码 MCP 指南 — 地址验证和路由
这份指南对你有帮助吗?