{
  "markdown": "# The Blue Alliance MCP Server\n\nA 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.\n\n## Features\n\n- **Team Information**: Get detailed team profiles, participation history, awards, and media\n- **Event Data**: Access event details, rankings, matches, and elimination alliances\n- **Match Results**: Retrieve match data with scores, alliances, and breakdowns\n- **Historical Data**: Query data from 1992 to the current year\n- **Type Safety**: All responses validated with Zod schemas\n- **Comprehensive Coverage**: 35+ tools covering all major TBA API endpoints\n\n## Installation\n\n### npm (Recommended)\n\n```bash\nnpm install -g @withinfocus/tba-mcp-server\n```\n\n### Docker\n\nPull the image from GitHub Container Registry:\n\n```bash\ndocker pull ghcr.io/withinfocus/tba-mcp-server:latest\n```\n\nOr build locally:\n\n```bash\ngit clone https://github.com/withinfocus/tba-mcp-server.git\ncd tba-mcp-server\ndocker build -t tba-mcp-server .\n```\n\n## Configuration\n\n1. Get an API key from [The Blue Alliance](https://www.thebluealliance.com/account)\n\n2. Set your API key as an environment variable:\n\n```bash\nexport TBA_API_KEY=your_api_key_here\n```\n\nOr create a `.env` file:\n\n```bash\nTBA_API_KEY=your_api_key_here\n```\n\n## Usage\n\n### With npm\n\nAdd to your MCP client configuration (e.g., Claude Desktop):\n\n```json\n{\n  \"mcpServers\": {\n    \"tba\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@withinfocus/tba-mcp-server\"],\n      \"env\": {\n        \"TBA_API_KEY\": \"your_api_key_here\"\n      }\n    }\n  }\n}\n```\n\n### With Docker\n\nAdd to your MCP client configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"tba\": {\n      \"command\": \"docker\",\n      \"args\": [\n        \"run\",\n        \"--rm\",\n        \"-i\",\n        \"--init\",\n        \"-e\",\n        \"TBA_API_KEY=your_api_key_here\",\n        \"ghcr.io/withinfocus/tba-mcp-server:latest\"\n      ]\n    }\n  }\n}\n```\n\nOr run directly:\n\n```bash\ndocker run --rm -i --init \\\n  -e TBA_API_KEY=your_api_key_here \\\n  ghcr.io/withinfocus/tba-mcp-server:latest\n```\n\n## Available Tools\n\n### Team Information (24 tools)\n\nAccess comprehensive team data including profiles, participation history, events, matches, awards, and media.\n\n**Key tools**: `get_team`, `get_team_events`, `get_team_matches`, `get_team_awards`, `get_team_media`\n\n### Event Information (19 tools)\n\nQuery event details, participants, rankings, matches, and analytics.\n\n**Key tools**: `get_event`, `get_events`, `get_event_teams`, `get_event_rankings`, `get_event_matches`, `get_event_oprs`\n\n### Match Information (3 tools)\n\nRetrieve detailed match data including scores, alliances, and robot tracking.\n\n**Key tools**: `get_match`, `get_match_simple`, `get_match_zebra`\n\n### District Tools (8 tools)\n\nAccess district rankings, events, and team information.\n\n**Key tools**: `get_districts`, `get_district_rankings`, `get_district_events`, `get_district_teams`\n\n### General/Utility Tools (6 tools)\n\nPaginated team listings and API status information.\n\n**Key tools**: `get_teams`, `get_teams_by_year`, `get_status`\n\n### Complete Documentation\n\n- **[All Tools](docs/TOOLS.md)** - Complete reference for all 35+ tools with parameters and examples\n- **[Data Schemas](docs/SCHEMAS.md)** - Detailed schema documentation for all response types\n\n## Quick Examples\n\n### Get team information\n\n```typescript\n// Get detailed team profile\nget_team(team_key: \"frc86\")\n\n// Get team's events in a year\nget_team_events(team_key: \"frc86\", year: 2024)\n\n// Get team's awards\nget_team_awards(team_key: \"frc86\", year: 2024)\n```\n\n### Analyze an event\n\n```typescript\n// Get event details\nget_event(event_key: \"2024casj\")\n\n// Get participating teams\nget_event_teams(event_key: \"2024casj\")\n\n// Get rankings\nget_event_rankings(event_key: \"2024casj\")\n\n// Get elimination alliances\nget_event_alliances(event_key: \"2024casj\")\n```\n\n### Get match data\n\n```typescript\n// Get detailed match information\nget_match(match_key: \"2024casj_qm1\")\n\n// Get robot tracking data (if available)\nget_match_zebra(match_key: \"2024casj_qm1\")\n```\n\n## Contributing\n\nContributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, testing guidelines, and how to add new tools.\n\n## Related Links\n\n- [The Blue Alliance](https://www.thebluealliance.com/) - Official FRC data source\n- [TBA API Documentation](https://www.thebluealliance.com/apidocs/v3) - Official API docs\n- [Model Context Protocol](https://modelcontextprotocol.io/) - MCP specification\n- [FIRST Robotics Competition](https://www.firstinspires.org/robotics/frc) - Official FRC site\n",
  "bytes": 4652,
  "sha": "364bff78b75b0d7a8f089b48eabe65947b11b9c304873662890f1cc47e6efd98",
  "repo_slug": "withinfocus/tba-mcp-server",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_withinfocus_tba_f544522d/readme"
}