Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Sports MCP Server

by cyanheadsversion 0.6.0i★ 2iRuns on your computerRepository ↗
Registry nameio.github.cyanheads/sports-mcp-server

How to install

What it does

Get live scores, schedules, standings, team and player data for NFL, NBA, MLB, NHL, and soccer.

  • Connects Runs on your computer
  • Account or key No key needed
  • Category Games, sports, food & learning

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity6/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score18/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Sports MCP Server. Follow https://mcp.popnx.com/i/cyanheads-sports-mcp-server.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 14, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

Let AI install it

Copy this message into a Claude chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Sports MCP Server for Claude on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "sports": { "command": "npx", "args": [ "-y", "@cyanheads/sports-mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Sports MCP Server tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "sports": {
          "command": "npx",
          "args": [
            "-y",
            "@cyanheads/sports-mcp-server"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Sports MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Sports MCP Server or shows a Sports MCP Server tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • THESPORTSDB_API_KEY TheSportsDB API key. Defaults to '123', whose team/player searches have a one-record limit. A premium key enables broader searches.
  • MCP_LOG_LEVEL Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). · default info

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Sports MCP Server yet

Sports MCP Server runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Sports MCP Server

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Games, sports, food & learning that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Sports MCP Server for Claude Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user sports -- npx -y @cyanheads/sports-mcp-server 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Sports MCP Server tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add --scope user sports -- npx -y @cyanheads/sports-mcp-server
  4. Type /mcp in Claude Code

    You should see Sports MCP Server listed as connected

  5. Try it

    Use Sports MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Sports MCP Server or shows a Sports MCP Server tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • THESPORTSDB_API_KEY TheSportsDB API key. Defaults to '123', whose team/player searches have a one-record limit. A premium key enables broader searches.
  • MCP_LOG_LEVEL Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). · default info

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Sports MCP Server for Cursor on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "sports": { "command": "npx", "args": [ "-y", "@cyanheads/sports-mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Sports MCP Server tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Sports MCP Server and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Sports MCP Server or shows a Sports MCP Server tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • THESPORTSDB_API_KEY TheSportsDB API key. Defaults to '123', whose team/player searches have a one-record limit. A premium key enables broader searches.
  • MCP_LOG_LEVEL Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). · default info

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Sports MCP Server for VS Code on this computer, in this order: 1) Check Node.js with node -v. If it is missing, tell me to install it from https://nodejs.org/en/download; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "sports": { "type": "stdio", "command": "npx", "args": [ "-y", "@cyanheads/sports-mcp-server" ] } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) No key is needed. 5) Do what we agreed, then check that the Sports MCP Server tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Node.js (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    node -v
    • A version number such as v26.13.1 = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Open the official download page, pick the LTS version and the click-through installer: .pkg on Mac · .msi on Windows. Double-click and follow it to the end. No curl command needed

    Open the Node.js download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: node -v

    Install once; it works for everything that needs Node.js

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Sports MCP Server and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Sports MCP Server or shows a Sports MCP Server tool in the answer, you are connected

2 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • THESPORTSDB_API_KEY TheSportsDB API key. Defaults to '123', whose team/player searches have a one-record limit. A premium key enables broader searches.
  • MCP_LOG_LEVEL Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). · default info

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Sports MCP Server💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user sports -- npx -y @cyanheads/sports-mcp-server

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "sports": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/sports-mcp-server"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "sports": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/sports-mcp-server"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "sports": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/sports-mcp-server"
      ]
    }
  }
}

Values you fill in

  • THESPORTSDB_API_KEY secret env
    TheSportsDB API key. Defaults to '123', whose team/player searches have a one-record limit. A premium key enables broader searches.
  • MCP_LOG_LEVEL env
    Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
197/wk
Licencei
Apache-2.0
Connection
Runs on your computer
Transport
stdio, streamable-http
Latest versioni
0.6.0
Published to registryi
Oct 30, 2026
Code last changedi
Oct 30, 2026
Maker
cyanheads
Packages
npm: @cyanheads/sports-mcp-server
npm: @cyanheads/sports-mcp-server
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account cyanheads, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 20 days ago

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

No entries on OSV.dev for @cyanheads/sports-mcp-server@0.6.0

