madurai-transit-mcp
🚌 Madurai CityBus Model Context Protocol (MCP) Servidor
El servidor oficial Model Context Protocol (MCP) para el transporte público Madurai CityBus, que conecta asistentes de IA (Claude Desktop, Cursor, Gemini, AI Agents) con la red de rutas de autobús de Madurai, tarifas oficiales por etapas, secuencias de paradas y salidas de andenes.
⚡ Características
Descubrimiento de rutas: Enrutamiento directo y con 1 transbordo a través de 966 rutas de autobús y 3,000 paradas en Madurai.
Tarifas oficiales por etapas: Desgloses autorizados de tarifas por etapas de TNSTC (Ordinario, LSS, Expreso, Deluxe AC).
Inteligencia de andenes: Plataformas de salida (I/II/III/IV) en la estación de autobuses Periyar.
Búsqueda bilingüe de paradas: Busque paradas en inglés, tamil Unicode (
பெரியார்) o transliteraciones coloquiales.Enlaces profundos interactivos: Devuelve automáticamente enlaces canónicos (
https://maduraione.in/route/...) para mapas visuales de rutas en vivo.
Related MCP server: Singapore Bus MCP Server
🚀 Configuración rápida
1. Claude Desktop
Añade esta configuración a tu 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
Añade esto a .cursor/mcp.json o en Cursor Settings ➔ Features ➔ MCP:
{
"mcpServers": {
"madurai-bus": {
"command": "npx",
"args": ["-y", "madurai-transit-mcp"]
}
}
}3. Pruebas locales con MCP Inspector
Puedes probar todas las herramientas de forma interactiva usando el MCP Inspector oficial:
npx @modelcontextprotocol/inspector npx -y madurai-transit-mcp🛠️ Herramientas MCP disponibles
search_bus_routes
Encuentra rutas de autobús directas y con 1 transbordo entre dos ubicaciones en Madurai.
{
"from": "Periyar",
"to": "Alagarkovil",
"max_transfers": 1
}get_bus_details
Obtén detalles completos de la ruta, categoría de radio, andén de salida y la secuencia completa de paradas para un número de autobús específico.
{
"bus_number": "44"
}search_bus_stops
Búsqueda bilingüe (inglés y tamil) de paradas de autobús con clasificaciones de radio y coordenadas GPS verificadas.
{
"query": "பெரியார்"
}calculate_fare
Calcula las tarifas oficiales exactas por etapas de TNSTC en todas las clases de servicio (Ordinario, LSS, Expreso, Deluxe AC).
{
"boarding_stop": "PERIYAR BUS STAND",
"alighting_stop": "MGR BUS STAND",
"bus_number": "77"
}⚠️ Realidades sobre el terreno y avisos
El transporte público en ciudades indias de segundo nivel opera de manera diferente a los modelos de transporte occidentales:
Frecuencia de paso vs. horarios: Los autobuses de TNSTC Madurai operan con frecuencia de paso basada en turnos en lugar de horarios digitales publicados minuto a minuto.
GPS topológico vs. medido: De las ~3,000 paradas del distrito, ~600 paradas urbanas principales tienen coordenadas de levantamiento verificadas. Las paradas rurales y periurbanas restantes se mapean topológicamente por secuencia.
Transbordos de múltiples tramos: Las sugerencias de intercambio utilizan el Modelo topológico de 7 radios de Madurai y deben tratarse como orientación. Los viajeros deben verificar las salidas de andenes en vivo en las estaciones de autobuses.
🌐 Desarrollado por
Aplicación web y telemetría de autobuses en vivo: https://maduraione.in
Aplicación Android (Google Play): Madurai CityBus en Google Play
Repositorio de GitHub: https://github.com/rsiva2294/madurai-transit-mcp
📄 Licencia
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.
| Name | Required | Description | Default |
|---|---|---|---|
| bus_number | No | Optional specific bus number to calculate exact route-stage fare (e.g. '44', '77', '5'). | |
| boarding_stop | Yes | Boarding stop name (e.g. 'PERIYAR BUS STAND', 'PBS', 'Kalavasal'). | |
| alighting_stop | Yes | Alighting stop name (e.g. 'MGR BUS STAND', 'Mattuthavani', 'Alagarkovil'). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It states the outputs are based on 'authoritative stage charts' but does not describe what the return value looks like, how ambiguous stop names are handled, what happens when bus_number is omitted, or any side effects. The lack of such details makes it thin for a tool with no annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that front-loads the core function and scope. Every phrase serves a purpose, with no redundancy or filler. It is appropriately sized for the information it conveys.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite having a moderate parameter count and no output schema, the description omits essential context: it does not clarify what the tool returns (e.g., fare amount, breakdown by class), how it handles multiple stops with the same name, or the effect of the optional bus_number parameter on the calculation. An agent would need to infer these details, making it incomplete for reliable invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all three parameters. The description adds no additional parameter-specific meaning beyond mentioning service classes, which are not directly tied to any parameter. Per the baseline rule, with full schema coverage, a score of 3 is appropriate; the description neither enhances nor detracts from parameter understanding.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific verb ('Calculate') and resource ('official TNSTC stage fare') with a defined scope (boarding and alighting bus stop in Madurai across specified service classes). It distinguishes itself from sibling tools like search_bus_routes and get_bus_details by focusing on fare calculation, so an agent can readily identify its unique purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for fare calculation but does not explicitly state when to use this tool over siblings. There are no exclusions or explicit alternatives mentioned. An agent could infer from context, but the guidance is not explicit, so it scores at the implied level rather than clear context.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| verbose | No | Set to true to return the full numbered list of all intermediate stops. Default is false (returns key milestones). | |
| bus_number | Yes | Bus number to inspect (e.g. '44', '77', '11A', '5', '48P'). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Since no annotations are provided, the description carries the full burden of behavioral disclosure. It explicitly describes the default behavior (returns key milestones for token efficiency) and the verbose behavior (complete numbered stop list), which is a critical behavioral trait. It also lists the types of information returned. However, it does not mention any side effects, authentication, or error handling, which would be useful but not essential for a read-only lookup.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences with no redundancy. The first sentence front-loads the purpose and scope, and the second sentence explains the token-efficiency behavior and how to override it. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Despite the lack of an output schema, the description lists the key return elements (route details, platform bay, spoke category, stop sequence) and explains the verbose toggle, giving the agent enough to know what to expect. Minor gaps remain, such as error behavior or exact response structure, but these are secondary for a simple lookup tool with only two parameters.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, giving a baseline of 3. The description adds value beyond the schema by clarifying the default vs. verbose behavior for the 'verbose' parameter and providing real examples for 'bus_number' that illustrate the accepted format. This helps the agent understand how to set parameters appropriately.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb ('Lookup') and resource ('route details, platform bay at Periyar Bus Stand, spoke category, and stop sequence') for a specific Madurai bus number. It provides concrete examples of bus numbers ('44', '77', '11A', '5') and clearly differentiates from the sibling search tools by focusing on a specific bus rather than searching across routes or stops.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage when a specific bus number is known, but does not explicitly state when to use this tool versus alternatives like search_bus_routes or search_bus_stops. No mention of 'use this when you have an exact bus number; use search when you don't' or any other exclusion criteria. The guidance is implicit at best.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination stop or landmark in Madurai (e.g. 'Alagarkovil', 'Thirunagar', 'Airport'). | |
| from | Yes | Origin stop or landmark in Madurai (e.g. 'Periyar', 'Mattuthavani', 'Goripalayam', 'பெரியார்'). | |
| verbose | No | Set to true to return full intermediate stop lists for every leg. Default is false (key milestones). | |
| max_transfers | No | Maximum transfers allowed: 0 for direct only, 1 for up to 1-transfer. Default is 1. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden. It discloses the default behavior of returning key milestones for token efficiency, the verbose flag to get complete stop lists, and the output categories (fares, platform bays, map links). This is sufficient for a read-only search tool, though it does not explicitly state that it has no side effects or mention any rate limits.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two well-structured sentences with no wasted words. The first sentence captures the core purpose and returns, and the second explains the default and verbose toggle. Information is front-loaded and easy to scan.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a search tool with 4 parameters and no output schema, the description covers the purpose, return content, and parameter-driven behavior (verbose, transfers). It omits edge cases or error handling, but these are minor for a straightforward route search, and the return description is helpful given no output schema.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the baseline is 3. The description adds some value by explaining the default for verbose (token efficiency) and implicitly confirming the default of max_transfers (1-transfer options), but it does not elaborate on the format or constraints beyond what the schema already states.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb ('Search'), a resource ('bus routes between two stops in Madurai'), and enumerates the return contents (stop counts, PBS platform bays, TNSTC fares, map links). This clearly distinguishes it from sibling tools like get_bus_details, search_bus_stops, and calculate_fare, which target different concerns.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description clearly indicates the tool is for finding routes between two stops, and the sibling names imply alternatives, but there is no explicit statement of when to use this tool versus when to use get_bus_details, search_bus_stops, or calculate_fare. The context is clear but exclusions are only implicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
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.
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Stop name, landmark, or Tamil transliteration to search (e.g. 'Periyar', 'Mattuthavani', 'பெரியார்', 'Meenakshi Temple'). |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses that GPS coordinates are 'verified' and 'if available', indicating optionality, and mentions bilingual and autocomplete behavior. However, it does not explicitly state this is a read-only operation, nor does it explain result format, pagination, or error conditions. With no annotations, the description carries full burden and provides only partial behavioral transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences, front-loaded with key attributes (bilingual, autocomplete, search) and lists return fields without redundancy. It is concise and well-organized, though it could be slightly more compact without losing clarity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter tool with no output schema, the description lists the returned fields but does not specify the return structure (e.g., array of objects, count, sorting). It also omits any limit or pagination behavior, leaving some ambiguity about what an agent should expect from the invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema already achieves 100% coverage with a rich description of the 'query' parameter, including examples in English and Tamil. The tool description adds no additional parameter semantics beyond what the schema provides, so the baseline of 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific verb (search) and resource (bus stops) with a defined scope (across Madurai) and lists explicit return fields. It is easily distinguishable from siblings like search_bus_routes (routes) and get_bus_details (specific bus details), making it evident this is the stop-search tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for finding bus stops, but it does not provide explicit guidance on when to use this tool versus alternatives such as search_bus_routes or get_bus_details. There are no mentions of exclusions, prerequisites, or alternative routing conditions, leaving usage largely inferred from the tool name and purpose.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
4 tool updates
v1.0.4- First observed
calculate_fare - First observed
get_bus_details - First observed
search_bus_routes - First observed
search_bus_stops
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.
Real-time transit stops, routes, arrivals, vehicle positions, and schedules via OneBusAway APIs.
Grounded, multilingual travel data + a cited travel concierge. 12+ languages, deep India coverage.
Provide real-time transportation data including bus arrivals, train service alerts, carpark availa…
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.13 npm4ISC
- FlicenseNot gradedqualityDmaintenanceProvides real-time Singapore bus information, including arrival times, routes, and stop details via the LTA DataMall API.1-
- AlicenseNot gradedqualityBmaintenanceEnables 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