madurai-transit-mcp
🚌 Madurai CityBus 模型上下文协议(MCP)服务器
Madurai CityBus 公共交通的官方**模型上下文协议(MCP)**服务器,将 AI 助手(Claude Desktop、Cursor、Gemini、AI Agents)连接到马杜赖的公交线路网络、官方分段票价、站点顺序和站台发车信息。
⚡ 功能特性
线路发现:在马杜赖的 966 条公交线路和 3,000 个站点之间进行直达和一次换乘路线规划。
官方分段票价:权威的 TNSTC 分段票价明细(Ordinary、LSS、Express、Deluxe AC)。
站台智能:Periyar 汽车站的发车平台(I/II/III/IV)。
双语站点搜索:支持英文、泰米尔文 Unicode(
பெரியார்)或口语化音译搜索站点。交互式深度链接:自动返回规范链接(
https://maduraione.in/route/...)以查看实时可视化路线图。
Related MCP server: Houston METRO MCP
🚀 快速配置
1. Claude Desktop
将以下配置添加到您的 claude_desktop_config.json:
MacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"madurai-bus": {
"command": "npx",
"args": ["-y", "madurai-transit-mcp"]
}
}
}2. Cursor IDE
将此添加到 .cursor/mcp.json 或 Cursor 设置 ➔ 功能 ➔ MCP:
{
"mcpServers": {
"madurai-bus": {
"command": "npx",
"args": ["-y", "madurai-transit-mcp"]
}
}
}3. 使用 MCP Inspector 进行本地测试
您可以使用官方 MCP Inspector 以交互方式测试所有工具:
npx @modelcontextprotocol/inspector npx -y madurai-transit-mcp🛠️ 可用的 MCP 工具
search_bus_routes
查找马杜赖两个地点之间的直达和一次换乘公交路线。
{
"from": "Periyar",
"to": "Alagarkovil",
"max_transfers": 1
}get_bus_details
获取特定公交线路的完整路线详情、辐条类别、发车平台和完整站点顺序。
{
"bus_number": "44"
}search_bus_stops
公交站点的双语搜索(英文和泰米尔文),包含辐条分类和经过验证的 GPS 坐标。
{
"query": "பெரியார்"
}calculate_fare
计算所有服务类别(Ordinary、LSS、Express、Deluxe AC)的精确官方 TNSTC 分段票价。
{
"boarding_stop": "PERIYAR BUS STAND",
"alighting_stop": "MGR BUS STAND",
"bus_number": "77"
}⚠️ 现实情况与免责声明
印度二线城市的公共交通运营方式与西方交通模式不同:
发车间隔频率 vs. 时刻表:TNSTC 马杜赖公交按班次间隔频率运营,而非发布分钟级的数字时刻表。
拓扑定位 vs. 实测 GPS:全区约 3,000 个站点中,约 600 个核心城区站点拥有经过验证的测量坐标。其余农村/城郊站点按序列进行拓扑映射。
多段换乘:换乘建议基于 7-Spoke Madurai Topological Model,仅供参考。乘客应在汽车站核实实时站台发车信息。
🌐 技术支持
Web 应用与实时公交遥测:https://maduraione.in
Android 应用(Google Play):Madurai CityBus 在 Google Play
📄 许可证
MIT © MaduraiOne
Available Tools
4 toolscalculate_fareB
Calculate the official TNSTC stage fare between any boarding and alighting bus stop in Madurai across Ordinary, LSS, Express, and Deluxe/AC classes based on authoritative stage charts.
Inputs: boarding_stop (required), alighting_stop (required), bus_number.
get_bus_detailsA
Lookup route details, platform bay at Periyar Bus Stand, spoke category, and stop sequence for a specific Madurai bus number (e.g. '44', '77', '11A', '5'). By default returns key transit milestones for token efficiency; set verbose=true for the complete numbered stop list.
Inputs: bus_number (required), verbose.
search_bus_routesA
Search bus routes between two stops in Madurai. Returns direct buses and 1-transfer options with stop counts, PBS platform bays, official TNSTC stage fares, and canonical visual map links. By default returns key milestones for token efficiency; set verbose=true for complete stop sequences.
Inputs: to (required), from (required), verbose, max_transfers.
search_bus_stopsA
Bilingual (English and Tamil) autocomplete and search for bus stops across Madurai. Returns canonical name, Tamil script name, spoke corridor, route frequency, and verified GPS coordinates if available.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: finding routes between stops, retrieving details for a specific bus number, searching stops, and calculating fares. No overlapping functionality, so an agent can easily select the right tool.
All tool names follow a consistent verb_noun pattern in snake_case (search_bus_routes, get_bus_details, search_bus_stops, calculate_fare). This creates a predictable and uniform naming convention.
With only 4 tools, the server is well-scoped for its narrow domain of Madurai bus transit. Each tool serves a necessary function, and the count is within the ideal 3-15 range.
The tool surface covers the core transit workflows: route search, bus details, stop lookup, and fare calculation. Missing features like schedule or real-time tracking are not implied by the domain scope, so only minor gaps exist.
Maintenance
Related MCP Connectors
Mobility, geocoding and nearby urban services for AI agents.
Provide real-time transportation data including bus arrivals, train service alerts, carpark availa…
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Get real-time bus arrival times for any Singapore bus stop by code, with optional service filterin…
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides real-time Transport for London journey data, including routes, alerts, and disruptions, allowing AI assistants to search journeys and get station information.112 npm4ISC
- AlicenseNot gradedqualityCmaintenanceEnables local AI clients to search Houston METRO routes, stops, nearby stops, realtime arrivals, and service alerts through natural language.MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to query live arrivals, vehicle positions, routes, stops, and timetables across the Athens public transport network, with stop lookups by name or coordinate in Greek or Latin script. Results cover OASA buses, trolleys, metro, and tram, falling back to cached reference data when the upstream API is unreachable.101MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants and agents to access grounded multi-modal trip planning, next departures, stop discovery, metro routing, geocoding, and personalized saved places for the Pune and Pimpri-Chinchwad region.MIT