Labsco
tysonwu logo

norikae-mcp

18

from tysonwu

🚃 乗換案内MCP - 乗り換え検索 / Norikae MCP - Japanese train route search using Yahoo! Transit

🔥🔥🔥✓ VerifiedFreeAdvanced setup

乗換案内MCP 🚃 / Norikae MCP

npm version License: MIT

日本の電車乗り換え検索ができるMCP(Model Context Protocol)サーバーです。 Yahoo!乗換案内のデータを使用して、駅から駅への最適なルートを検索できます。

An MCP (Model Context Protocol) server for searching train routes in Japan. Uses Yahoo! Transit data to find optimal routes between stations.

機能 / Features

  • 🚉 駅から駅への乗り換えルート検索 / Station-to-station route search
  • 🔀 経由駅の指定(最大3駅)/ Via station specification (up to 3 stations)
  • ⏰ 指定時刻での検索(出発・到着時刻指定)/ Departure or arrival time specification
  • 💰 IC運賃の表示 / IC card fare display
  • 🔄 乗り換え回数・所要時間の比較 / Transfer count and travel time comparison

使用できるツール / Available Tools

search_route

駅から駅への電車ルートを検索します。

Search for train routes between stations.

パラメータ / Parameters:

パラメータ必須説明 / Description
fromstring出発駅名 / Departure station (e.g., 東京, 新宿)
tostring到着駅名 / Arrival station (e.g., 九段下, 横浜)
viastring[]-経由駅名の配列(最大3駅)/ Via stations array (max 3)
yearnumber-出発年 / Year (default: current)
monthnumber-出発月 / Month (default: current)
daynumber-出発日 / Day (default: current)
hournumber-時 / Hour (default: current)
minutenumber-分 / Minute (default: current)

検索オプション / Search Options:

パラメータデフォルト説明 / Description
timeTypedeparture | arrival | first_train | last_train | unspecifieddeparture時刻指定タイプ / Time type
ticketic | cashic運賃タイプ / Fare type
seatPreferencenon_reserved | reserved | greennon_reserved座席指定 / Seat preference
walkSpeedfast | slightly_fast | slightly_slow | slowslightly_slow歩く速度 / Walking speed
sortBytime | transfer | faretime並び順 / Sort order

交通手段オプション / Transport Options:

パラメータデフォルト説明 / Description
useAirlinebooleantrue空路を使う / Use airlines
useShinkansenbooleantrue新幹線を使う / Use Shinkansen
useExpressbooleantrue有料特急を使う / Use express trains
useHighwayBusbooleantrue高速バスを使う / Use highway buses
useLocalBusbooleantrue路線バスを使う / Use local buses
useFerrybooleantrueフェリーを使う / Use ferries

開発 / Development

# リポジトリをクローン / Clone the repository
git clone https://github.com/YOUR_USERNAME/norikae-mcp.git
cd norikae-mcp

# 依存関係のインストール / Install dependencies
npm install

# ビルド / Build
npm run build

# 開発モード / Development mode (watch)
npm run dev

# テスト実行 / Run tests
npm test

技術詳細 / Technical Details

  • MCP SDK: @modelcontextprotocol/sdk
  • データソース / Data source: Yahoo!乗換案内 (transit.yahoo.co.jp)
  • ランタイム / Runtime: Node.js 18+

注意事項 / Notes

  • このMCPはYahoo!乗換案内のWebページをスクレイピングしています This MCP scrapes Yahoo! Transit web pages
  • 個人利用を想定しています Intended for personal use
  • Yahoo! JAPANの利用規約をご確認ください Please check Yahoo! JAPAN's terms of service
  • リアルタイムの遅延情報は含まれない場合があります Real-time delay information may not be included

ライセンス / License

MIT