Connections & Capabilities
Connects To
Capabilities
Quickstart
Install
npx -y @smithery/cli install ns-server --client claudeConfig
{
"mcpServers": {
"ns-server": {
"command": "npx",
"args": [
"-y",
"ns-mcp-server"
],
"env": {
"NS_API_KEY": "your_api_key_here"
}
}
}
}Exposed MCP Tools (5)
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.
Safety Assessment
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.
- Read-only access to train schedules and station information.
- No direct control over railway operations.
- API key authentication adds a layer of security.
- Limited scope of functionality reduces potential attack surface.
- Exposure of NS API key if not properly secured.
- Potential for information disclosure if responses are not sanitized.
- Reliance on external NS API introduces a dependency risk.
- No built-in rate limiting could lead to excessive API usage.
