tokyo-open-data-mcp
Finds nearby wheelchair-accessible toilets in Tokyo using the find_accessible_toilets tool.
Searches public facilities and/or railway stations by latitude and longitude.
Returns results sorted by straight-line distance, with an adjustable limit of 1–50 items (default 10).
Filters by
source_kind:facility,rail, or both when omitted.Requires selected equipment: ostomate toilet, ostomate warm water, universal sheet/adult changing bed, and/or baby changing table.
Is read-only, idempotent, and non-destructive.
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., "@tokyo-open-data-mcp Find 3 wheelchair-accessible toilets with ostomate facilities near 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.
tokyo-open-data-mcp
東京都のオープンデータを使い、指定した地点の近くにある車椅子使用者対応トイレを探せます。公共施設などと鉄道駅が対象です。介助用ベッドやオストメイト用設備の有無で絞り込めます。
uv と Git が必要です。Python 3.12以上に対応しています。APIキーは不要です。
MCP登録 · CLI · Pythonライブラリ
MCPクライアントに登録する
Codex
codex mcp add tokyo-open-data-mcp -- uvx --python 3.12 --from git+https://github.com/koizumikento/tokyo-open-data-mcp.git@main tokyo-open-data-mcp
codex mcp list新しいセッションで /mcp を開いて接続を確認できます。デスクトップ版ではMCP設定画面で、下のJSON例と同じコマンド・引数を指定できます。
Claude Desktop / Cursor
Claude Desktop(Windows)
%APPDATA%/Claude/claude_desktop_config.jsonClaude Desktop(macOS)
~/Library/Application Support/Claude/claude_desktop_config.jsonCursor
.cursor/mcp.json(プロジェクト内)
設定ファイルの mcpServers に項目を追加して、クライアントを再起動してください。uvx が見つからない場合は実行ファイルの絶対パスを指定します。
{
"mcpServers": {
"tokyo-open-data-mcp": {
"command": "uvx",
"args": [
"--python",
"3.12",
"--from",
"git+https://github.com/koizumikento/tokyo-open-data-mcp.git@main",
"tokyo-open-data-mcp"
]
}
}
}新宿駅付近の車椅子対応トイレで、オストメイト設備がある場所を3件探して。
Related MCP server: rollin-mcp-server
MCPツール
find_accessible_toilets
latitude と longitude に基準地点の座標を指定します。結果は直線距離順で、limit は1〜50件(既定10件)です。
引数 | 内容 |
|
|
| オストメイト用設備がある |
| オストメイト用設備が温水対応 |
| 大人も使用できる介助用ベッド(ユニバーサルシート)がある |
| 乳幼児用おむつ交換台等がある |
複数の設備条件を指定すると、すべてを満たすトイレを返します。○ や ○(注) のような設備ありの表記を判定し、結果には出典の記号をそのまま表示します。name は施設名または駅名です。toilet_name、floor、鉄道会社・路線、notes も確認できます。検索結果の id は現行CSVの管理番号などを使った識別子です。
CLIで使う
uvx --python 3.12 --from git+https://github.com/koizumikento/tokyo-open-data-mcp.git@main tokyo-open-data-mcp find-accessible-toilets --latitude 35.6936 --longitude 139.7036 --source-kind rail --require-universal-sheet --limit 3結果は標準出力にUTF-8のJSONで返ります。
Pythonライブラリとして使う
自分のPythonプロジェクト(pyproject.toml があるディレクトリ)で依存関係に追加します。
uv add "git+https://github.com/koizumikento/tokyo-open-data-mcp.git@main"次のコードを example.py に保存し、同じディレクトリで uv run python example.py を実行します。
import asyncio
from tokyo_open_data_mcp import find_accessible_toilets
result = asyncio.run(
find_accessible_toilets(35.6936, 139.7036, limit=3, require_universal_sheet=True)
)
print(result["items"])既にイベントループがある場合は関数を直接 await してください。
データの更新
東京都のデータカタログから、公共施設などと鉄道駅のCSVを取得します。検索対象は、削除年月が空欄で、有効なJGD2011座標があるトイレです。
updated_atは検索対象のCSVにある作成・変更・削除年月の最新値です(YYYY-MM)。dataset_titleとcatalog_updated_atはカタログの情報です。filesにCSVごとのURLとHTTPの更新日時、checked_atに取得・再確認した時刻を返します。同じプロセス内では15分間キャッシュします。その後の最初の検索でカタログを読み直し、同じURLのCSVは、配信元が提供するETagやLast-Modifiedを使って再確認します。期限後の再確認に失敗した場合はエラーになります。
データには公表時点の情報が掲載されています。当日の設備や利用可否は施設・駅の案内を確認してください。
出典と利用条件
コードはMIT Licenseです。東京都福祉局の「車椅子使用者対応トイレのバリアフリー情報」を取得し、距離の計算と絞り込みを行っています。東京都福祉局の案内・データカタログ・データのライセンス(CC BY 4.0)
開発
uv sync --locked
uv run ruff check .
uv run ty check
uv run pytest
uv buildAvailable Tools
1 toolfind_accessible_toiletsARead-onlyIdempotent
Find nearest listed wheelchair-accessible toilets in Tokyo facilities and railway stations.
Set equipment flags to require every selected feature. A universal sheet is an adult changing
bed, distinct from a baby changing table. Omit source_kind to search both types of location.
Inputs: latitude (required), longitude (required), limit, source_kind, +4 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of confusing it with another tool in the set. Its purpose is clearly distinct by default.
The single tool follows a clear snake_case verb_noun pattern: find_accessible_toilets. With only one name there is no inconsistency.
A single tool is very thin for a server named tokyo-open-data-mcp, which suggests a broader open-data surface. The count is appropriate only if the server is intentionally scoped to accessible toilet lookup.
The surface covers nearest wheelchair-accessible toilet lookup but lacks supporting operations such as retrieving facility details, listing/filtering by area or station, or accessing other Tokyo open-data resources. This creates significant gaps for the apparent server scope.
Maintenance
Related MCP Connectors
Find toilets, trash cans, coin lockers, smoking areas, vending machines and stamps in Japan.
Find the nearest public toilet worldwide. Read-only tools, no account, no API key.
Purpose-aware accessibility scoring for every coordinate in Japan.
Japan Places — stores, stations and other facilities near a point or a named Japanese station, for…
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to Tokyo's WBGT (Wet Bulb Globe Temperature) heat index forecast and real-time data from multiple observation points using Japan's Ministry of the Environment official data for heat stroke prevention.3MIT
- AlicenseAqualityDmaintenanceWheelchair accessibility data for 105,000+ locations across 15 US states. Enables search, details, and feedback submission through natural language.555 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for finding nearby public toilets in Seoul, with real-time open status and accessibility filters.MIT
- FlicenseNot gradedqualityDmaintenanceProvides Japanese station accessibility and hazard data via MCP tools, including toilet information, public toilet locations, and official hazard categories.1-