MLB APISAFE
A Model Context Protocol (MCP) server that provides comprehensive access to MLB statistics and baseball data through a FastMCP-based interface.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
[](https://github.com/guillochon/mlb-api-mcp/actions/workflows/ci.yml) [](https://smithery.ai/server/@guillochon/mlb-api-mcp)
A Model Context Protocol (MCP) server that provides comprehensive access to MLB statistics and baseball data through a FastMCP-based interface.
Overview
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.
Features
MLB Data Access
- Current standings for all MLB teams with flexible filtering by league, season, and date
- Game schedules and results with date range support
- Player statistics including traditional and sabermetric stats (WAR, wOBA, wRC+)
- Team information and rosters with various roster types
- Live game data including boxscores, linescores, and play-by-play
- Game highlights and scoring plays
- Player and team search functionality
- Draft information and award recipients
- Game pace statistics and lineup information
MCP Tools
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.
Key MCP Tools
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 biograph
6f102ec3206fOBSERVED · 2026-10-08Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mlb-api-mcp -- uvx mlb-api-mcp
{
"mcpServers": {
"mlb-api-mcp": {
"command": "uvx",
"args": [
"mlb-api-mcp"
]
}
}
}Exposed tools (24)
23 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
get_current_date | read | Get the current date. |
get_current_time | read | Get the current time. |
get_mlb_awards | read | |
get_mlb_boxscore | read | |
get_mlb_draft | read | |
get_mlb_game_highlights | read | |
get_mlb_game_lineup | read | |
get_mlb_game_pace | read | |
get_mlb_game_scoring_plays | read | |
get_mlb_linescore | read | |
get_mlb_player_info | read | |
get_mlb_players | read | |
get_mlb_roster | read | |
get_mlb_sabermetrics | read | |
get_mlb_schedule | write | |
get_mlb_search_players | read | |
get_mlb_search_teams | read | |
get_mlb_standings | read | |
get_mlb_team_info | read | |
get_mlb_teams | read | |
get_multiple_mlb_player_stats | read | |
get_statcast_batter | read | |
get_statcast_pitcher | read | |
get_statcast_team | read |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (2 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (3)
.cursorignore
.pre-commit-config.yaml
curl -LsSf https://astral.sh/uv/install.sh | sh
Gates applied: no_behavioural_pass.
6f102ec3206ffull audit observations/trust-audit/mcp-server/guillochon__mlb-api.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 6f102ec3206f | SAFE | B | 89 | first audit |
Questions
What is the MLB API MCP server?
A Model Context Protocol (MCP) server that provides comprehensive access to MLB statistics and baseball data through a FastMCP-based interface.
What tools does MLB API expose?
24 in total: 23 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is MLB API safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does MLB API need?
No credential environment variables were found in its source, so it appears to need none.
How does MLB API run?
It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as mlb-api-mcp.
How current is this page?
The grade is for one exact copy of the source (6f102ec3206f), read on 2026-10-08. The repository is watched and re-audited when it changes.