MCP server proxying MLB API to provide baseball stats, player info, game data, and team details via MCP tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Mlb API MCP.
get_mlb_standingsCurrent MLB standings with league and season filters
get_mlb_scheduleGame schedules for specific dates, ranges, or teams
get_mlb_team_infoDetailed team information
get_mlb_player_infoPlayer biographical information
get_mlb_boxscoreComplete game boxscores
get_mlb_linescoreInning-by-inning game scores
A Model Context Protocol (MCP) server that provides comprehensive access to MLB statistics and baseball data through a FastMCP-based interface.
This MCP server acts as a bridge between AI applications and MLB data sources, enabling seamless integration of baseball statistics, game information, player data, and more into AI workflows and applications.
All MLB/statistics/game/player/team/etc. functionality is exposed as MCP tools, not as RESTful HTTP endpoints. These tools are accessible via the /mcp/ endpoint using the MCP protocol. For a list of available tools and their descriptions, visit /tools/ when the server is running.
get_mlb_standings - Current MLB standings with league and season filtersget_mlb_schedule - Game schedules for specific dates, ranges, or teamsget_mlb_team_info - Detailed team informationget_mlb_player_info - Player biographical informationget_mlb_boxscore - Complete game boxscoresget_mlb_linescore - Inning-by-inning game scoresget_mlb_game_highlights - Video highlights for gamesget_mlb_game_scoring_plays - Play-by-play data with event filteringget_mlb_game_pace - Game duration and pace statisticsget_mlb_game_lineup - Detailed lineup information for gamesget_multiple_mlb_player_stats - Traditional player statisticsget_mlb_sabermetrics - Advanced sabermetric statistics (WAR, wOBA, etc.)get_mlb_roster - Team rosters with various roster typesget_mlb_search_players - Search players by nameget_mlb_search_teams - Search teams by nameget_mlb_players - All players for a sport/seasonget_mlb_teams - All teams for a sport/seasonget_mlb_draft - Draft information by yearget_mlb_awards - Award recipientsget_current_date - Current dateget_current_time - Current timeFor the full list and detailed descriptions, see /tools/ or /docs when the server is running.
The following HTTP endpoints are available:
/ - Redirects to /docs/docs - Interactive API documentation and tool listing/health/ - Health check endpoint/mcp/info - MCP server information/tools/ - List of all available MCP tools/mcp/ (POST) - MCP protocol endpoint for MCP-compatible clientsNote: There are no RESTful HTTP endpoints for MLB/statistics/game/player/team/etc. All such functionality is accessed via MCP tools through the
/mcp/endpoint.
To install MLB API Server for Claude Desktop automatically via Smithery:
To run the container in your local timezone, pass the TZ environment variable (e.g., for New York):
Replace America/New_York with your desired IANA timezone name.
The server will be available at http://localhost:8000 with:
http://localhost:8000/mcp/http://localhost:8000/docsYou can also run the container with additional options:
Run the MCP server locally:
The server will start with:
http://localhost:8000/mcp/http://localhost:8000/docsThis server can be integrated into any MCP-compatible application. The server provides tools for:
Once the server is running, visit http://localhost:8000/docs for comprehensive API documentation including:
/tools/This project uses:
Now, the linting checks will run automatically whenever you commit code. You can also run them manually:
Contributions are welcome! Please feel free to submit issues or pull requests.
This project is open source. Please check the license file for details.
This project includes comprehensive test coverage with pytest and coverage reporting.
mlb_api.py and generic_api.pyhtmlcov/index.html), and XML (coverage.xml)The test suite includes:
The mocked test suite protects this repo's own logic but does not exercise the real upstream MLB Stats API / pybaseball services, whose response shapes are outside this repo's control. To verify the tools still work against live data (e.g. after upstream field renames or contract changes), run the one-time scan:
The scan writes a full JSON report to scripts/live_scan_report.json (gitignored).
This is a manual verification pass, not part of the automated CI suite.
When adding new functionality:
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/guillochon-mlb-api-mcp)<a href="https://allmcps.com/mcp/guillochon-mlb-api-mcp"><img src="https://allmcps.com/api/badge/guillochon-mlb-api-mcp?style=directory" alt="Mlb API MCP on AllMCPs" /></a>