インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、Deutsche Bahn Fahrplan をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
公式HAFAS API上のコミュニティ管理のv6.db.transport.restプロキシ経由でDeutsche Bahn (DB) の時刻表を照会。駅を検索し、発着情報をリアルタイムで確認し、任意の2つのDB停車駅間の経路を計画可能。
こう聞いてみよう
Deutsche Bahn Fahrplan のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Deutsche Bahn Fahrplan をクリック、認証情報を貼り付け、MCP API キーを発行 — 完了です。Docker も
git cloneもローカルサーバーも不要。
Deutsche Bahn Fahrplan + Cursor
公式HAFAS API上のコミュニティ管理のv6.db.transport.restプロキシ経由でDeutsche Bahn (DB) の時刻表を照会。駅を検索し、発着情報をリアルタイムで確認し、任意の2つのDB停車駅間の経路を計画可能。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
(none — public API)
ステップ 1 — 認証情報を取得
db.transport.rest — a free, no-auth wrapper around Deutsche Bahn's HAFAS endpoints maintained by the public-transport community.
No authentication required, but the service is hosted best-effort — for production use you may want to self-host (see https://github.com/derhuerst/db-rest).
Typical workflow:
- Resolve a station name to a stop
idwithdb_search_locations - Call
db_get_departuresordb_get_arrivalswith that id - For trip planning, use
db_get_journeyswithfromandtostop ids
Time format: All times are ISO 8601 with timezone (e.g. 2026-04-21T08:30+02:00). If omitted, when defaults to now.
…(continued in the in-app connector instructions)
ステップ 2 — アダプターをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
ステップ 3 — Cursor にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Cursor は ~/.cursor/mcp.json から MCP サーバを読み込みます。次のエントリを追加してください:
{
"mcpServers": {
"anythingmcp": {
"url": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- AnythingMCP の MCP Servers → 対象のサーバー → API keys で MCP API key を取得。
- ファイルを保存し Cursor を再起動。
- Cursor → Settings → MCP を開き、
Deutsche Bahn Fahrplanが "Connected" として表示されることを確認。 - チャット開始 —
Deutsche Bahn Fahrplanのすべてのツールが呼び出し可能になります。
利用可能なツール
| Tool | What it does |
|---|---|
db_search_locations | Search for DB stops/stations, addresses, or points of interest by name |
db_get_stop | Retrieve details for a specific stop/station by its DB id, including name, location, station category, and products served (ICE, IC, RE, S, |
db_get_departures | List upcoming departures from a stop |
db_get_arrivals | List upcoming arrivals at a stop with origin, planned and actual time, platform, delay, and cancellation status |
db_get_journeys | Plan a journey between two stops |
FAQ
Cursor の Free プランでカスタム MCP サーバは使えますか? はい — Hobby/Pro/Business で利用可能です。
次のステップ
このガイドは役に立ちましたか?