Skip to content

nuotsu/mlb

Repository files navigation

$$\      $$\ $$\       $$$$$$$\
$$$\    $$$ |$$ |      $$  __$$\
$$$$\  $$$$ |$$ |      $$ |  $$ |
$$\$$\$$ $$ |$$ |      $$$$$$$\ |
$$ \$$$  $$ |$$ |      $$  __$$\
$$ |\$  /$$ |$$ |      $$ |  $$ |
$$ | \_/ $$ |$$$$$$$$\ $$$$$$$  |
\__|     \__|\________|\_______/ .TheOhtani.com

MLB (Mitchell's Live scoreBug)

MLB Scorebug & MLB Stats API Playground

Screenshots

Schedule view (with live data): game view

Game details view: Game details view

MLB Stats API Playground: Stats API Playground

Tip

Replace https://statsapi.mlb.com/api/v1/... with https://mlb.theohtani.com/api/v1/... to show results in the API Playground.

MCP

An MCP server that exposes the MLB Stats API — schedule, standings, player stats, transactions, and more — to any AI client.

Setup

Claude Desktop / Cursor / other MCP clients:

{
  "mcpServers": {
    "mlb": {
      "url": "https://mlb.theohtani.com/mcp"
    }
  }
}

Claude CLI:

claude mcp add --transport http mlb https://mlb.theohtani.com/mcp

For local use, clone the repo and run node mcp/dist/mcp/src/index.js via stdio transport.

Example prompts

"Compare the last 7 days of transactions for contending teams — who made the most aggressive moves and what does it signal about their roster?"

"Who are the top OPS hitters playing today, and how do their stats split between home and away games this season?"

Credits & References

Archive

TODO

  • code folding > show children count (use mutationObserver attachment)

About

Track MLB games, explore stats, and query the Stats API, all in one app.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors