柏林交通 VBB
HTTP-SSE通过VBB API访问柏林公共交通数据
通过VBB API访问柏林公共交通数据
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.
Search for public transport stops in Berlin-Brandenburg.
Parameters:
query
(string): Search query for stopsGet upcoming departures for a specific stop.
Parameters:
stop_id
(string): Stop ID to get departures forresults
(number, optional): Number of results to returnGet journey options from one stop to another.
Parameters:
from
(string): Origin stop IDto
(string): Destination stop IDdeparture
(string, optional): Departure time (e.g. "tomorrow 2pm")results
(number, optional): Number of results to returnYou 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:
{ "mcpServers": { "calculator": { "command": "npx", "args": [ "mcp-remote", "https://berlin-transport.mcp-tools.app/sse" // or if local http://localhost:8787/sse ] } } }
Restart Claude and you should see the tools become available.
For more details about the underlying API, visit v6.vbb.transport.rest/getting-started.html.
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
To add your own tools to the MCP server, define each tool inside the init()
method of src/index.ts
using this.server.tool(...)
.
You can connect to your MCP server from the Cloudflare AI Playground, which is a remote MCP client:
remote-mcp-server-authless.<your-account>.workers.dev/sse
)