MCP ExplorerExplorer

Berlin Transport Mcp

@harshil1712on 9 months ago
4 MIT
FreeCommunity
AI Systems
An MCP server for the Berlin Public Transport

Overview

What is Berlin Transport Mcp

berlin-transport-mcp is an MCP server that provides access to Berlin’s public transport data through the VBB (Verkehrsverbund Berlin-Brandenburg) API. It serves as a wrapper for the v6.vbb.transport.rest API.

Use cases

Use cases include mobile applications for commuters, web applications for travel planning, and integration into larger transportation systems to provide real-time data on public transport.

How to use

To use berlin-transport-mcp, you can call its available tools such as ‘search_stops’, ‘get_departures’, and ‘get_journeys’ by making requests with the required parameters. Example usage is provided in the README.

Key features

Key features include searching for public transport stops, retrieving upcoming departures for specific stops, and getting journey options between two stops. The server is designed to be easy to integrate and use.

Where to use

berlin-transport-mcp can be used in applications related to public transport, travel planning, and navigation services, particularly in the Berlin-Brandenburg area.

Content

Berlin Transport MCP Server

An MCP server that provides access to Berlin’s public transport data through the VBB (Verkehrsverbund Berlin-Brandenburg) API. This server wraps the v6.vbb.transport.rest API.

Available Tools

1. search_stops

Search for public transport stops in Berlin-Brandenburg.

Parameters:

  • query (string): Search query for stops

2. get_departures

Get upcoming departures for a specific stop.

Parameters:

  • stop_id (string): Stop ID to get departures for
  • results (number, optional): Number of results to return

3. get_journeys

Get journey options from one stop to another.

Parameters:

  • from (string): Origin stop ID
  • to (string): Destination stop ID
  • departure (string, optional): Departure time (e.g. “tomorrow 2pm”)
  • results (number, optional): Number of results to return

Connect Claude Desktop to your MCP server

You can also connect to your remote MCP server from local MCP clients, by using the mcp-remote proxy.

To connect to your MCP server from Claude Desktop, follow Anthropic’s Quickstart and within Claude Desktop go to Settings > Developer > Edit Config.

Update with this configuration:

Restart Claude and you should see the tools become available.

API Documentation

For more details about the underlying API, visit v6.vbb.transport.rest/getting-started.html.

Get started:

Deploy to Workers

This will deploy your MCP server to a URL like: remote-mcp-server-authless.<your-account>.workers.dev/sse

Alternatively, you can use the command line below to get the remote MCP Server created on your local machine:

npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

Customizing your MCP Server

To add your own tools to the MCP server, define each tool inside the init() method of src/index.ts using this.server.tool(...).

Connect to Cloudflare AI Playground

You can connect to your MCP server from the Cloudflare AI Playground, which is a remote MCP client:

  1. Go to https://playground.ai.cloudflare.com/
  2. Enter your deployed MCP server URL (remote-mcp-server-authless.<your-account>.workers.dev/sse)
  3. You can now use your MCP tools directly from the playground!

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers