
The Blue Alliance
io.github.withinfocus由 GitHub 账号 withinfocus 发布v1.4.0更新于 Oct 24, 2026
The Blue Alliance MCP Server
概览
让助手查询 The Blue Alliance 的 FIRST 机器人竞赛数据:队伍、赛事、比赛、排名、奖项和赛区。
- 可以做什么
- 将 The Blue Alliance API 封装为 35 个以上的只读工具。可获取队伍资料、参赛历史、奖项和媒体;赛事详情、参赛队伍、排名、比赛和对阵联盟;比赛比分与明细;以及赛区排名和赛事。历史数据可追溯至 1992 年,响应使用 Zod 模式校验。
- 适用场景
- 适合让助手回答关于 FRC 队伍、赛季、赛事或比赛结果的问题,或在不离开对话的情况下获取竞赛数据用于分析。
- 运行要求
- 通过 stdio 在本地运行,通常使用 npm 包 @withinfocus/tba-mcp-server(需要 Node.js)或已发布的 Docker 镜像。需要 The Blue Alliance API 密钥,通过环境变量 TBA_API_KEY 提供,并需要访问 The Blue Alliance API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 The Blue Alliance,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
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)
Docker
Pull the image from GitHub Container Registry:
Or build locally:
Configuration
-
Get an API key from The Blue Alliance
-
Set your API key as an environment variable:
Or create a .env file:
Usage
With npm
Add to your MCP client configuration (e.g., Claude Desktop):
With Docker
Add to your MCP client configuration:
Or run directly:
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
Analyze an event
Get match data
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
来源:README.md,提交 1be89a9
工具
0版本历史
1- v1.4.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分