Korean public transit MCP server - real-time bus/subway info & route search
Project description
korea-transit-mcp-server
MCP server for Korean public transit — route search, real-time bus/subway arrival, congestion data, and more for the Seoul metropolitan area.
Combines ODsay LAB (nationwide route search) with Seoul Open Data (real-time arrivals & congestion) so AI assistants can answer questions like "How do I get from Gangnam to Pangyo right now?"
Tools
| Tool | Description |
|---|---|
transit_route |
Search transit routes between two locations |
station_search |
Search for bus stops and subway stations by name |
line_info |
Get route/line details (stops, schedule) |
nearby_stations |
Find nearby stations by coordinates |
bus_arrival |
Real-time bus arrival times at a stop |
bus_location |
Real-time GPS tracking of buses on a route |
subway_arrival |
Real-time subway arrival times at a station |
subway_congestion |
Subway congestion statistics by time slot |
first_last_train |
First/last train schedule for a station |
Prerequisites
You need API keys from three providers (all free tier):
| Provider | Sign Up | Purpose |
|---|---|---|
| ODsay LAB | lab.odsay.com | Route search, station/stop lookup |
| Seoul Bus API | data.go.kr | Real-time bus arrival & position |
| Seoul Subway API | data.seoul.go.kr | Real-time subway arrival & congestion |
Installation
Claude Code / Claude Desktop
Option 1: Published Package
Add to your MCP configuration:
{
"mcpServers": {
"korea-transit": {
"command": "uvx",
"args": ["korea-transit-mcp-server"],
"env": {
"ODSAY_API_KEY": "your_odsay_key",
"SEOUL_BUS_API_KEY": "your_data_go_kr_key",
"SEOUL_SUBWAY_API_KEY": "your_data_seoul_key"
}
}
}
}
Option 2: Local Repository (Development)
Clone the repository and run locally:
1. Clone and Install
git clone https://github.com/SimDaSong/korea-transit-mcp-server.git
cd korea-transit-mcp-server
uv pip install -e .
2. Configure MCP
Copy .mcp.json.example to .mcp.json and add your API keys:
{
"mcpServers": {
"korea-transit": {
"type": "stdio",
"command": "uv",
"args": ["run", "korea-transit-mcp-server"],
"env": {
"ODSAY_API_KEY": "your_odsay_key",
"SEOUL_BUS_API_KEY": "your_data_go_kr_key",
"SEOUL_SUBWAY_API_KEY": "your_data_seoul_key"
}
}
}
}
Local Development
# Install with dev dependencies
uv sync --group dev
# Run tests
uv run pytest -v
# Run the server manually
ODSAY_API_KEY="your_key" \
SEOUL_BUS_API_KEY="your_key" \
SEOUL_SUBWAY_API_KEY="your_key" \
uv run korea-transit-mcp-server
Usage Examples
Route Search
"How do I get from Gangnam Station to Pangyo Station?"
Calls transit_route(start="강남역", end="판교역")
Real-time Bus Arrival
"When is the next bus at stop 22009?"
Calls bus_arrival(ars_id="22009")
Subway Arrival
"When is the next train at Gangnam Station?"
Calls subway_arrival(station_name="강남")
Congestion
"How crowded is Gangnam Station on Line 2?"
Calls subway_congestion(line_num="2", station_name="강남")
API Rate Limits
- ODsay: 1,000 calls/day on free tier (auto-tracked with warnings)
- Seoul Bus/Subway: Public data, generally generous limits
Tech Stack
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file korea_transit_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: korea_transit_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c506b4fcc2bccd88da757d1f8b328035659096b4f624c88b4ec401b8de6c914e
|
|
| MD5 |
451077ea5c7f9f3005c8fc7b07b4139a
|
|
| BLAKE2b-256 |
c17d840146ea455ddf6dd9579e91168182a5c0d9c49e6e0d093123574853a9fc
|
File details
Details for the file korea_transit_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: korea_transit_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ef50f1c21180e7af5a65b4cfb6fcadcee71f39133b4b96daef65e27e179fad0
|
|
| MD5 |
791f6fddb91b34fb4d6419fbb11bb22d
|
|
| BLAKE2b-256 |
d552d81b6cf900fd7ebfa8a9cf1bdd5487002d459b4a794137d7ab8f611a8bb1
|