维尔纽斯运输 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
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
使大型语言模型能够通过模型上下文协议访问维尔纽斯公共交通站点和路线的实时数据。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityFacilitates real-time access to Singapore's Land Transport Authority (LTA) transportation data, offering insights into bus arrivals, train services, traffic conditions, and more through integration with the LTA DataMall API.Last updated -73
- -securityAlicense-qualityProvides access to Deutsche Bahn train timetables, station information, and schedule changes through Model Context Protocol tools and resources.Last updated -7MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that provides real-time access to Hong Kong's KMB and Long Win Bus route information and arrival times, enabling Language Models to answer user questions about bus routes, stops, and ETAs.Last updated -53Apache 2.0
- -securityAlicense-qualityProvides real-time access to Bangalore's public transportation information including bus tracking, schedules, routes, and service updates to improve passenger experience.Last updated -3MIT License