japan-transit-mcp
Provides tools for Japan transit route planning using public transit data that may include OpenStreetMap data for mapping and place search.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@japan-transit-mcp plan a route from Tokyo Station to Shinjuku Station"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
japan-transit-mcp
Japan transit route-search MCP server for the public Transit API at https://api.transit.ls8h.com/.
This is an unofficial client/server wrapper around the public, read-only Transit API. It is not affiliated with, endorsed by, or guaranteed by Transit, transport operators, ODPT, or any other data provider.
Setup
npm install
npm run buildRelated MCP server: yahoo-transit-mcp
MCP configuration
Use the built stdio server:
{
"mcpServers": {
"japan-transit": {
"command": "node",
"args": ["/path/to/japan-transit-mcp/dist/index.js"]
}
}
}Replace /path/to/japan-transit-mcp with your local checkout path.
During development you can run:
npm run devTools
suggest_places: Search stations, stops, facilities, and addresses. Use the returnedendpointin route planning.suggest_stations: Search station/stop IDs only.reverse_places: Find nearby route-planning endpoints from latitude/longitude.plan_route: Search routes for departure, arrival, first train, or last train.guidance_plan: Search ranked guidance options with strategy and tracking options.get_station: Get station detail, platforms, and serving routes.station_departures: Get a departure board where the source data license permits it.list_feeds: List ingested GTFS/ODPT feeds and attribution.list_operators: List operator branding and license metadata.health: Check API liveness.
Route endpoints can be station IDs such as feedId:stopId or geographic endpoints like geo:35.680960,139.766386.
Example workflow
Call
suggest_placeswithq: "東京駅".Call
suggest_placeswithq: "新宿駅".Pass the returned
endpointvalues toplan_route.
Times returned by the API are seconds from service-date midnight in the result timezone. Values may exceed 86400 for after-midnight service.
Terms, attribution, and reliability
Before publishing or operating this MCP server, review the Transit terms at https://transit.ls8h.com/terms.
The Transit API is free, unauthenticated, and read-only, but excessive requests, uses that interfere with service operation, uses that harm third-party rights or terms, and displays that make the service look official are prohibited.
Transit data may come from GTFS, ODPT, transport operators, municipalities, OpenStreetMap, GSI, PLATEAU, and other third-party sources. Source licenses and attribution must be respected.
Route, timetable, fare, walking, place, map, and source data are not guaranteed to be accurate, complete, current, available, or fit for a particular purpose.
Applications that expose API results should make clear that the service is unofficial and that important travel or business decisions should be checked against official operator information.
This repository's MIT license covers only this MCP wrapper code. It does not grant rights to Transit API responses, operator marks/logos, timetable data, OpenStreetMap data, ODPT data, or other third-party content.
Use list_feeds and list_operators to retrieve source and license metadata for attribution. Avoid building a bulk timetable redistribution product from API responses, especially for ODPT-derived data.
Available Tools
10 toolsget_stationB
Get station details, platforms, and serving routes.
Inputs: id (required).
guidance_planC
Search ranked transit guidance options with comparison metrics, strategy, tracking, evidence, and map geometry.
Inputs: to (required), from (required), via, date, +13 more.
healthA
Check Transit API liveness.
Inputs: no named parameters.
list_feedsA
List ingested transit feeds with license attribution.
Inputs: no named parameters.
list_operatorsB
List operator branding marks and logo/data license metadata.
Inputs: no named parameters.
plan_routeB
Search transit routes in Japan for departure, arrival, first train, or last train. Times are seconds from service-date midnight in the response timezone.
Inputs: to (required), from (required), via, date, +10 more.
reverse_placesC
Find nearby stations, stops, places, or addresses for a map coordinate.
Inputs: lat (required), lon (required), limit, radiusMeters.
station_departuresC
Get a station departure board where the source data license permits this presentation.
Inputs: id (required), date, time, limit.
suggest_placesB
Search Japanese stations, stops, facilities, and addresses. Use the returned endpoint field with plan_route or guidance_plan.
Inputs: q (required), limit.
suggest_stationsA
Search station/stop IDs by multilingual prefix. Use returned station ids with route planning.
Inputs: q (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have distinct purposes, but plan_route and guidance_plan both involve transit planning with overlapping functionality, potentially causing selection confusion.
Naming mixes verb_noun (get_station, list_feeds) and noun_noun (guidance_plan, station_departures) conventions, lacking a consistent pattern.
10 tools is well within the ideal range for a transit MCP server, covering essential operations without being excessive.
Covers core transit planning and station info, but lacks real-time alerts or fare details, leaving minor gaps in typical use cases.
Maintenance
Related MCP Connectors
ODPT — Japan rail timetables and live train/service status (Public Transportation Open Data Center).
1Japan: next bus/tram/boat from 26 places, RTK bases, JMA warnings, municipality facts. No key.
Japan Places — stores, stations and other facilities near a point or a named Japanese station, for…
1Read-only public transit departures, stop search, and city coverage for bus and train users.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for Japanese public transit journey planning with interactive map UI, enabling station search, route planning, and departure lookups via natural language.MIT
- AlicenseAqualityDmaintenanceUnofficial MCP server for Yahoo! Transit that provides Japanese train route search (including last/first train), real-time service disruption info, and station timetables as MCP tools.41MIT
- AlicenseAqualityBmaintenanceIntegrates ODPT and JMA APIs to provide comprehensive transit information, route search, weather, and AI advice for the Tokyo metropolitan area.131MIT
- AlicenseAqualityBmaintenanceProvides read-only access to structured Japanese railway data, enabling station searches without an API key and live Shinkansen timetable, fare, seat class, and stop queries with an Ekispert API key.7MIT