M

MCP JR东日本 延误工具

@tinjyuu/mcp-jr-east-delay
0 Stars 303 次浏览 tinjyuu 更新于 2026-08-23

一个提供JR东日本铁路线路实时延误信息的MCP服务器,可通过像Claude Desktop这样的MCP客户端通过“getDelays”工具访问。

该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

JR East Delay Information MCP Server

Setup

sh
npm install

Build

sh
npm run build

Test

sh
npx vitest run

Start the Server

sh
node build/index.js

Alternatively, you can also run it as a command using the bin setting in package.json:

sh
npx jr-east-delay

Usage from MCP Clients

You can obtain JR East delay information by calling the getDelays tool from MCP clients such as Claude Desktop or MCP Inspector.

Example of MCP Client Configuration

When using this server with clients like Claude Desktop or MCP Inspector, please configure your settings file (e.g., claude_desktop_config.json) as follows.

Example 1: When the node command is available in the PATH

json
"jr-east-delay": {
"command": "node",
"args": ["/Users/your-path/mcp-jr-east-delay/build/index.js"]
}

Example 2: Specifying the absolute path to node

json
"jr-east-delay": {
"command": "/Users/your-username/.nodebrew/current/bin/node",
"args": ["/Users/your-path/mcp-jr-east-delay/build/index.js"]
}

  • Replace your-username with your actual username.
  • Replace your-path with the actual path on your system.
  • If the node command is not available in the PATH, specify the absolute path.

Development Notes

  • Tests are written in src/index.test.ts.
  • Use MCP Inspector or similar clients for testing MCP protocol communication.

相关 MCP 服务