bus-scheduling-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bus-scheduling-mcp list active bus routes"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bus Scheduling MCP Server
This is a Model Context Protocol (MCP) server designed to interface with the Bus Scheduling Backend system. It allows MCP-compatible LLM clients (like Claude Desktop, Cursor, Cline, etc.) to access scheduling data, read KPIs, list routes, and trigger/monitor optimization algorithms.
Prerequisites
Node.js (v18 or higher recommended)
The accompanying Python backend must be running (by default on
http://127.0.0.1:8000).
Related MCP server: ai-assistant
Installation
Install dependencies:
npm installBuild the TypeScript code:
npm run build
Configuration
If your backend is running on a different URL, you can configure it via a .env file in the root of this /mcp-server directory.
Example .env:
API_BASE_URL=http://localhost:8000/apiRunning the Server
For standard usage as an MCP Server:
Point your MCP client configuration (e.g. cline_mcp_settings.json or equivalent) to the built index.js file.
Example Cursor/Claude config:
{
"mcpServers": {
"bus-scheduling": {
"command": "node",
"args": ["/absolute/path/to/mcp-server/build/index.js"]
}
}
}For development:
Run the development watcher (useful if you are actively modifying the MCP server code):
npm run devAvailable Tools
The server exposes the following tools directly to the AI:
Dashboard & Metrics
scheduling_get_kpi: Fetch KPIs (vehicle status, departures, punctuality).scheduling_get_trends: Get passenger flow trends.
Routes & Data
scheduling_list_routes: List active bus routes.scheduling_get_route_details: Fetch stations and departures for a specific route.
Plans & Gantt
scheduling_list_plans: List all saved scheduling plans.scheduling_get_gantt_data: Get task formats for Gantt charts.
Optimization
scheduling_get_optimization_algorithms: List available optimization scripts.scheduling_run_optimization: Trigger an algorithm task.scheduling_get_optimization_status: Check the status of a running algorithm task.
Testing & Evaluations
You can inspect the capabilities of this server directly using the official MCP inspector:
npx @modelcontextprotocol/inspector node build/index.js10 comprehensive use cases and checks are available in evaluations.xml in this project's root folder.
Available Tools
9 toolsscheduling_get_gantt_dataB
Get plan tasks formatted as Gantt chart data by dataset or plan ID.
Inputs: plan_id, dataset_id.
scheduling_get_kpiA
Fetch key performance indicators (KPIs) like vehicle status, total departures, punctuality rate.
Inputs: no named parameters.
scheduling_get_optimization_algorithmsA
List available scheduling optimization algorithms (e.g., circular timetable, shift sequence).
Inputs: no named parameters.
scheduling_get_optimization_statusA
Get the status (running, completed, failed) of a specific optimization task by its task ID.
Inputs: task_id (required).
scheduling_get_route_detailsA
Get details of a specific route including stations and departures by route ID.
Inputs: route_id (required).
scheduling_get_trendsB
Get passenger flow trends for recent dates.
Inputs: no named parameters.
scheduling_list_plansA
List all algorithmically generated scheduling plans.
Inputs: no named parameters.
scheduling_list_routesA
List all active bus routes with optional filtering by dataset or company.
Inputs: skip, limit, company, dataset_id.
scheduling_run_optimizationB
Trigger an optimization task with a specific algo_id and parameters. Returns a task ID.
Inputs: algo_id (required), params, data_set_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct resource and action: routes, route details, Gantt data, optimization algorithms, running/status of optimizations, KPIs, trends, and plans. There is no overlap or ambiguity between them.
All tools follow a consistent scheduling_<verb>_<noun> pattern using only snake_case. Verbs are limited to list, get, and run, making the naming predictable and coherent.
9 tools is well within the ideal 3-15 range and each tool serves a clear purpose in the bus scheduling domain. The count is neither sparse nor overwhelming.
The tool set covers route viewing, optimization execution and status, KPIs, trends, and plan listing. However, there is no direct way to fetch the result of a specific optimization task (only status), nor a get_plan_details tool; the Gantt data requires a plan ID, which may not be known until after listing plans.
Related MCP Connectors
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
MCP-Native LLM Orchestration Agent
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables LLMs to orchestrate AI agents and tasks, inspect DAG workflows, monitor cluster metrics, and perform safe database queries and statements through standardized MCP tools.189Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables chat, document search (RAG), and a declarative SQL tool builder over MCP so any client can use these capabilities.AGPL 3.0
- AlicenseNot gradedqualityAmaintenanceEnables LLMs to discover and invoke generated API actions as MCP tools and read context through MCP resources for list and get-by-id operations. It provides HTTP-based MCP access for clients such as Cursor and Claude without extra glue code.MIT
- AlicenseNot gradedqualityAmaintenanceEnables LLMs to interact directly with generated REST APIs by exposing CRUD actions as MCP tools and read-only data as MCP resources.MIT