ekigraph
ekigraph 🚀
English | 日本 語
日本の鉄道網の質問にAIが正しく答えるためのMCPサーバーです。
AIは全国 9,043駅について、どの駅が線路で接続しているかを、その場で参照できます。
これを作った理由
出かけ先や旅行の計画に際して、駅について何か知りたいことがあります。
調べれば済む話ですが、面倒だからAIに聞いてしまます。
問題は、鉄道をテーマにしたとたん、AIが平気で嘘を言うことがあることです。
実際に起きたケースがあります。
AIに「新芝浦の隣の駅はどこ?」と尋ねると、次のように答えました:
新芝浦は東海道貨物線の中間前の新設駅で、隣は浜川崎です。
これは完全に間違い。新芝浦は鶴見線の駅で、隣は浅野と海芝浦です。
AIは、「知らない」と答えはせずに、不存在の路線までも含めて回答でっち上げたのです。
新宿や渋谷のような大きな駅では、回答は正確です。
しかしこのような小さな駅やローカル線となると、幻覚のリスクが高まります。
Related MCP server: MLIT Geospatial MCP Server
得られるもの
ekigraphと繋げば、AIは記憶ではなく正確なデータから答えます。
ekigraphはオープンデータで構築されているので、誰でも利用できます。
全国9,043駅・593路線に対応 — 新幹線から地下鉄、ローカル私鉄、路面電車まで
データは日本政府の公式オープンデータ(MLIT National Land Numerical Information)に基づいてます
2MBのバンドルファイルで提供され — APIキー不要、無料、オフラインで動作
使い方
# Claude Code — one line
claude mcp add ekigraph -- uvx --from git+https://github.com/yataro-fujinaga/ekigraph ekigraphClaude Desktop やその他のMCPクライアントには、設定を追加します:
{ "ekigraph": { "command": "uvx", "args": ["--from", "git+https://github.com/yataro-fujinaga/ekigraph", "ekigraph"] } }その後は、普段通りに話しかけるだけで、AIが正しい答えを返します。
「浦和の隣駅って何だったっけ」という軽い質問にも、え kigraphに基づいた正確な回答が返ってくるのです。
ツール
neighbors(station)— その駅に線路で接続された駅と、線路の名前を返すsubgraph(station, radius)— 駅周辺の未加工の線路データを、そのまま返す
対象外
時刻表、運賃、速達列車の停車駅、遅延情報は 対象外です。
キノハは「線路がどう接続しているか」 持っています。
駅の集約(渋谷のJR・メトロ・東急・京王駅を1駅として扱う)は、MLIT公式の事業者間の駅グループコードに従います。
データについて
出典:国番地理情報(鉄道データ、N02-24)(MLIT Japan)を加工・再配布したものです。
日本政府の利用規約(v2.0)に準拠(CC BY 4.0互換)しています。自分で作り直す場合は:
uv run python etl/build_graph_n02.py
(ソースデータのダウンロードから隣接の導出、検証までを自動で実施します)
ライセンス
コードはMIT。同梱データの著作権表記については、LICENSEをご覧ください。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityBmaintenanceJapan Operations OS for AI agents — 14 knowledge domains covering regulations, protocols, calendar, travel, food culture, language, disaster safety, daily life, and persistent memory. 31 MCP tools via REST + Streamable HTTP.31MIT
- AlicenseNot gradedqualityFmaintenanceEnables LLMs to search and retrieve Japanese real estate data through unified access to the MLIT Real Estate Information Library API, supporting over 25 geospatial datasets for interactive queries.183MIT
- AlicenseBqualityCmaintenanceEnables route planning and transit information retrieval for Japan using the public Transit API. Supports searching stations, planning routes, and checking departures.10MIT
- AlicenseAqualityDmaintenanceConnects AI assistants to Swiss Federal Railways (SBB/CFF/FFS) data: train schedules, station search, ticket prices, and direct ticket purchase links.698Inno Setup
Related MCP Connectors
The internet's infrastructure graph for AI agents - 46B nodes and edges, free trial via 2 HTTP calls
Shared semantic graph for AI reviews, classification and structured memory across AI assistants.
Persistent memory and knowledge graph for AI assistants — keyword + vector + graph search.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yataro-fujinaga/ekigraph'
If you have feedback or need assistance with the MCP directory API, please join our Discord server