ekigraph
Click on "Install 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., "@ekigraphWhich stations are next to Shin-Shibaura?"
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.
ekigraph π
English | ζ₯ζ¬θͺ
An MCP server that lets AI answer questions about Japan's railway network correctly. It gives the AI on-the-spot access to which stations are connected by track β all 9,043 stations nationwide.
Why I built this
When I'm heading out or planning a trip, I often want to know something about train stations. I could search for it, but that's a hassle β so I just ask an AI.
The problem: when the topic is trains, AI often lies without hesitation.
Here's a case that actually happened.
I asked an AI "which station is next to Shin-Shibaura?", and it replied:
Shin-Shibaura is a new station on the TΕkaidΕ Freight Line; the next stop is Hama-Kawasaki.
This is completely false. Shin-Shibaura is on the Tsurumi Line, and its neighbors are Asano and Umi-Shibaura.
The AI didn't say "I don't know." It fabricated an answer, nonexistent railway line included.
For major stations like Shinjuku or Shibuya, the answers are usually accurate. But for minor stations and local lines like this one, the odds of hallucination go up.
Related MCP server: MLIT Geospatial MCP Server
What you get
Connect ekigraph, and the AI answers from correct data instead of its own memory.
ekigraph is built on open data, so anyone can use it.
9,043 stations and 593 lines nationwide β from shinkansen to subways, local private railways, and trams
The data comes from the Japanese government's official open data (MLIT National Land Numerical Information)
It ships as a bundled 2 MB file β no API key, free, works offline
How to use
# Claude Code β one line
claude mcp add ekigraph -- uvx --from git+https://github.com/yataro-fujinaga/ekigraph ekigraphFor Claude Desktop or any other MCP client, add this to your config:
{ "ekigraph": { "command": "uvx", "args": ["--from", "git+https://github.com/yataro-fujinaga/ekigraph", "ekigraph"] } }After that, just talk normally and the AI returns correct answers.
Even a casual question like "what was next to Urawa again?" gets a proper answer, backed by ekigraph.
Tools
neighbors(station)β returns the stations connected by track, with line namessubgraph(station, radius)β returns the raw track data around a station, as-is
Out of scope
Timetables, fares, express-stop patterns, and delay information are not covered.
ekigraph holds one thing only: how the tracks connect.
Station aggregation (counting Shibuya's JR, Metro, Tokyu and Keio as one station) follows MLIT's official cross-operator station group codes.
About the data
Source: National Land Numerical Information (Railway Data, N02-24) by MLIT Japan, processed and redistributed under the Government of Japan Standard Terms of Use v2.0 (CC BY 4.0 compatible)
To rebuild it yourself:
uv run python etl/build_graph_n02.py(downloads the source data, derives the adjacency, and validates it β fully automatic)
License
Code: MIT. For the bundled data's attribution, see 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