Checks only this package version, not every dependency · checked Nov 15, 2026

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/cyanheads-sports-mcp-server.svg)](https://mcp.popnx.com/en/servers/cyanheads-sports-mcp-server)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Games, sports, food & learningi

  • More stars than 91% of the other 1623 servers in this category
  • Published to the registry more recently than 56% of the other 1623 servers in this category
  • Basic checks equal to or better than 99% of the other 1623 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Sports MCP Server safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 20 days ago, and the latest version (0.6.0) reached the registry 20 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Anime Garden, WilmAI, Lumify Sports Intelligence, Savecraft, GoodWatch

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

WilmAI

Finland's Wilma school system for parents and students: schedule, homework, exams and messages.

by aikarjalGrowing↓ 1.4K/wk★ 89 Stars for the whole repoUpdated 10 days ago

Runs on your computer✓ service owner · wilm.ai

Savecraft

Savecraft serves real save game data and expert game knowledge to AI assistants.

by joshsymondsEarly★ 13Updated 7 months ago

Runs in the cloudRepo archived✓ service owner · savecraft.gg

GoodWatch

Find movies and TV shows, track watches, and get suggestions based on your taste.

by alp82Early★ 50 Stars for the whole repoUpdated 30 days ago

Runs in the cloud✓ service owner · goodwatch.app
Compared with similar ones
This one
Sports MCP Server
Anime GardenWilmAILumify Sports IntelligenceSavecraftGoodWatch
Runs whereInstalls on your computerRuns in the cloud, nothing to installInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyNoNoNoYesNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/43/34/43/44/4
LicenseApache-2.0AGPL-3.0MITMITApache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

@cyanheads/sports-mcp-server Get live scores, schedules, standings, team and player data for NFL, NBA, MLB, NHL, soccer, and more via MCP. STDIO or Streamable HTTP. 8 Tools


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
ToolDescription
sports_find_teamResolve a team name or partial name to canonical records and source IDs across providers.
sports_find_playerResolve a player name to canonical TheSportsDB records with ID, team, position, and bio fields.
sports_get_scoresLive and final scores for a league on a given date, optionally filtered by team.
sports_get_gameGame metadata, period scores, team totals, provider top performers, and paged scoring plays.
sports_get_scheduleUpcoming and past fixtures for a team or league over a date range.
sports_get_standingsCurrent standings or league table for a league and season.
sports_get_teamTeam detail combining metadata, roster, recent results, and upcoming fixtures.
sports_get_playerPlayer details from TheSportsDB — biography, team, position, and physical stats.
Agent skill

The sports-guide covers complete fixture ranges, game recaps, standings comparisons, and player identity checks. It ships with plugin installs, npm, Docker, and the desktop bundle, and is available to MCP clients as a skill resource.

Capability reference

sports_find_team tool
  • 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 tool
  • 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 123 limits searches to one record

sports_get_scores tool
  • 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 tool
  • 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 tool
  • 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 tool
  • 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 tool
  • 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 tool
  • 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: 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 123)
  • 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 it to Claude Code:

claude mcp add sports-mcp-server -- npx -y @cyanheads/sports-mcp-server

For other clients, add this to the MCP config file:

{

"mcpServers": { "sports-mcp-server": { "command": "npx", "args": ["-y", "@cyanheads/sports-mcp-server"] } } }

No API keys are required. THESPORTSDB_API_KEY optionally enables a premium key for broader player and team searches; the default free key returns at most one record. For Docker or a source build, see Running the server.

Configuration

VariableDescriptionDefault
THESPORTSDB_API_KEYTheSportsDB API key. The free key limits searches to one record.123
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTPort for HTTP server.3010
MCP_SESSION_MODEHTTP session mode: stateful, stateless, or auto.stateless
MCP_AUTH_MODEAuth mode: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (RFC 5424).info
LOGS_DIRDirectory for log files (Node.js only). /logs
LOG_TOOL_FAILURE_PAYLOADSLog failed tool arguments and results, redacted by key name and capped by LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES (default 16384). Free-form values are not redacted.false
OTEL_ENABLEDEnable OpenTelemetry instrumentation.false
OTEL_EXPORTER_OTLP_ENDPOINTBase OTLP/HTTP URL for traces and metrics.Unset
OTEL_EXPORTER_OTLP_LOGS_ENDPOINTOTLP log endpoint.Unset

See .env.example for the full list of optional overrides.

Running the server

Local development

Requires Bun v1.4.0 or higher and Node.js v24+.

git clone https://github.com/cyanheads/sports-mcp-server.git

cd sports-mcp-server && bun install cp .env.example .env

All overrides are optional.

Serving commands execute Node, including when launched with bun run. Bun handles dependency resolution and build tooling; ESPN requests run under Node.

  • Build and run:
  # One-time build

bun run rebuild

Run the built server

bun run start:stdio

or

bun run start:http

  • Run checks and tests:
  bun run devcheck   # Lint, format, typecheck, security

bun run test # Vitest test suite bun run lint:mcp # Validate MCP definitions against spec

Docker
docker run --rm -p 3010:3010 ghcr.io/cyanheads/sports-mcp-server:latest

The image builds with Bun, runs the production server under Node, defaults to HTTP transport and stateless session mode, and logs to /var/log/sports-mcp-server. For stdio, use docker run -i --rm -e MCP_TRANSPORT_TYPE=stdio ghcr.io/cyanheads/sports-mcp-server:latest. To build locally, use docker build -t sports-mcp-server .; OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

|

Only the beginning is shown; read the rest in the repo