Loading...
npx -y @smithery/cli install ns-server --client claude{
"mcpServers": {
"ns-server": {
"command": "npx",
"args": [
"-y",
"ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}get_departuresRetrieves real-time departure information for a given station.
Read-only operation, no modification of data.
get_arrivalsRetrieves upcoming train arrival information for a given station.
Read-only operation, no modification of data.
plan_journeyFinds optimal travel routes between two stations with real-time updates.
Read-only operation, only provides travel suggestions.
get_station_detailsAccesses comprehensive information about a specific train station.
Read-only operation, provides static station information.
get_ticket_priceRetrieves pricing information for train tickets between two locations.
Read-only operation, provides pricing information.
This server is relatively safe due to its read-only nature and reliance on an API key for authentication. However, proper handling of the NS API key and sanitization of responses are crucial to prevent potential risks. Avoid storing the API key directly in code.