¶ case file 7 of 12 · transit-fleet · filed 2026-03 · verified 2026-11

status: shipped · claude ai mcp telemetry across 6,587 transit passenger journeys

↩ consigned at retail & transit, ¶ 09 · 22:05 · waybill: 6,587 trips → claude ai mcp → route headway optimization

the line stands dark at 22:05. the archive lamp is lit; a record is read in the light it needs.

Public Transit Fleet Telemetry.

Built an AI-augmented fleet dispatch decision engine connecting Claude AI via Model Context Protocol (MS Power BI MCP & Excel MCP) directly to an Excel Power Pivot Star Schema. Auditing 6,587 passenger journeys against a 941 riders/day dispatch threshold, the system automatically flags 29 overcrowded runs (≥90% capacity) alongside 19 under-utilized buses (<50% load) to deliver Zero-CapEx route rebalancing.

role
lead urban transit analytics & mcp engineer
timeframe
2026-01 to 2026-03 · transit production release
stack
Microsoft Excel · Power Pivot · Microsoft Excel MCP via VS Code through Claude · Python · Star Schema
scope
6,587 journeys · 33 avg. occupancy · 64.6% PM peak · MCP tools

Transit telemetry note: Fleet operations track origin-destination timestamps, bus route identifiers, driver duty schedules, GPS stop coordinates, and passenger load factors across scheduled urban transit grids.

[ problem ] · § as found

Fleet dispatchers managed route delays through reactionary radio calls without structured schedule variance analytics. Bus bunching occurred consistently during morning and evening rush hours, leaving following buses empty while lead buses were overcrowded.

Municipal transit authorities lacked automated tools to synthesize dispatch telemetry with weather and road incidents. An automated Microsoft Excel MCP via VS Code through Claude integration was needed to let dispatchers query operational logs using natural language to rebalance vehicle headways.

constraints & technical boundaries

  • Star Schema Transit Architecture: Model 6,587 passenger journeys with single-direction relationships across Dim_Route, Dim_Vehicle, and Dim_Time.
  • Microsoft Excel MCP via VS Code through Claude Integration: Create sandboxed tool registry enabling AI agents to compute route variance and dwell statistics on demand.
  • Headway & Dwell Optimization: Isolate stops where passenger boarding latencies exceed 90 seconds, causing cumulative cascade delays.
  • Capacity Balancing: Benchmark AM vs PM peak occupancy ratios to adjust bus frequency allocations.
Public Transit Data Architecture Pipeline

fig. 01 · the transit ridership star schema · open full diagram ↗

fig. 01 · the public transit ridership & fleet data pipeline. single-direction 1:N relationships uniting demographics, calendar, buses, and routes dimension tables with facttable ridership (6,587 trip records / $145K fares).

[ transit scorecard ] · fleet efficiency & passenger load benchmarks

Verified urban mobility indicators audited across 6,587 transit journeys:

Journeys Audited
6,587
Completed Trips
Reconciled across radial and cross-town municipal transit corridors.
Average Load
33 Pass.
Vehicle Occupancy
Benchmark average load balancing off-peak baseline with commuter surge.
Peak Load Factor
64.6%
PM Rush Capacity
Evening commuter surge requiring targeted headway frequency compression.
Workflow Innovation
MCP AI
Claude AI Registry
Natural language operational querying directly into Excel tabular data cubes.

[ interactive suite ] · fleet operations cockpit

Review the fleet operations cockpit engineered for passenger load tracking and schedule reliability:

Transit Fleet Operations Dashboard

fig. 02 · transit operations cockpit · monitoring 6,587 passenger journeys, average vehicle occupancy, and route delay correlations across urban transit corridors.

[ relational engineering ] · production dax & mcp query handlers

Production DAX measures and Microsoft Excel MCP via VS Code through Claude tool handlers authored for transit analytics:

// 1. Average Passenger Load Factor Percentage
Avg Load Factor % = 
DIVIDE(
    AVERAGE(Fact_Journeys[Passenger_Count]),
    RELATED(Dim_Vehicle[Total_Capacity]),
    0
)

// 2. Schedule Variance Latency (Minutes)
Schedule Variance Min = 
AVERAGEX(
    Fact_Journeys,
    DATEDIFF(Fact_Journeys[Scheduled_Departure], Fact_Journeys[Actual_Departure], MINUTE)
)

# 3. Microsoft Excel MCP via VS Code through Claude Tool: Evaluate Route Headway Dwell
@mcp.tool()
def evaluate_corridor_headway(route_id: str, peak_window: str = "PM") -> dict:
    """Computes average vehicle dwell and headway variance for designated transit corridor."""
    corridor_data = query_transit_db(route_id, peak_window)
    return {
        "route": route_id,
        "avg_dwell_sec": corridor_data['dwell_sec'].mean(),
        "headway_variance_min": corridor_data['headway_diff'].std(),
        "recommended_action": "Inject standby bus if headway > 12 min"
    }

[ receipts & outcomes ] · autonomous Microsoft Excel MCP via VS Code through Claude dispatch & roi

Moving beyond static ridership counts to AI-augmented fleet rebalancing and zero-CapEx capacity recovery:

Proactive Detection
29 Over / 19 Idle
Load-Factor Imbalance
Audits Riders/Capacity across 6,587 runs to isolate 35% overcrowded buses (≥90% load) vs. 23% slack fleet (<50%).
Automation Workflow
Microsoft Excel MCP via VS Code through Claude
MCP Workbook Diagnostics
Direct MCP bridge links Claude Desktop to Power Pivot Star Schema for 3-second daily dispatcher anomaly briefs.
Measured ROI
Zero-CapEx Shift
-28% Wait & 80% Faster Triage
Reallocates slack buses from South Line (185 riders) to East-West Express (1,322 riders) without new bus CapEx.
Mobility Challenge Operational Remediation Performance Gain
Peak PM Bus Bunching Injected short-turning standby buses during 5:00 PM–7:00 PM along high-density commercial corridors, stabilizing headway spacing. -28% Waiting Time
High Dwell Intersections Identified 3 bottleneck transit stops with cash fare boarding delays; recommended off-board contactless payment validation. -4.5 Min Cycle Time
MCP Dispatch Automation Automated daily dispatcher anomaly briefs using Microsoft Excel MCP via VS Code through Claude server, highlighting chronic late departures within 3 seconds. 80% Faster Triage
Source Repo on GitHub ↗ · Download Report PDF ↗
Next Case File: Coffee Sales Analytics →