Typed TypeScript client for the Transport for London API: friendly wrappers, full raw coverage, static station sequences, and UI helpers for official line colours.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add tfl-ts --env TFL_APP_KEY='<TFL_APP_KEY>' -- npx -y tfl-ts~/.codex/config.toml
[mcp_servers.tfl-ts]
command = "npx"
args = ["-y", "tfl-ts"]
env = { TFL_APP_KEY = "<TFL_APP_KEY>" }
# codex mcp add tfl-ts --env TFL_APP_KEY='<TFL_APP_KEY>' -- npx -y tfl-ts~/.cursor/mcp.json
{
"mcpServers": {
"tfl-ts": {
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tfl-ts": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tfl-ts": {
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tfl-ts": {
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tfl-ts": {
"command": "npx",
"args": [
"-y",
"tfl-ts"
],
"env": {
"TFL_APP_KEY": "<TFL_APP_KEY>"
}
}
}
}Environment variables
TFL_APP_KEY
Replace the placeholders with your own credentials and keep them out of version control.