Yahoo Fantasy Baseball MCP Server
This server lets you manage and analyze your Yahoo Fantasy Baseball team through an AI assistant, integrating Yahoo Fantasy data with advanced stats from MLB, Baseball Savant, and FanGraphs.
Authentication & Setup
Check setup status, start OAuth login, complete authorization, log out/reset, and set your default league/team.
League & Team Info
List all leagues, get league overviews, view standings, fetch scoring categories, and see recent transactions (adds, drops, trades).
Roster Management
View your roster with slot/injury status, with or without stats. Get aggregated team stats by week or full season.
Matchups & Scoreboard
View the league scoreboard for any week, or a specific team's matchup history across the season.
Player Research
Search players by name, rank/browse free agents and rostered players by any stat, get player stats for specific dates, and list MLB probable starting pitchers with optional fantasy ownership context.
Advanced Analytics
Deep-dive on individual players or your entire roster using Statcast (xBA, xSLG, xwOBA, exit velocity, barrel rate), FanGraphs (WAR, wRC+, FIP, K%, BB%), and MLB Stats API splits — all tailored to your league's scoring categories.
Fetches player statistics and advanced metrics from the MLB Stats API, including traditional stats (G, PA, HR, RBI, R, SB, BA, OBP, SLG, OPS, BABIP) and Statcast data (exit velocity, barrel rate, expected stats like xBA, xSLG, xwOBA, sprint speed) via integration with Baseball Savant and FanGraphs.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yahoo Fantasy Baseball MCP Servershow my roster and player stats"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fantasy Baseball for Claude & Codex
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.
Yahoo's Fantasy Sports API supplies league and team data, while the MLB Stats API, Baseball Savant Statcast, and FanGraphs provide advanced player data and probable starting pitchers for tomorrow or any requested date.
Automated browser-based workflows handle lineup adjustments and approved add/drop actions (Claude in Chrome or the Codex browser plugin), because Yahoo's write-scope API is deprecated.
Contents
Related MCP server: flaim
Install
Pick the app you use — you only need one. Then continue to Connect your Yahoo team.
Claude Desktop
1. Add the extension
Download
fantasy-baseball-vX.X.X.mcpbfrom the Releases page.In Claude Desktop, go to Settings → Extensions.
Drag the file into the Extensions window and click Install.
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)
Download
fantasy-baseball-skill-vX.X.X.zipfrom the Releases page.Go to Settings → Capabilities and turn on code execution.
Go to Customize → Skills, click + → Create skill → Upload a skill, and choose the ZIP.
Codex desktop app
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:
Source:
dingyiyi0226/fantasy-baseball-mcpGit ref:
masterSparse paths: (leave blank)
Open 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-lineupandadd-drop-playerworkflows 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.
Connect your Yahoo team
You only do this once, and it's the same in both apps: type fantasy start in a chat and
follow the prompts.
a) Create your free Yahoo app
Yahoo requires each person to use their own keys. Go to developer.yahoo.com/apps/create and fill in:
Application Name: anything, e.g.
My Fantasy HelperHomepage URL:
https://localhost:8488Redirect URI(s):
https://localhost:8488/callbackOAuth Client Type:
Confidential ClientAPI Permissions:
Fantasy Sports → ReadClick Create App
Yahoo then gives you a Client ID and a Client Secret.
b) Enter those keys
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.)
c) Authorize and finish
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.
Talk to your team
Say this... | To do this |
| Show your current roster |
| Summarize this week's matchup |
| Show league standings |
| Find free-agent targets |
| List probable starters; add “who's a free agent?” to check availability |
| Compare recent performance with Statcast and FanGraphs indicators |
| Makes one approved lineup swap in the signed-in Yahoo browser, then verifies it saved |
| Applies the agreed start/bench moves from a roster review |
| Adds that exact free agent when there is an open roster spot |
| Submits only that exact approved add/drop pair and verifies the resulting roster |
| Reviews the current matchup, lineup, open slots, and free-agent or streamer opportunities |
| Recommends exact start/bench swaps and explains why |
| Grades lineup choices, adds/drops, and category strategy for this week or the week just finished |
| 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.
Good to know
Your Yahoo app credentials are stored locally in
~/.fantasy-baseball-mcp/config.json.For batters, we use season, 14-day, and 30-day splits; xBA, xSLG, xwOBA, and their expected-vs-actual gaps; exit velocity, hard-hit rate, barrel rate, launch angle, sweet-spot rate, and batted-ball distance; WAR, wRC+, wOBA, ISO, BABIP, K%, BB%, SwStr%, GB%, FB%, HR/FB, and LD%.
For pitchers, we use season, 14-day, and 30-day splits; xBA, xSLG, and xwOBA allowed; exit velocity, hard-hit rate, barrel rate, and launch angle allowed; WAR, ERA, FIP, xFIP, WHIP, K%, BB%, SwStr%, GB%, FB%, HR/FB, BABIP, and LOB%.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dingyiyi0226/fantasy-baseball-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server