MCP JR东日本 延误工具
一个提供JR东日本铁路线路实时延误信息的MCP服务器,可通过像Claude Desktop这样的MCP客户端通过“getDelays”工具访问。
服务介绍
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-usernamewith your actual username. - Replace
your-pathwith the actual path on your system. - If the
nodecommand 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.