odpt_station_timetable
Pack: odpt · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/odpt_station_timetable for the schema, then POST the same URL with its arguments for the data.
Scheduled departure timetable at a Japanese train station (Tokyo Metro, JR East, Toei and other Japan railway operators): destination, departure time, train type and direction, for weekday/Saturday/holiday calendars. Resolve the station first with odpt_resolve_station to get its exact station_id (or pass a plain station name and this will resolve it for you, taking the first match). Needs an ODPT developer consumer key via _apiKey; Pipeworx supplies one if omitted. Example: odpt_station_timetable({ station: “Shinjuku”, operator: “Tokyo Metro” }).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
station | string | yes | Station name (English or Japanese) or an exact odpt.Station id from odpt_resolve_station. |
operator | string | no | Operator to search when station is a plain name and could match more than one operator, e.g. “Tokyo Metro”. |
railway | string | no | Optional: keep only this railway, e.g. “odpt.Railway:TokyoMetro.Marunouchi”. |
calendar | string | no | Optional: keep only this calendar, e.g. “odpt.Calendar:Weekday” or “odpt.Calendar:SaturdayHoliday”. |
_apiKey | string | yes | Optional: your own ODPT developer consumer key. Pipeworx supplies one if omitted. |
Example call
Arguments
{
"station": "Hakusan",
"operator": "Toei"
}
curl
curl -X POST https://gateway.pipeworx.io/odpt/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"odpt_station_timetable","arguments":{"station":"Hakusan","operator":"Toei"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('odpt_station_timetable', {
"station": "Hakusan",
"operator": "Toei"
});
Response shape
| Field | Type | Description |
|---|---|---|
source | string | |
station | object | |
timetables | array | |
data_as_of | string |
Full JSON Schema
{
"type": "object",
"properties": {
"source": {
"type": "string"
},
"station": {
"type": "object",
"properties": {
"station_id": {
"type": "string"
},
"name_ja": {
"type": "string"
},
"name_en": {
"type": "string"
},
"operator": {
"type": "string"
},
"railway": {
"type": "string"
},
"station_code": {
"type": "string"
},
"lat": {
"type": "number"
},
"lon": {
"type": "number"
}
},
"additionalProperties": true
},
"timetables": {
"type": "array",
"items": {
"type": "object",
"properties": {
"@id": {
"type": "string"
},
"@type": {
"type": "string"
},
"dc:date": {
"type": "string"
},
"@context": {
"type": "string"
},
"dct:issued": {
"type": "string"
},
"owl:sameAs": {
"type": "string"
},
"odpt:railway": {
"type": "string"
},
"odpt:station": {
"type": "string"
},
"odpt:calendar": {
"type": "string"
},
"odpt:operator": {
"type": "string"
},
"odpt:railDirection": {
"type": "string"
},
"odpt:stationTimetableObject": {
"type": "array",
"items": {
"type": "object",
"properties": {
"odpt:train": {
"type": "string"
},
"odpt:trainType": {
"type": "string"
},
"odpt:trainNumber": {
"type": "string"
},
"odpt:departureTime": {
"type": "string"
},
"odpt:destinationStation": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
}
}
},
"additionalProperties": true
}
},
"data_as_of": {
"type": "string"
}
},
"additionalProperties": true
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the odpt pack
{
"mcpServers": {
"odpt": {
"url": "https://gateway.pipeworx.io/odpt/mcp"
}
}
}
See Getting Started for client-specific install steps.