Malaysia Transit MCP Server

MCP server for Malaysia's public transit system, providing real-time vehicle locations, shape-based arrival predictions (40-60% more accurate), departure schedules, and fare calculator across 12 cities in Malaysia. Features live bus/train tracking, stop search, route discovery, automatic location detection, and provider status monitoring.

MCP Endpoint
https://mcp.techmavie.digital/malaysiatransit/mcp

Use this endpoint directly in your MCP client (Claude Desktop/Mobile App, Cursor, Windsurf, etc.)

Need help setting up? Follow my interactive setup guides:

Features

12 Operational Service Areas across Malaysia

Live Vehicle Tracking - Current positions of buses and trains

Shape-Based Arrival Predictions - 40-60% more accurate ETAs

Departure Schedules - Get next departures and route operating status

Fare Calculator - Calculate fares for BAS.MY and Rapid Penang

Stop Search & Information - Find stops by name or location

Route Discovery - Browse available routes with destinations

Multi-Modal Support - Both bus and rail services

Location Detection - Automatically detect service areas

Provider Status Monitoring - Check operational status

Data Source

This MCP server connects to Malaysia Transit, a transit API that aggregates GTFS data from multiple Malaysian transit operators. The middleware provides route information, stop details, and live vehicle positions that powers this MCP.

The middleware handles all the complexity of parsing transit feeds and normalizing data across different operators, so that your AI can simply ask questions like "What bus routes serve this area?" and get accurate answers.

Learn About Malaysia Transit

Available Tools

list_service_areas

List all available transit areas

detect_location_area

Detect transit service area from location

search_stops

Search for stops by name

get_stop_arrivals

Get real-time arrivals with confidence levels

get_live_vehicles

Get live vehicle positions

list_routes

List all routes in an area

get_route_details

Get detailed route information

get_route_departures

Get next N departures for a route

get_next_departure

Get single next departure

get_route_schedule

Get complete daily schedule

get_route_status

Check if route is operating

get_fare_routes

Get routes for fare calculation

calculate_fare

Calculate fare between stops

calculate_journey_fare

Calculate multi-leg journey fares

get_provider_status

Check provider operational status

Highlights

Klang Valley (Rapid Rail KL, Rapid Bus KL, MRT Feeder)Penang (Rapid Penang)Kuantan (Rapid Kuantan)Ipoh, Seremban (BAS.MY)Kangar, Alor Setar, Kota Bharu, Kuala Terengganu, Melaka, Johor Bahru, Kuching (BAS.MY)

Requirements

  • Node.js 18+
  • Malaysia Transit running instance
  • Optional: Google Maps API key for location detection

Quick Links

View All MCP Servers

Support My Work

If you find this MCP server useful, consider supporting my work.

Learn how to support
TechMavie Digital Logo

TechMavie Digital Services

Business Registration Number: 202503258894

Copyright 2025 TechMavie Digital. All rights reserved.

Made with ❤️ by

Privacy Notice

This website uses Plausible, a privacy-focused analytics tool. Your data is anonymized and stored in Nuremberg, Germany. No cookies are used and no personal information is collected. I respect your privacy.