s

sarunasdaujotis

@sarunasdaujotis/vilnius-transport-mcp-server
0 Stars 307 次浏览 sarunasdaujotis 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

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

可用工具 (2 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

find_stops 1 个参数 需填 1 项

Search for public transport stops by name

必填参数:name

find_closest_stop 1 个参数 需填 1 项

Find the closest public transport stop to given coordinates

必填参数:coordinates

服务介绍

维尔纽斯交通MCP服务器

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

模型上下文协议 (MCP) 是一种使大型语言模型能够安全地访问外部工具和数据的标准。MCP允许LLMs:

本项目实现了一个MCP服务器,该服务器向LLMs提供维尔纽斯公共交通数据工具,使它们能够回答关于公交站和路线的问题。

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

  • find_stops:按名称搜索公共交通站点
    json
    {
    "name": "string"; // 站点的完整或部分名称
    }

  • find_closest_stop:找到给定坐标最近的公共交通站点
    json
    {
    "coordinates": "string"; // 格式:"纬度, 经度"(例如:"54.687157, 25.279652")
    }

要将MCP服务器添加到您的Claude开发环境中,请在您的claude_desktop_config.json文件中添加以下配置:
json
{
"mcpServers": {
"vilnius_transport": {
"command": "uv",
"args": [
"--directory",
"path/vilnius-transport-mcp-server/src/vilnius_transport_mcp",
"run",
"transport.py"
]
}
}
}

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

运行客户端:
commandline
uv run client.py path/src/vilnius_transport_mcp/transport.py

相关 MCP 服务