Get live scores, schedules, standings, team and player data for NFL, NBA, MLB, NHL, soccer, and more via MCP. STDIO or Streamable HTTP.
- ✓Open-source license (Apache-2.0)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
git clone https://github.com/cyanheads/sports-mcp-server{
"mcpServers": {
"sports": {
"command": "node",
"args": ["/path/to/sports-mcp-server/dist/index.js"]
}
}
}MCP Servers overview
<div align="center">
<h1>@cyanheads/sports-mcp-server</h1>
<p><b>Get live scores, schedules, standings, team and player data for NFL, NBA, MLB, NHL, soccer, and more via MCP. STDIO or Streamable HTTP.</b>
<div>8 Tools</div>
</p>
</div>
<div align="center">
[](./CHANGELOG.md) [](./LICENSE) [](https://github.com/users/cyanheads/packages/container/package/sports-mcp-server) [](https://modelcontextprotocol.io/) [](https://www.npmjs.com/package/@cyanheads/sports-mcp-server) [](https://www.typescriptlang.org/) [](https://bun.sh/)
</div>
<div align="center">
[](https://github.com/cyanheads/sports-mcp-server/releases/latest/download/sports-mcp-server.mcpb) [](https://cursor.com/en/install-mcp?name=sports-mcp-server&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBjeWFuaGVhZHMvc3BvcnRzLW1jcC1zZXJ2ZXIiXX0=) [](https://vscode.dev/redirect?url=vscode:mcp/install?%7B%22name%22%3A%22sports-mcp-server%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40cyanheads%2Fsports-mcp-server%22%5D%7D)
[](https://www.npmjs.com/package/@cyanheads/mcp-ts-core)
</div>
---
## Overview
Live and historical sports data from ESPN, MLB StatsAPI, and TheSportsDB. Check scores, schedules, and standings, and look up teams and players across the NFL, NBA, MLB, NHL, major soccer leagues, and college football and basketball.
### Tools
| Tool | Description |
|:-----|:------------|
| `sports_find_team` | Resolve a team name or partial name to canonical records and source IDs across providers. |
| `sports_find_player` | Resolve a player name to canonical TheSportsDB records with ID, team, position, and bio fields. |
| `sports_get_scores` | Live and final scores for a league on a given date, optionally filtered by team. |
| `sports_get_game` | Game metadata, period scores, team totals, provider top performers, and paged scoring plays. |
| `sports_get_schedule` | Upcoming and past fixtures for a team or league over a date range. |
| `sports_get_standings` | Current standings or league table for a league and season. |
| `sports_get_team` | Team detail combining metadata, roster, recent results, and upcoming fixtures. |
| `sports_get_player` | Player details from TheSportsDB — biography, team, position, and physical stats. |
## Capability reference
### `sports_find_team` <sub>tool</sub>
- Free-text `query` (max 200 characters) with an optional `league` filter
- Returns team metadata with `espnId`/`mlbId`/`tsdbId` cross-references merged across providers; `totalFound` counts returned records
- Failed ESPN/MLB lookups appear in `unavailableSources`; no results returns `no_match`, or `sources_unavailable` if a source failed. The free TheSportsDB key can return incomplete results
---
### `sports_find_player` <sub>tool</sub>
- Free-text `query` (max 200 characters); optional `sport` is advisory and does not filter
- Returns player IDs, name, team, position, nationality, birth date, and thumbnail; `no_match` when none is found
- The default key `3` limits searches to one record
---
### `sports_get_scores` <sub>tool</sub>
- `league` required; `date` (YYYY-MM-DD) defaults to today in US Eastern time; optional `team_name` filters games
- Returns home/away teams, score, status, period or clock, and UTC start time. Empty results carry `reason`, `emptyReason` (`no_games` or `no_team_matches`), and `notice`
- `limit` defaults to 100 (max 200) and `offset` to 0; responses include `availableGames`, `totalReturned`, `effectiveLimit`, `offset`, `truncated`, and `nextOffset`
---
### `sports_get_schedule` <sub>tool</sub>
- `league` required; optional `team_name`, `date_from`/`date_to`, `limit` (default 100, max 200), and `offset` (default 0). A single date bound requests that day; reversed dates fail
- Returns home/away teams and scores, status, UTC start time, venue, and source. A partial `team_name` must identify one team: `ambiguous_team` lists candidates, `team_not_found` means no match
- Dated requests cover at most seven days. Responses include `requestedDateFrom`/`requestedDateTo`, `servedDateFrom`/`servedDateTo`, `availableGames`, `effectiveLimit`, `offset`, and `truncated`; follow `nextOffset`, then `nextDateFrom` as `date_from`
---
### `sports_get_game` <sub>tool</sub>
- Required `league` and source-prefixed numeric `game_id` from scores, schedules, or team detail; `mlb:` IDs require `league: "mlb"`
- Returns game metadata plus `periodScores`, `teamStats`, `leaders`, and `scoringPlays`; missing values are null. Scheduled games return metadata only; `game_not_found` for a missing or wrong-league game. Athlete IDs belong to ESPN or MLB, not TheSportsDB
- `limit` defaults to 20 (max 50) and `offset` to 0; responses include `totalCount`, `returnedCount`, `servedFrom`/`servedTo`, `effectiveLimit`, and `nextOffset`
---
### `sports_get_standings` <sub>tool</sub>
- `league` required; optional `season` (4-digit year), current season if omitted
- Returns rank, group (conference, table, or MLB division), wins, losses, ties, NHL overtime losses, points, winning percentage, division rank, streak, and games behind; inapplicable values are null. `season_not_found` when the season has no data
- `limit` defaults to 100 (max 200) and `offset` to 0; responses include `availableStandings`, `totalReturned`, `effectiveLimit`, `offset`, `truncated`, and `nextOffset`. If the MLB team lookup fails, `unavailableSources` lists `standings_team_metadata`
---
### `sports_get_team` <sub>tool</sub>
- `league` and `team_name` required; exact names or abbreviations win, otherwise a partial name must identify one team (`ambiguous_team` lists candidates, `team_not_found` means no match)
- Returns metadata, active roster, the latest 5 completed results, and the next 3 scheduled fixtures
- NFL rosters exclude injured-reserve/out, suspended, and practice-squad players; missing jerseys and venues are null
---
### `sports_get_player` <sub>tool</sub>
- `player_id` accepts a `tsdb:`-prefixed ID (from `sports_find_player`) or a raw numeric TheSportsDB ID
- Returns biography, team, position, nationality, birth date, height, weight, and thumbnail; `player_not_found` when the ID doesn't resolve
- `espnId` is filled when TheSportsDB supplies one, otherwise null
## Features
Built on [`@cyanheads/mcp-ts-core`](https://github.com/cyanheads/mcp-ts-core): stdio and Streamable HTTP transports, pluggable auth (`none` / `jwt` / `oauth`), swappable storage (`in-memory`, `filesystem`, `Supabase`, `Cloudflare KV/R2/D1`), structured logging with optional OpenTelemetry tracing.
Sports-specific:
- Three keyless sources — ESPN site API, MLB StatsAPI, and TheSportsDB (free tier key `3`)
- League routing sends each query to the best source per sport
- Normalized output types across sources — `NormalizedGame`, `NormalizedTeam`, `NormalizedPlayer`, `NormalizedStanding`
- Cross-source team IDs merged onto one record by `sports_find_team`
- Off-season queries return a notice (standings) or `games: []` with a `reason` (scoreboards) instead of an error
Agent-friendly output:
- Source provenance on every record — `source: 'espn' | 'mlbstats' | 'thesportsdb'`
- Typed error reasons (`no_match`, `sources_unavailable`, `team_not_found`, `ambiguous_team`, `player_not_found`, `season_not_found`, `game_not_found`, `incompatible_game_source`), each with a recovery hint
- Typed empty-result notices and pagination or schedule-window metadata on every response
- Provider text is escaped and treated as data, never instructions
## Getting started
Add the following to your MCP client configuration file.
```json
{
"mcpServers": {
"sports": {
"type": "stdio",
"command": "bunx",
"args": ["@cyanheads/sports-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
```
Or with npx (no Bun required):
```json
{
"mcpServers": {
"sports": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@cyanheads/sports-mcp-server@latest"],
"env": {
"MCP_TRANSPORT_TYPE": "stdio",
"MCP_LOG_LEVEL": "info"
}
}
}
}
```
Or with Docker:
```json
{
"mcpServers": {
"sports": {
"type": "stdio",
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "MCP_TRANSPORT_TYPE=stdio",
"ghcr.io/cyanheads/sports-mcp-server:latest"
]
}
}
}
```
For Streamable HTTP, set the transport and start the server:
```sh
MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp
```
### Prerequisites
- [Bun v1.4.0](https://bun.sh/) or higher (or Node.js v24+).
- No API keys required — ESPN and MLB StatsAPI are fully keyless; TheSportsDB ships with a free public test key (`3`).
### Installation
1. **Clone the repository:**
```sh
git clone https://github.com/cyanheads/sports-mcp-server.git
```What people ask about sports-mcp-server
What is cyanheads/sports-mcp-server?
+
cyanheads/sports-mcp-server is mcp servers for the Claude AI ecosystem. Get live scores, schedules, standings, team and player data for NFL, NBA, MLB, NHL, soccer, and more via MCP. STDIO or Streamable HTTP. It has 2 GitHub stars and its last recorded update is dated 2026-10-17.
How do I install sports-mcp-server?
+
You can install sports-mcp-server by cloning the repository (https://github.com/cyanheads/sports-mcp-server) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is cyanheads/sports-mcp-server safe to use?
+
Our security agent has analyzed cyanheads/sports-mcp-server and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains cyanheads/sports-mcp-server?
+
cyanheads/sports-mcp-server is maintained by cyanheads. The last recorded GitHub activity is dated 2026-10-17, with 0 open issues.
Are there alternatives to sports-mcp-server?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy sports-mcp-server to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/cyanheads-sports-mcp-server)<a href="https://claudewave.com/repo/cyanheads-sports-mcp-server"><img src="https://claudewave.com/api/badge/cyanheads-sports-mcp-server" alt="Featured on ClaudeWave: cyanheads/sports-mcp-server" width="320" height="64" /></a>More MCP Servers
Reverse engineer anything with agents, from app behavior down to native binaries.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ A Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev