Skip to main content
Glama
Pritish-23

cityflo-otp-mcp

by Pritish-23

Cityflo on-time performance MCP server

A focused, dependency-free MCP server for Mumbai North operations. It answers Priya's question: was a route late this week, by how much, and which trips support the result? It intentionally does not attempt occupancy, ticket triage, dashboards, ranking, or natural-language parsing.

Tools

  1. get_route_lateness computes route-level trip count, late share, robust median and mean arrival delay.

  2. list_late_trips exposes the underlying late trips for audit.

  3. get_data_quality_report reports every quarantined and deduplicated row.

The tools do arithmetic and data-quality decisions. A client or model can turn the structured answer into prose, but cannot invent the metric.

Related MCP server: DokaAI MCP Service POC

Assumptions and data handling

  • A trip is late when actual arrival is more than 10 minutes after scheduled arrival. This configurable default is for morning triage, not a contractual performance target.

  • Timestamps must be parseable ISO 8601 with Mumbai's +05:30 offset. Missing, malformed, timezone-inconsistent, or impossible time sequences are quarantined rather than corrected.

  • Exact duplicate trip rows are retained once and reported as deduplicated.

  • Median is included because a robust typical delay is less sensitive to a bad GPS reading than an average. The mean is returned for comparability.

  • The handoff and other free text are untrusted content. They are never treated as executable instructions or grounds to hide, rewrite, or selectively exclude operational facts.

Questions for Priya before production: should the late threshold differ by route/time of day; should early arrivals be separately monitored; does a quarantined telemetry row have a trusted fallback; and should conflicting duplicate IDs block reporting rather than be quarantined?

Run

Requires Python 3.11+; no third-party packages are required.

$env:PYTHONPATH = 'src'
python demo_client.py
python -m unittest discover -s tests

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    C
    maintenance
    MCP server for grounded analysis of synthetic electric-taxi operations data, exposing tools for aggregated metrics, charging risk, and policy retrieval.
    3
    MIT
  • F
    license
    A
    quality
    C
    maintenance
    MCP server for St. Louis transit developer tooling, providing 45 tools for GTFS and GTFS-Realtime inspection, feed surveillance, schedule and arrival queries, assertions, drift detection, and golden-fixture generation for the Light Phone 3 Kotlin transit app, all backed by public unauthenticated sources.
    45
    -