BVG MCP Server
Provides tools to search for locations, find nearby stops, get real-time departure and arrival information, plan journeys, and access trip or vehicle details using the BVG (Berlin Public Transport) API.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BVG MCP ServerHow do I get from Alexanderplatz to Potsdamer Platz?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: hafasmcp
Installation
Clone the repository:
git clone <repository-url>
cd mcp-bvgInstall dependencies:
npm installBuild the project:
npm run buildUsage
As an MCP Server
The server communicates via stdio and can be used with any MCP-compatible client.
npm startConfiguration 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:
Open the project folder in VS Code
Use
Cmd+Shift+P→ "Tasks: Run Task" to access build tasksUse
F5to debug the MCP serverThe 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 BerlinFind Nearby Stops
Find stops near coordinates 52.5200,13.4050 (Brandenburg Gate)Get Departures
Get the next departures from Alexanderplatz stationPlan a Journey
Plan a journey from Alexanderplatz to Potsdamer PlatzAPI Reference
The server uses the BVG REST API v6: https://v6.bvg.transport.rest/api.html
Development
Scripts
npm run build: Compile TypeScript to JavaScriptnpm run dev: Watch mode for developmentnpm start: Start the MCP servernpm test: Run example testsnpm 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.tsLicense
MIT License
MIT License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityDmaintenanceMCP server for querying German public transport information, including station search, live departures/arrivals, and journey planning.Last updated5
- Flicense-qualityDmaintenanceMCP server for real-time German public transport data (HAFAS/VBN network). Enables querying departures, arrivals, journeys, and nearby stops using natural language.Last updated
- Flicense-qualityDmaintenanceA simple MCP server to call RMV APIs for nearby stations and departure boards.Last updated
- Flicense-qualityDmaintenanceMCP server for querying French railway services (SNCF) via the Navitia API, enabling station search, journey planning, and departure board retrieval.Last updated
Related MCP Connectors
Geo-based flight search MCP server. Find more flights between any two places on earth
This MCP server provides seamless access to Malaysia's government open data, including datasets, w…
MCP server for live, sourced Brazilian public data from the official IBGE APIs.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/uniquename/mcp-bvg'
If you have feedback or need assistance with the MCP directory API, please join our Discord server