PD

paulvonberg/db-mcp-server

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

23 stars 4 forks 품질 62 트렌드 11NOASSERTION

Deutsche Bahn (DB) 및 독일어 이동식 API에 대한 통합 액세스를 제공하는 포괄적 인 Model Context Protocol (MCP) 서버.

개요

Deutsche Bahn (DB) 및 독일어 이동식 API에 대한 통합 액세스를 제공하는 포괄적 인 Model Context Protocol (MCP) 서버. Python, FastAPI 및 Claude Desktop 및 기타 MCP 클라이언트와 원활한 통합을 위한 FastMCP로 내장. 서버는 로컬 및 클라우드 배포를 준비합니다. MCP 서버를 실행하면 MCP 클라이언트에 URL을 추가하여 연결할 수 있습니다. [SERVER DECOMISSIONED - 당신의 OWN DEPLOYMENT AS DESCRIBED]. - : 역, 시간표, 실시간 붕괴 및 주차 - : 도구, 프롬프트 및 리소스에 대한 전체 지원 - : 보안 헤더, 제한 속도, 입력 유효성 - : 깨끗하고 유지 가능한 코드베이스 구조 - : Google Cloud에 대한 설계 Run deploy - : 종합 가이드 및 참조 자료 - Python 3.11+ - Deutsche Bahn API 자격 증명 (여기를 얻으십시오) - Google Cloud 계정 (배치 용) 2. 다음, DB API 자격으로 새로운 .env 파일을 편집합니다. 각 변수에 대한 자세한 내용은 "Configuration"섹션을 참조하십시오.

개요(AI 번역)

Deutsche Bahn (DB) 및 독일어 이동식 API에 대한 통합 액세스를 제공하는 포괄적 인 Model Context Protocol (MCP) 서버. Python, FastAPI 및 Claude Desktop 및 기타 MCP 클라이언트와 원활한 통합을 위한 FastMCP로 내장.

서버는 로컬 및 클라우드 배포를 준비합니다. MCP 서버를 실행하면 MCP 클라이언트에 URL을 추가하여 연결할 수 있습니다. [SERVER DECOMISSIONED - HOST YOUR OWN DEPLOYMENT AS DESCRIBED].

♨ 특징

  • ** Complete 철도 데이터 ** : 역, 시간표, 실시간 붕괴 및 주차
  • ** MCP Protocol**: 도구, 프롬프트 및 리소스에 대한 전체 지원
  • **️️ 생산 준비 ** : 보안 헤더, 제한 속도, 입력 유효성
  • **️️ 모듈 아키텍처 ** : 깨끗하고 유지 가능한 코디베이스 구조 -️ Cloud Native: Google Cloud Run 배포에 대한 설계
  • ** 풍부한 문서**: 종합 가이드 및 참조 자료

Quick 빠른 시작 ( 개발자를 위해 - 아래에 사용자 설명서)

# 필수품

  • 파이썬 3.11+
  • Deutsche Bahn API 자격 증명 (여기를 얻으십시오)
  • Google Cloud 계정 ( 배포용)

지역 개발

  1. ** 복제 및 설정 : **

  2. 환경 구성:

다음, 새로운`를 편집합니다.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Deutsche Bahn MCP Server

A comprehensive Model Context Protocol (MCP) server that provides unified access to Deutsche Bahn (DB) and German mobility APIs. Built with Python, FastAPI, and FastMCP for seamless integration with Claude Desktop and other MCP clients.

The server is ready for local and cloud deployment. A running MCP server is available to connect by adding the URL to your MCP Client: [SERVER DECOMISSIONED - HOST YOUR OWN DEPLOYMENT AS DESCRIBED].

🚀 Features

  • 🚄 Complete Railway Data: Stations, timetables, real-time disruptions, and parking
  • 🤖 MCP Protocol: Full support for tools, prompts, and resources
  • 🛡️ Production Ready: Security headers, rate limiting, input validation
  • 🏗️ Modular Architecture: Clean, maintainable codebase structure
  • ☁️ Cloud Native: Designed for Google Cloud Run deployment
  • 📚 Rich Documentation: Comprehensive guides and reference materials

📋 Quick Start (for developers - User instructions below)

Prerequisites

  • Python 3.11+
  • Deutsche Bahn API credentials (Get them here)
  • Google Cloud account (for deployment)

Local Development

  1. Clone and setup:

    git clone 
    cd deutsche-bahn-mcp-server
    python3 -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    pip install -r requirements.txt
    
  2. Configure environment:

    cp .env.example .env
    

    Next, edit the new .env file with your DB API credentials. See the “Configuration” section for details on each variable.

  3. Run the server:

    python main.py
    # Server available at http://localhost:8080
    

🎯 Live Server Usage Guide

[SERVER DECOMISSIONED - HOST YOUR OWN DEPLOYMENT AS DESCRIBED]

🖥️ Claude Desktop Setup

Step 1: Locate your configuration file

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\\Claude\\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

Step 2: Edit the configuration Open the file and add the Deutsche Bahn server:

{
  "mcpServers": {
    "deutschebahn": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://[SERVER DECOMISSIONED - Use your URL]/mcp",
        "--transport", "http-only"
      ]
    }
  }
}

Step 3: Restart Claude Desktop

  • Close Claude Desktop completely
  • Reopen the application
  • You should see “Deutsche Bahn MCP Server” in the MCP section

Step 4: Test the connection Ask Claude: “What train stations are in Berlin?”

🌐 Claude.ai Web Usage

Step 1: Start a conversation Go to claude.ai and begin a new conversation.

Step 2: Add the MCP Server Click on “Search and Tools > Add connectors > Manage connectors” Select “Add custom connector” Enter a name, e.g.: “Deutsche Bahn MCP Server”

GitHub에서 전체 README 보기

설치

npx -y mcp-remote https://[SERVER DECOMISSIONED - Use your URL
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "deutschebahn": { "command": "npx", "args": [ "-y", "mcp-remote", "https://[SERVER DECOMISSIONED - Use your URL]/mcp", "--transport", "http-only" ] } } }