Connector guide1-minute read5 MCP toolsEN · DE · IT

德意志铁路 MCP 服务器 — AI 代理的火车时刻表

通过 MCP 从任何 AI 代理搜索德意志铁路时刻表、出发、到达和旅程。AnythingMCP 中的免费 DB Fahrplan 适配器 — 无需 API 密钥。

HCBy HelpCode teamUpdated 1 min read Open source on GitHub

No credit card · 7-day trial · Self-host alternative available

Deutsche Bahn Fahrplan

MCP connector

Deutsche Bahn Fahrplan

Query the Deutsche Bahn (DB) timetable directly via bahn.de's own JSON API. Search stations, look up real-time departures/arrivals, and plan journeys between any two DB stops — same backend that powers the bahn.de website.

Tools

5

Region

DE

Category

Transport

Authentication

Public API

Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Source-available BSL-1.1
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

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.

Start free trial

Summary

通过 MCP 从任何 AI 代理搜索德意志铁路时刻表、出发、到达和旅程。AnythingMCP 中的免费 DB Fahrplan 适配器 — 无需 API 密钥。

试试这样问

Deutsche Bahn Fahrplan 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Deutsche Bahn Fahrplan · 通过 MCP 实时
分享
Opus 4.7

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

下一步

这份指南对你有帮助吗?

Ready to ship

Your Deutsche agent is one click away.

Install the connector, paste the key, prompt any MCP client. Free for 7 days, no credit card.

相关指南

connectors

德国铁路 AI 旅行助手 — 实时列车、延误、最佳衔接

从 Claude、ChatGPT 或任何 AI 助手规划、监控和救援你的 DB 旅程。实时到达、延误警报、连接断裂时自动改道。DB MCP 连接器把时刻表变成对话。

connectors

如何将 Deutsche Bahn Fahrplan 连接到 ChatGPT — 通过 MCP

Query the Deutsche Bahn (DB) timetable via the community-maintained v6.db.transport.rest proxy over the official HAFAS API. Search stations, look up departures/arrivals in real time, and plan journeys between any two DB stops.

connectors

如何将 Deutsche Bahn Fahrplan 连接到 Claude — 通过 MCP

Query the Deutsche Bahn (DB) timetable via the community-maintained v6.db.transport.rest proxy over the official HAFAS API. Search stations, look up departures/arrivals in real time, and plan journeys between any two DB stops.

connectors

如何将 Deutsche Bahn Fahrplan 连接到 Cursor — 通过 MCP

Query the Deutsche Bahn (DB) timetable via the community-maintained v6.db.transport.rest proxy over the official HAFAS API. Search stations, look up departures/arrivals in real time, and plan journeys between any two DB stops.

connectors

如何将 Deutsche Bahn Fahrplan 连接到 Gemini — 通过 MCP

Query the Deutsche Bahn (DB) timetable via the community-maintained v6.db.transport.rest proxy over the official HAFAS API. Search stations, look up departures/arrivals in real time, and plan journeys between any two DB stops.

connectors

Clockify 接入 MCP — 从任意 AI 代理驱动 Clockify

Manage Clockify (time tracking, projects, tasks, clients, tags, workspace users, reports) from any AI agent. 18 tools, X-Api-Key auth.