The Blue Alliance

io.github.withinfocus由 GitHub 账号 withinfocus 发布v1.4.0更新于 Oct 24, 2026

The Blue Alliance MCP Server

概览

AI 生成的概览

让助手查询 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 的网络连接。
安装前请注意
TBA_API_KEY 凭据会写入客户端配置或环境变量,请勿放入共享配置或代码仓库。工具均为只读查询,但查询内容会发送到 The Blue Alliance 的第三方 API。

安装

在 SourceWeft 中

  1. 打开 控制台中的 The Blue Alliance,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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)

bash
npm install -g @withinfocus/tba-mcp-server

Docker

Pull the image from GitHub Container Registry:

bash
docker pull ghcr.io/withinfocus/tba-mcp-server:latest

Or build locally:

bash
git clone https://github.com/withinfocus/tba-mcp-server.gitcd tba-mcp-serverdocker build -t tba-mcp-server .

Configuration

  1. Get an API key from The Blue Alliance

  2. Set your API key as an environment variable:

bash
export TBA_API_KEY=your_api_key_here

Or create a .env file:

bash
TBA_API_KEY=your_api_key_here

Usage

With npm

Add to your MCP client configuration (e.g., Claude Desktop):

json
{  "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:

json
{  "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:

bash
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

typescript
// Get detailed team profileget_team(team_key: "frc86")
// Get team's events in a yearget_team_events(team_key: "frc86", year: 2024)
// Get team's awardsget_team_awards(team_key: "frc86", year: 2024)

Analyze an event

typescript
// Get event detailsget_event(event_key: "2024casj")
// Get participating teamsget_event_teams(event_key: "2024casj")
// Get rankingsget_event_rankings(event_key: "2024casj")
// Get elimination alliancesget_event_alliances(event_key: "2024casj")

Get match data

typescript
// Get detailed match informationget_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

来源:README.md,提交 1be89a9

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.4.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分