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 分