bus-scheduling-mcp
Enables LLM clients to access scheduling data, KPIs, routes, and trigger optimization algorithms via MCP.
README
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).
Installation
- Install dependencies:
npm install - Build 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/api
Running 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 dev
Available 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.js
10 comprehensive use cases and checks are available in evaluations.xml in this project's root folder.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.