tba
The Blue Alliance MCP Server
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"@withinfocus/tba-mcp-server": {
"args": [
"@withinfocus/tba-mcp-server@1.1.0"
],
"command": "npx"
}
}
}
可用工具 (5 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
tavily_search 14 个参数 需填 1 项
Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.
必填参数:query
tavily_extract 6 个参数 需填 1 项
Extract content from URLs. Returns raw page content in markdown or text format.
必填参数:urls
tavily_crawl 11 个参数 需填 1 项
Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.
必填参数:url
tavily_map 8 个参数 需填 1 项
Map a website's structure. Returns a list of URLs found starting from the base URL.
必填参数:url
tavily_research 2 个参数 需填 1 项
Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.
必填参数:input
服务介绍
The Blue Alliance MCP Server
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.
# Features
- Team Information: Get detailed team profiles, participation history, awards, and media
- Event Data: Access event details, rankings, matches, and elimination alliances
- Match Results: Retrieve match data with scores, alliances, and breakdowns
- Historical Data: Query data from 1992 to the current year
- Type Safety: All responses validated with Zod schemas
- Comprehensive Coverage: 35+ tools covering all major TBA API endpoints
# Installation
# # npm (Recommended)
npm install -g @withinfocus/tba-mcp-server
# # Docker
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 .
# Configuration
-
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
# Usage
# # With npm
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"
}
}
}
}
# # With Docker
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
# Available Tools
# # Team Information (24 tools)
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
# # Event Information (19 tools)
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
# # Match Information (3 tools)
Retrieve detailed match data including scores, alliances, and robot tracking.
Key tools: get_match, get_match_simple, get_match_zebra
# # District Tools (8 tools)
Access district rankings, events, and team information.
Key tools: get_districts, get_district_rankings, get_district_events, get_district_teams
# # General/Utility Tools (6 tools)
Paginated team listings and API status information.
Key tools: get_teams, get_teams_by_year, get_status
# # Complete Documentation
- All Tools - Complete reference for all 35+ tools with parameters and examples
- Data Schemas - Detailed schema documentation for all response types
# Quick Examples
# # Get team information
// 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)
# # Analyze an event
// 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 match data
// Get detailed match information
get_match(match_key: "2024casj_qm1")
// Get robot tracking data (if available)
get_match_zebra(match_key: "2024casj_qm1")
# Contributing
Contributions are welcome! See CONTRIBUTING.md for development setup, testing guidelines, and how to add new tools.
# Related Links
- The Blue Alliance - Official FRC data source
- TBA API Documentation - Official API docs
- Model Context Protocol - MCP specification
- FIRST Robotics Competition - Official FRC site