Skip to main content
Glama

Berlin Transport MCP Server

by harshil1712

柏林传输 MCP 服务器

一个 MCP 服务器,通过 VBB(柏林-勃兰登堡交通协会)API 提供对柏林公共交通数据的访问。该服务器封装了v6.vbb.transport.rest API。

可用工具

1. 搜索停止点

搜索柏林-勃兰登堡的公共交通站点。

参数:

  • query (字符串):搜索站点的查询

2. 获取出发信息

获取特定站点即将出发的列车。

参数:

  • stop_id (字符串):获取出发站点的 ID
  • results (数字,可选):要返回的结果数

3. 获取旅程

获取从一站到另一站的旅程选项。

参数:

  • from (字符串):起始站 ID
  • to (字符串):目的地站点 ID
  • departure (字符串,可选):出发时间(例如“明天下午 2 点”)
  • results (数字,可选):要返回的结果数

将 Claude Desktop 连接到您的 MCP 服务器

您还可以使用mcp-remote 代理从本地 MCP 客户端连接到远程 MCP 服务器。

要从 Claude Desktop 连接到您的 MCP 服务器,请按照Anthropic 的快速入门,并在 Claude Desktop 中转到设置 > 开发人员 > 编辑配置。

使用此配置进行更新:

{ "mcpServers": { "calculator": { "command": "npx", "args": [ "mcp-remote", "https://berlin-transport.mcp-tools.app/sse" // or if local http://localhost:8787/sse ] } } }

重新启动 Claude,您就会看到工具可用。

API 文档

有关底层 API 的更多详细信息,请访问v6.vbb.transport.rest/getting-started.html

开始:

这会将您的 MCP 服务器部署到类似以下 URL: remote-mcp-server-authless.<your-account>.workers.dev/sse

或者,您可以使用下面的命令行在本地计算机上创建远程 MCP 服务器:

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

自定义您的 MCP 服务器

要将您自己的工具添加到 MCP 服务器,请在src/index.tsinit()方法中使用this.server.tool(...)定义每个工具。

连接到 Cloudflare AI Playground

您可以从 Cloudflare AI Playground(一个远程 MCP 客户端)连接到您的 MCP 服务器:

  1. 前往https://playground.ai.cloudflare.com/
  2. 输入您部署的 MCP 服务器 URL ( remote-mcp-server-authless.<your-account>.workers.dev/sse )
  3. 您现在可以直接从游乐场使用您的 MCP 工具!
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

通过 VBB API 提供对柏林公共交通数据的访问,使用户能够搜索站点、获取出发信息并规划柏林-勃兰登堡的旅程。

  1. 可用工具
    1. 搜索停止点
    2. 获取出发信息
    3. 获取旅程
  2. 将 Claude Desktop 连接到您的 MCP 服务器
    1. API 文档
      1. 开始:
        1. 自定义您的 MCP 服务器
          1. 连接到 Cloudflare AI Playground

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              Enables searching and retrieving detailed flight information using the Duffel API, supporting various flight types and flexible search parameters for efficient travel planning.
              Last updated -
              45
              Python
              MIT License
              • Apple
            • A
              security
              F
              license
              A
              quality
              Enables Large Language Models to access real-time data on Vilnius public transport stops and routes through the Model Context Protocol.
              Last updated -
              2
              1
              Python
            • -
              security
              A
              license
              -
              quality
              Provides access to Deutsche Bahn train timetables, station information, and schedule changes through Model Context Protocol tools and resources.
              Last updated -
              TypeScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              Provides access to Seoul public data including subway passenger statistics and cultural event information through a Model Context Protocol server.
              Last updated -
              2
              TypeScript
              MIT License

            View all related MCP servers

            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/harshil1712/berlin-transport-mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server