Query stops, routes, real-time arrivals, vehicle positions, and schedules from OneBusAway transit APIs via MCP. STDIO or Streamable HTTP.
Setup
Choose your client, copy the config, then fill in any required environment variables.
Local
claude mcp add onebusaway --env ONEBUSAWAY_API_KEY='<ONEBUSAWAY_API_KEY>' -- npx -y @cyanheads/onebusaway-mcp-server~/.codex/config.toml
[mcp_servers.onebusaway]
command = "npx"
args = ["-y", "@cyanheads/onebusaway-mcp-server"]
env = { ONEBUSAWAY_API_KEY = "<ONEBUSAWAY_API_KEY>" }
# codex mcp add onebusaway --env ONEBUSAWAY_API_KEY='<ONEBUSAWAY_API_KEY>' -- npx -y @cyanheads/onebusaway-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"onebusaway": {
"command": "npx",
"args": [
"-y",
"@cyanheads/onebusaway-mcp-server"
],
"env": {
"ONEBUSAWAY_API_KEY": "<ONEBUSAWAY_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"onebusaway": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cyanheads/onebusaway-mcp-server"
],
"env": {
"ONEBUSAWAY_API_KEY": "<ONEBUSAWAY_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"onebusaway": {
"command": "npx",
"args": [
"-y",
"@cyanheads/onebusaway-mcp-server"
],
"env": {
"ONEBUSAWAY_API_KEY": "<ONEBUSAWAY_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"onebusaway": {
"command": "npx",
"args": [
"-y",
"@cyanheads/onebusaway-mcp-server"
],
"env": {
"ONEBUSAWAY_API_KEY": "<ONEBUSAWAY_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"onebusaway": {
"command": "npx",
"args": [
"-y",
"@cyanheads/onebusaway-mcp-server"
],
"env": {
"ONEBUSAWAY_API_KEY": "<ONEBUSAWAY_API_KEY>"
}
}
}
}Remote
claude mcp add --transport http onebusaway https://onebusaway.caseyjhand.com/mcp~/.codex/config.toml
[mcp_servers.onebusaway]
url = "https://onebusaway.caseyjhand.com/mcp"
# codex mcp add onebusaway --url https://onebusaway.caseyjhand.com/mcp~/.cursor/mcp.json
{
"mcpServers": {
"onebusaway": {
"url": "https://onebusaway.caseyjhand.com/mcp"
}
}
}.vscode/mcp.json
{
"servers": {
"onebusaway": {
"type": "http",
"url": "https://onebusaway.caseyjhand.com/mcp"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"onebusaway": {
"httpUrl": "https://onebusaway.caseyjhand.com/mcp"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"onebusaway": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://onebusaway.caseyjhand.com/mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"onebusaway": {
"url": "https://onebusaway.caseyjhand.com/mcp"
}
}
}Environment variables
ONEBUSAWAY_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.