Labsco
robcerda logo

MLB SportRadar

โ˜… 1

from robcerda

Access MLB game data, standings, and player statistics using the SportRadar API.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeNeeds API keys

MLB SportRadar MCP Server

Model Context Protocol (MCP) server for connecting Claude with the SportRadar MLB API. It provides tools for accessing MLB game data, standings, player statistics, and more through the SportRadar API.

Development and testing

Install development dependencies and run the test suite with:

uv sync --all-extras
pytest -v tests

Running the server locally

To start the server manually (useful when developing or testing), run:

mlb-sportradar-mcp

Alternatively, you can run it directly with:

uv run python src/mlb_sportradar_mcp/server.py

Installing MCP CLI globally

If you want to use mcp run commands, install the MCP CLI globally:

uv tool install "mcp[cli]"

Then you can run:

mcp run src/mlb_sportradar_mcp/server.py

API Endpoints

This MCP server uses the SportRadar MLB API v8 endpoints:

  • Schedule: /en/games/{year}/{month}/{day}/schedule.json
  • Game Summary: /en/games/{game_id}/summary.json
  • Game Boxscore: /en/games/{game_id}/boxscore.json
  • Standings: /en/seasons/{year}/standings.json
  • Player Profile: /en/players/{player_id}/profile.json
  • Team Profile: /en/teams/{team_id}/profile.json
  • League Leaders: /en/seasons/{year}/leaders.json
  • Team Roster: /en/teams/{team_id}/roster.json
  • Injuries: /en/injuries.json

Rate Limits

Please be aware of SportRadar's API rate limits. The trial API typically has lower limits than production keys. Monitor your usage to avoid hitting rate limits.