Skip to main content
Glama

tokyo-open-data-mcp

東京都のオープンデータから、公共施設などや鉄道駅の車椅子使用者対応トイレを緯度・経度で探せます。介助用ベッドやオストメイト設備が必要な場合は、設備条件を指定できます。

uv と Git が必要です。Python 3.12以上に対応しています。APIキーは不要です。

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.json

  • Claude Desktop(macOS) ~/Library/Application Support/Claude/claude_desktop_config.json

  • Cursor .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件)です。

引数

内容

source_kind

facility は公共施設など、rail は鉄道駅。省略すると両方を検索

require_ostomate

オストメイト用設備がある

require_ostomate_warm_water

オストメイト用設備が温水対応

require_universal_sheet

大人も使用できる介助用ベッド(ユニバーサルシート)がある

require_baby_changing_table

乳幼児用おむつ交換台等がある

複数の設備条件を指定すると、すべてを満たすトイレを返します。○ や ○(注) のような設備ありの表記を判定し、結果には出典の記号をそのまま表示します。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から呼び出す

git clone https://github.com/koizumikento/tokyo-open-data-mcp.git
cd tokyo-open-data-mcp
uv sync --locked
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 してください。

データの更新

東京都のカタログで公開されている2種類のCSVを使います。2026年11月10日時点の掲載は令和7年度更新版です。削除年月が入った行や、有効な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 build

Available Tools

1 tool
find_accessible_toiletsA
Read-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

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    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.

    Naming Consistency5/5

    The single tool follows a clear snake_case verb_noun pattern: find_accessible_toilets. With only one name there is no inconsistency.

    Tool Count2/5

    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.

    Completeness2/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Wheelchair accessibility data for 105,000+ locations across 15 US states. Enables search, details, and feedback submission through natural language.
      5
      67 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Provides Japanese station accessibility and hazard data via MCP tools, including toilet information, public toilet locations, and official hazard categories.
      1
      -