JR East Delay Information
STDIOMCP server for retrieving JR East train delay information.
MCP server for retrieving JR East train delay information.
npm install
npm run build
npx vitest run
node build/index.js
または、package.jsonのbin設定により
npx jr-east-delay
でコマンドとしても実行できます。
Claude DesktopやMCP InspectorなどのMCPクライアントから「getDelays」ツールを呼び出すことで、JR東日本の遅延情報を取得できます。
Claude DesktopやMCP Inspector等のクライアントで本サーバーを利用する場合、設定ファイル(例: claude_desktop_config.json
)に以下のように記述してください。
node
コマンドがパスに通っている場合"jr-east-delay": { "command": "node", "args": ["/Users/your-path/mcp-jr-east-delay/build/index.js"] }
node
の絶対パスを指定する場合"jr-east-delay": { "command": "/Users/your-username/.nodebrew/current/bin/node", "args": ["/Users/your-path/mcp-jr-east-delay/build/index.js"] }
your-username
の部分はご自身の環境に合わせて変更してください。your-path
の部分はご自身の環境に合わせて変更してください。node
コマンドがパスに通っていない場合は絶対パスで指定してください。src/index.test.ts
に記述