Skip to main content
Glama
sarunasdaujotis

Vilnius Transport MCP Server

维尔纽斯运输 MCP 服务器

模型上下文协议 (MCP) 服务器实现,为大型语言模型 (LLM) 提供维尔纽斯公共交通数据访问功能。该项目演示了如何使用 MCP 标准扩展 LLM 的功能,使其能够处理实时交通数据。

模型上下文协议 (MCP)是一项标准,它使大型语言模型 (LLM) 能够安全地访问外部工具和数据。MCP 允许 LLM 实现以下功能:

该项目实施了一个 MCP 服务器,为 LLM 提供维尔纽斯公共交通数据工具,使他们能够回答有关公共交通站点和路线的查询。

该服务器公开以下 MCP 工具:

  • find_stops :按名称搜索公共交通站点

    {
      name: string;  // Full or partial name of the stop to search for
    }
  • find_closest_stop :查找距离给定坐标最近的公共交通站

    { 
      coordinates: string;  // Format: "latitude, longitude" (e.g., "54.687157, 25.279652")
    }

要将 MCP 服务器添加到您的 Claude 开发环境,请将以下配置添加到您的 claude_desktop_config.json 文件:

   {
    "mcpServers": {
      "vilnius_transport": {
        "command": "uv",
        "args": [
            "--directory",
            "path/vilnius-transport-mcp-server/src/vilnius_transport_mcp",
            "run",
            "transport.py"
        ]
      }
    }
   }

注意:确保调整目录路径以匹配您的本地安装。

运行客户端:

uv run client.py path/src/vilnius_transport_mcp/transport.py
Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

Latest Blog Posts

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/sarunasdaujotis/vilnius-transport-mcp-server'

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