japan-transit-mcp
Enables route planning and transit information retrieval for Japan using the public Transit API. Supports searching stations, planning routes, and checking departures.
README
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 build
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 dev
Tools
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.