# Malaysia Transit MCP

Malaysia Transit MCP — an MCP server with live bus and train data for 12 Malaysian cities: stop arrivals, vehicle positions, routes and fares.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 7889 installs · ★ 4 repo stars
- Author: hithereiamaliff
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hithereiamaliff/mcp-malaysiatransit
- Updated: 2026-05-11
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/malaysia-transit-mcp

## What it does

This server gives an agent live public transport data for Malaysia: buses and trains, plus the Penang ferry. The agent can look up a stop by name or by coordinates, check upcoming arrivals there, pull route details and geometry, and see where vehicles are right now. It covers 12 cities, including Klang Valley and Penang. Operators include Rapid KL and Rapid Penang, plus the BAS.MY services.

Schedules, next departures and route status are covered too. Bus fares are calculated only for BAS.MY and Rapid Penang routes. KTM Komuter Utara has its own tools for the station list, fare calculation and fare matrix. To find out which city a place belongs to, `detect_location_area` geocodes a name such as `Komtar`.

The server is unofficial: Prasarana Malaysia, APAD, KTM Berhad and the BAS.MY operators have no part in it. Kuantan is under maintenance and Kota Kinabalu is not live yet. If you host your own copy, production needs an `INTERNAL_AUTH_TOKEN` that matches the middleware's token. Without `GOOGLE_MAPS_API_KEY`, place lookup falls back to Nominatim, which is less accurate.

## Requirements
- Remote server: `https://mcp-malaysiatransit--hithereiamaliff.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mcp-malaysiatransit https://mcp-malaysiatransit--hithereiamaliff.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add malaysia-transit-mcp --url https://mcp-malaysiatransit--hithereiamaliff.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "malaysia-transit-mcp": {
            "url": "https://mcp-malaysiatransit--hithereiamaliff.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "malaysia-transit-mcp": {
            "type": "http",
            "url": "https://mcp-malaysiatransit--hithereiamaliff.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http malaysia-transit-mcp https://mcp-malaysiatransit--hithereiamaliff.run.tools
```

## When to use it
- check when the next bus reaches a stop
- find stops near a given point
- track live positions of buses and trains on a route
- work out a BAS.MY bus fare or a KTM Komuter Utara fare between stations
- tell which city a place like `Komtar` belongs to

## Example prompts
- Use Malaysia Transit MCP to find stops near KLCC and show the next arrivals.
- List the service areas in Malaysia Transit MCP and open the details for Penang.
- Calculate the KTM Komuter Utara fare between two stations with Malaysia Transit MCP.

## Similar
- [Public Transport](https://affpapa.org/en/nevibecode/mcp/public-transport.md) — MCP server · 3245 installs
- [Transit MCP](https://affpapa.org/en/nevibecode/mcp/transit-mcp.md) — MCP server · ★ 5 repo stars
- [Where's my train? MTA Guide](https://affpapa.org/en/nevibecode/mcp/wheres-my-train-mta-guide.md) — MCP server · 3733 installs
- [onebusaway-mcp-server](https://affpapa.org/en/nevibecode/mcp/onebusaway-mcp-server.md) — MCP server · 1254 installs
- [PakBus](https://affpapa.org/en/nevibecode/mcp/pakbus.md) — MCP server

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
