Skip to main content
Glama
鉄道駅LOD MCPサーバー

鉄道駅LOD MCPサーバー

by uedayou

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

日本の鉄道の事業者・路線・駅、駅の位置(緯度経度)、路線形状(ポリライン)、路線の営業キロ、駅の乗降客数(2011〜2024年度)、乗換駅・隣接駅の関係が必要なときは、必ずこのサーバーの Tool を使うこと。データソースは鉄道駅LOD(https://uedayou.net/jrslod/、国土数値情報・Wikidata 等を典拠とするオープンライセンス、CC BY-SA 4.0)。駅はポイント、路線はライン(GeoJSON)で返る。ポリゴン(面)や時刻表・運賃・所要時間は扱わない。

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_railwayA

鉄道駅LOD を使って、駅・路線・鉄道事業者をラベル(および別名)の部分一致で検索する。kind で種別を絞り込める。事業者名の表記ゆれ(「JR東日本」⇔「東日本旅客鉄道」)や「〜本線」⇔「〜線」を吸収する。位置や形状が必要な場合は結果の uri を get_railway_geometry に渡す。

get_railway_geometryA

鉄道駅LOD から、指定した駅または路線を GeoJSON Feature として取得する。駅は代表点(Point、geo:lat/long)、路線は形状(MultiLineString、分岐線を含む)。.json(RDF/JSON)を取得してクライアント側で GeoJSON に変換する。駅の properties は uri・name・operator(運営会社)・belongsToLine(所属路線)・lineColor・transferStations(乗換駅、ある駅のみ)・adjacentStations(隣接駅、ある駅のみ)、路線の properties は uri・name・operator・lineColor・publishedLengthKm(営業キロ)。乗降客数は含まない(get_station_passengers を使う)。戻り値の geometry は標準的な GeoJSON(RFC 7946)で、座標は [経度, 緯度] の順。ポリゴン(面)は存在しない。

get_railway_geometriesA

複数の駅・路線をまとめて取得し、1 つの GeoJSON FeatureCollection として返す(最大 50 件)。路線網や駅群を地図に表示する場合はこれを使う。一部が解決できなくても全体は失敗にせず、features から除外して unresolved として注記する。

save_railway_geometries_to_fileA

get_railway_geometries と同じ複数取得だが、結果を会話に含めずローカルファイルへ直接書き出す。応答サイズの上限を回避できる。出典・ライセンス(CC BY-SA 4.0)を出力に明記する。地図をその場で描く依頼には使わない(中身が会話に返らないため)。

list_railway_childrenA

指定した事業者の路線一覧、または路線の駅一覧を取得する(wdt:P527)。事業者→路線→駅のドリルダウンに使う。

list_stations_on_lineB

指定した路線の全駅を、鉄道駅LOD のデータ上の順序で一覧する。分岐を持つ路線では順序が一意でないことがある。

find_nearest_stationsB

指定した緯度経度に近い駅を距離順で返す(逆ジオコーディング)。会社・路線ごとに別エンティティのため、同一物理駅が複数件返ることがある。

list_railway_operatorsA

鉄道駅LOD に収録されている鉄道事業者(鉄道会社・軌道・地下鉄事業者等)の名称を配列で返す(パラメータなし)。

get_railway_line_lengthsA

1 本以上の鉄道路線について、路線形状(ポリライン)から実測した全長(km)を算出し、あわせて公表営業キロ(wdt:P2043、約 87% の路線が保持)を返す。複数路線の比較にも使える。実測長は国土数値情報 N02 の軌道中心線の幾何長で、(1) 事業者分割された路線(東海道線・山陽線・大糸線 等)ではその事業者の担当区間のみ、(2) 支線・貨物短絡線を含む、(3) 球近似の積算、という理由で鉄道各社の営業キロと数%〜数十%ずれる。乖離が大きい場合は lengthNote(operator-segment / includes-branches)で理由を示す。駅(ポイント)は対象外。時刻表・所要時間・運賃は扱わない。

get_station_passengersA

指定した駅(1〜50 駅)の 1 日あたりの乗降客数(人/日、2011〜2024 年度)を年度順に返す。出典は国土数値情報 駅別乗降客数データ。複数の駅を比べる・地図に描くときは、駅ごとに呼ばず 1 回にまとめて渡すこと。集計対象の注記(schema:description)がある場合はあわせて返す。各鉄道事業者が独自に算出した値で、統一的な基準に基づくものではない(事業者をまたいだ比較には注意)。value は常に原本の値。記載誤りの可能性がある年度には補正推定値が estimate として併記される。その場合は原本の値を示したうえで補正推定値があることを伝え、使うかどうかをユーザーに確認すること(確認なしに推定値で置き換えない)。

find_rail_network_pathA

鉄道駅LOD の静的な路線図(隣接駅 wdt:P197・乗換駅 wdt:P833)上を探索し、2 駅間の経路の骨格を返す。時刻表・所要時間・最速経路・列車種別・直通運転は一切考慮しない。直通運転のある区間(例: 副都心線〜東急東横線、上野東京ライン)では乗り換え回数を過大に数える。運行系統(湘南新宿ライン・快速など)は路線として存在しない。長距離では地理的に不自然な経路を返すことがある。結果は「どの路線でどこを経由するか」の目安であり、経路案内サービスの代替ではない。各経路には信頼性の注記(reliability)と検証用の元データ URL(evidence)が付く。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
server-infoBasic runtime info about this MCP server instance

TDQS

A3.9/5.0

Scored across 11 tools

Disambiguation4/5

Most tools have clearly distinct purposes: search, geometry retrieval, nearest stations, passenger counts, line lengths, and pathfinding are well separated. The main overlap is between list_railway_children and list_stations_on_line, since both can be used to obtain stations on a line, though their descriptions help distinguish drill-down hierarchy from ordered station listing.

Naming Consistency5/5

All tool names use consistent snake_case and follow predictable verb_noun patterns such as list_, search_, get_, save_, and find_. Singular/plural variants like get_railway_geometry and get_railway_geometries are used consistently and readably.

Tool Count5/5

The server has 11 tools, which is well within the ideal range and appropriate for a read-only railway LOD service. Each tool covers a meaningful operation such as search, geometry, listing, nearest lookup, passengers, lengths, or pathfinding.

Completeness4/5

The tool surface covers the core lifecycle for a read-only LOD service: discovery, hierarchy drill-down, geometry retrieval, bulk export, nearest lookup, passengers, lengths, and pathfinding. Minor gaps remain, such as no dedicated station/line metadata tool or global line listing independent of an operator, but these are workable through search and geometry tools.