BVG MCP Server

BVG MCP Server

An MCP server for interacting with the Berlin Public Transport (BVG) API to search for locations and plan journeys. It provides real-time access to departures, arrivals, trip details, and vehicle tracking within Berlin's transit network.

Category
Visit Server

README

BVG MCP Server

A Model Context Protocol (MCP) server for interacting with the BVG (Berlin Public Transport) API. This server provides tools to search for locations, plan journeys, get real-time departures/arrivals, and more.

Features

This MCP server provides the following tools:

Location Search

  • bvg_locations_search: Search for stops, addresses, and points of interest
  • bvg_locations_nearby: Find nearby stops and POIs by coordinates

Stop Information

  • bvg_stop_details: Get detailed information about a specific stop
  • bvg_stop_departures: Get upcoming departures at a stop
  • bvg_stop_arrivals: Get upcoming arrivals at a stop

Journey Planning

  • bvg_journey_plan: Plan journeys from A to B using public transport

Trip and Vehicle Information

  • bvg_trip_details: Get detailed information about a specific trip
  • bvg_radar: Find vehicles in a geographic area with movement data

Installation

  1. Clone the repository:
git clone <repository-url>
cd mcp-bvg
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Usage

As an MCP Server

The server communicates via stdio and can be used with any MCP-compatible client.

npm start

Configuration for Claude Desktop

Add this to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "bvg-transport": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-bvg/build/index.js"]
    }
  }
}

Configuration for VS Code

This project includes VS Code configuration files in the .vscode directory:

  • Tasks: Build, watch, start server, and test examples
  • Launch configurations: Debug the MCP server and examples
  • Settings: TypeScript and editor preferences
  • MCP Config: Ready-to-use MCP server configuration

To use with VS Code:

  1. Open the project folder in VS Code
  2. Use Cmd+Shift+P → "Tasks: Run Task" to access build tasks
  3. Use F5 to debug the MCP server
  4. The MCP configuration is available in .vscode/mcp-config.json

Example Queries

Here are some example queries you can make:

Search for Locations

Search for "Alexanderplatz" in Berlin

Find Nearby Stops

Find stops near coordinates 52.5200,13.4050 (Brandenburg Gate)

Get Departures

Get the next departures from Alexanderplatz station

Plan a Journey

Plan a journey from Alexanderplatz to Potsdamer Platz

API Reference

The server uses the BVG REST API v6: https://v6.bvg.transport.rest/api.html

Development

Scripts

  • npm run build: Compile TypeScript to JavaScript
  • npm run dev: Watch mode for development
  • npm start: Start the MCP server
  • npm test: Run example tests
  • npm run clean: Clean build directory

Project Structure

src/
├── index.ts              # Main MCP server
├── types/
│   └── bvg.ts           # TypeScript types for BVG API
├── utils/
│   └── api.ts           # HTTP client and utilities
└── tools/               # MCP tool implementations
    ├── locations.ts
    ├── nearby.ts
    ├── stops.ts
    ├── journeys.ts
    └── additional.ts

License

MIT License

MIT License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured