Are you the author? Sign in to claim
Yahoo Fantasy Baseball skills and mcp for Claude and Codex — automated lineup adjustments, Statcast analytics, and free-
Manage your Yahoo Fantasy Baseball team from Claude or Codex with built-in skills for daily roster reviews, weekly post-mortems, automated lineup adjustments, and free-agent scouting.
Roster-changing actions are supported through Claude in Chrome or the Codex Browser plugin, while other features use Yahoo Fantasy Sports API.
For deeper player-performance analysis, we use the MLB Stats API, Baseball Savant Statcast, and FanGraphs.
Pick the app you use — you only need one. Then continue to Connect your Yahoo team.
1. Add the extension
fantasy-baseball-vX.X.X.mcpb from the Releases page.Leave the Client ID / Client Secret boxes empty for now — you'll fill them in during Connect your Yahoo team.
2. Add the Fantasy Baseball skill (guided start/sit and roster-review workflow)
fantasy-baseball-skill-vX.X.X.zip from the Releases page.Requires Node.js (nodejs.org/download — install the LTS build). The plugin bundles the Yahoo tools and the Fantasy Baseball skill in one step.
In the Codex app, go to Settings → Plugins → Add plugin marketplace.
Add from a GitHub repo:
dingyiyi0226/fantasy-baseball-mcpmasterOpen the Fantasy Baseball marketplace and install the Fantasy Baseball plugin.
Sign in to Yahoo in Codex's in-app browser (one time, for lineup and add/drop moves).
The Yahoo authorization below lets the plugin read your roster. Browser-driven lineup and add/drop moves also need Yahoo Fantasy to be logged in inside Codex's in-app browser. In a Codex chat, ask:
Open https://baseball.fantasysports.yahoo.com in the in-app browser so I can sign in.
When the in-app browser tab opens, sign in to Yahoo there. After that, adjust-lineup and
add-drop-player workflows can use the same in-app browser session. If a workflow opens Yahoo and
finds that the tab is not logged in, it will stop and report the login state as an error instead
of trying another browser.
You only do this once, and it's the same in both apps: type fantasy start in a chat and
follow the prompts.
Yahoo requires each person to use their own keys. Go to developer.yahoo.com/apps/create and fill in:
My Fantasy Helperhttps://localhost:8488https://localhost:8488/callbackConfidential ClientFantasy Sports → ReadYahoo then gives you a Client ID and a Client Secret.
Paste the Client ID and Client Secret into the chat when asked, then say fantasy start
again. (In Claude Desktop you can instead enter them under Settings → Extensions → Fantasy
Baseball.)
Open the authorization link and click Agree. If your browser warns about a self-signed
certificate, click Advanced and continue to localhost. Once you see Authorization
complete!, say fantasy authorize.
The assistant will find your leagues, set your default team, and finish setup.
Stuck? Type
fantasy statusto see what's still missing.
| Say this... | To do this |
|---|---|
fantasy show roster | Show your current roster |
fantasy my matchup | Summarize this week's matchup |
fantasy standings | Show league standings |
fantasy who should I add? | Find free-agent targets |
who's pitching tomorrow? | List probable starters; add “who's a free agent?” to check availability |
analyze Shohei Ohtani | Compare recent performance with Statcast and FanGraphs indicators |
move <player> from BN to <slot> | Makes one approved lineup swap in the signed-in Yahoo browser, then verifies it saved |
set my lineup today | Applies the agreed start/bench moves from a roster review |
add <free agent> | Adds that exact free agent when there is an open roster spot |
add <free agent> and drop <player> | Submits only that exact approved add/drop pair and verifies the resulting roster |
review my roster today | Reviews the current matchup, lineup, open slots, and free-agent or streamer opportunities |
who on my bench should I start tonight? | Recommends exact start/bench swaps and explains why |
weekly review | Grades lineup choices, adds/drops, and category strategy for this week or the week just finished |
can I still win this week? | Identifies realistic category flips and the best remaining path |
Browser actions use the signed-in Yahoo session: Codex's in-app browser or Claude's connected Chrome. They stop if Yahoo is not signed in or the requested move is ambiguous. You can always ask for advice first; an add/drop is submitted only after you explicitly approve the exact player or pair.
~/.fantasy-baseball-mcp/config.json.MIT
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows