Model Context Protocol (MCP) server providing tools to query Nagoya City bus timetables
Project description
nagoya-bus-mcp
English | 日本語
Overview
Nagoya Bus MCP is a Model Context Protocol (MCP) server that lets LLMs query Nagoya City bus information. Built with FastMCP, it exposes tools and prompts for looking up bus stops, reading timetables, and checking real-time bus approach and position information. Data is sourced from the public Nagoya City bus website.
Once connected to an MCP client such as Claude Desktop, you can ask questions like "When is the next bus from Nagoya Station?" in natural language and get answers backed by live data.
Features
The server exposes the following tools:
get_station_number— find a bus stop number from a stop name (with fuzzy matching).get_timetable— departure timetables for every route at a bus stop, organized by day of week.get_approach_for_route— real-time bus positions and latest passage times along a route.get_approach_for_station— real-time approaching buses for all routes at a bus stop.
It also provides prompt templates ask_timetable and ask_bus_approach for common questions.
Example queries
Bus data is in Japanese, so queries work best in Japanese:
- 「名古屋駅のバスの時刻表を教えて」 (What's the bus timetable at Nagoya Station?)
- 「栄のバスの接近情報を教えて」 (Show real-time bus approach info at Sakae.)
- 「新栄町のバス停番号を教えて」 (What's the bus stop number for Shin-sakaemachi?)
Getting started
The Nagoya Bus MCP server is published to PyPI.
Claude Desktop
Add the following configuration to claude_desktop_config.json.
{
"mcpServers": {
"nagoya-bus": {
"command": "uvx",
"args": ["nagoya-bus-mcp"]
}
}
}
Visual Studio Code
Add the following configuration to .vscode/mcp.json.
{
"servers": {
"nagoya-bus": {
"type": "stdio",
"command": "uvx",
"args": ["nagoya-bus-mcp"],
"env": {}
}
}
}
Manual
# Using uvx
$ uvx nagoya-bus-mcp
# Using Docker
$ docker run -i --rm ghcr.io/ymyzk/nagoya-bus-mcp
For developers
# Use MCP Inspector
$ npx @modelcontextprotocol/inspector uv run nagoya-bus-mcp
# Try API client
$ uv run python -m nagoya_bus_mcp.client
Data source
This project queries the public Nagoya City bus website (https://www.kotsu.city.nagoya.jp). It is an unofficial project and is not affiliated with or endorsed by the City of Nagoya.
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 nagoya_bus_mcp-0.9.0.tar.gz.
File metadata
- Download URL: nagoya_bus_mcp-0.9.0.tar.gz
- Upload date:
- Size: 174.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3a524cc92e1d939a36f825e10b8d96eed363cf5edde2d345e9709a28082d985
|
|
| MD5 |
07251389956c4f7d9a4a2a20a406be51
|
|
| BLAKE2b-256 |
b32c8ed38a6ddb84c8ff45440cd68762e6d5b896f3dab3270acf22afc80a576e
|
Provenance
The following attestation bundles were made for nagoya_bus_mcp-0.9.0.tar.gz:
Publisher:
ci.yml on ymyzk/nagoya-bus-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nagoya_bus_mcp-0.9.0.tar.gz -
Subject digest:
c3a524cc92e1d939a36f825e10b8d96eed363cf5edde2d345e9709a28082d985 - Sigstore transparency entry: 1615078909
- Sigstore integration time:
-
Permalink:
ymyzk/nagoya-bus-mcp@36b7f224a99f3174f0fa538b38cd2d6723206c6c -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/ymyzk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@36b7f224a99f3174f0fa538b38cd2d6723206c6c -
Trigger Event:
release
-
Statement type:
File details
Details for the file nagoya_bus_mcp-0.9.0-py3-none-any.whl.
File metadata
- Download URL: nagoya_bus_mcp-0.9.0-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c84faa725ceb2b0bad53cf61432187952ee44de5c859881c917af28b325409f9
|
|
| MD5 |
707e9ae50598165cda240df418fe21c4
|
|
| BLAKE2b-256 |
8153cfe043b2689cecd7dbdf5221935a31141e998bf9d8dbb80397ad8275e58c
|
Provenance
The following attestation bundles were made for nagoya_bus_mcp-0.9.0-py3-none-any.whl:
Publisher:
ci.yml on ymyzk/nagoya-bus-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nagoya_bus_mcp-0.9.0-py3-none-any.whl -
Subject digest:
c84faa725ceb2b0bad53cf61432187952ee44de5c859881c917af28b325409f9 - Sigstore transparency entry: 1615078921
- Sigstore integration time:
-
Permalink:
ymyzk/nagoya-bus-mcp@36b7f224a99f3174f0fa538b38cd2d6723206c6c -
Branch / Tag:
refs/tags/v0.9.0 - Owner: https://github.com/ymyzk
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@36b7f224a99f3174f0fa538b38cd2d6723206c6c -
Trigger Event:
release
-
Statement type: