Connects Claude to The Blue Alliance API for querying FIRST Robotics Competition data going back to 1992. You get 35+ tools covering teams, events, matches, districts, and awards. Pull team profiles and participation history, grab event rankings and elimination brackets, or dig into match scores with alliance breakdowns. Includes zebra motion tracking data when available. Responses are validated with Zod schemas. You'll need a TBA API key from their site. Useful if you're analyzing FRC performance stats, building team scouting tools, or just need quick answers about competition results without hitting the API directly.
A Model Context Protocol (MCP) server that provides access to The Blue Alliance API for FIRST Robotics Competition data. Enables AI assistants and other MCP clients to retrieve comprehensive FRC team, event, and match information.
npm install -g @withinfocus/tba-mcp-server
Pull the image from GitHub Container Registry:
docker pull ghcr.io/withinfocus/tba-mcp-server:latest
Or build locally:
git clone https://github.com/withinfocus/tba-mcp-server.git
cd tba-mcp-server
docker build -t tba-mcp-server .
Get an API key from The Blue Alliance
Set your API key as an environment variable:
export TBA_API_KEY=your_api_key_here
Or create a .env file:
TBA_API_KEY=your_api_key_here
Add to your MCP client configuration (e.g., Claude Desktop):
{
"mcpServers": {
"tba": {
"command": "npx",
"args": ["-y", "@withinfocus/tba-mcp-server"],
"env": {
"TBA_API_KEY": "your_api_key_here"
}
}
}
}
Add to your MCP client configuration:
{
"mcpServers": {
"tba": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"--init",
"-e",
"TBA_API_KEY=your_api_key_here",
"ghcr.io/withinfocus/tba-mcp-server:latest"
]
}
}
}
Or run directly:
docker run --rm -i --init \
-e TBA_API_KEY=your_api_key_here \
ghcr.io/withinfocus/tba-mcp-server:latest
Access comprehensive team data including profiles, participation history, events, matches, awards, and media.
Key tools: get_team, get_team_events, get_team_matches, get_team_awards, get_team_media
Query event details, participants, rankings, matches, and analytics.
Key tools: get_event, get_events, get_event_teams, get_event_rankings, get_event_matches, get_event_oprs
Retrieve detailed match data including scores, alliances, and robot tracking.
Key tools: get_match, get_match_simple, get_match_zebra
Access district rankings, events, and team information.
Key tools: get_districts, get_district_rankings, get_district_events, get_district_teams
Paginated team listings and API status information.
Key tools: get_teams, get_teams_by_year, get_status
// Get detailed team profile
get_team(team_key: "frc86")
// Get team's events in a year
get_team_events(team_key: "frc86", year: 2024)
// Get team's awards
get_team_awards(team_key: "frc86", year: 2024)
// Get event details
get_event(event_key: "2024casj")
// Get participating teams
get_event_teams(event_key: "2024casj")
// Get rankings
get_event_rankings(event_key: "2024casj")
// Get elimination alliances
get_event_alliances(event_key: "2024casj")
// Get detailed match information
get_match(match_key: "2024casj_qm1")
// Get robot tracking data (if available)
get_match_zebra(match_key: "2024casj_qm1")
Contributions are welcome! See CONTRIBUTING.md for development setup, testing guidelines, and how to add new tools.
TBA_API_KEY*secretThe Blue Alliance API key