Gives agents Transport for NSW realtime alerts on disruptions and planned works, filterable by transport mode.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add tfnsw-realtime-alerts --env NSW_TRANSPORT_API_KEY='<NSW_TRANSPORT_API_KEY>' -- npx -y tfnsw-realtime-alerts-mcp-server~/.codex/config.toml
[mcp_servers.tfnsw-realtime-alerts]
command = "npx"
args = ["-y", "tfnsw-realtime-alerts-mcp-server"]
env = { NSW_TRANSPORT_API_KEY = "<NSW_TRANSPORT_API_KEY>" }
# codex mcp add tfnsw-realtime-alerts --env NSW_TRANSPORT_API_KEY='<NSW_TRANSPORT_API_KEY>' -- npx -y tfnsw-realtime-alerts-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"tfnsw-realtime-alerts": {
"command": "npx",
"args": [
"-y",
"tfnsw-realtime-alerts-mcp-server"
],
"env": {
"NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tfnsw-realtime-alerts": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tfnsw-realtime-alerts-mcp-server"
],
"env": {
"NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tfnsw-realtime-alerts": {
"command": "npx",
"args": [
"-y",
"tfnsw-realtime-alerts-mcp-server"
],
"env": {
"NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tfnsw-realtime-alerts": {
"command": "npx",
"args": [
"-y",
"tfnsw-realtime-alerts-mcp-server"
],
"env": {
"NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tfnsw-realtime-alerts": {
"command": "npx",
"args": [
"-y",
"tfnsw-realtime-alerts-mcp-server"
],
"env": {
"NSW_TRANSPORT_API_KEY": "<NSW_TRANSPORT_API_KEY>"
}
}
}
}Environment variables
NSW_TRANSPORT_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.