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.
All Yahoo league reads and writes run through a signed-in browser: Claude in Chrome or the Codex Browser plugin. The supported workflow does not use the Yahoo Fantasy Sports API.
The MCP server remains useful for saving the browser-discovered default team and for deeper player-performance analysis through the MLB Stats API, Baseball Savant Statcast, and FanGraphs.
Yahoo has revoked Fantasy Sports API access for unverified developers. This project therefore uses a signed-in browser for all Yahoo league data and actions; the preserved Yahoo API code is not used in the supported workflow.
Contents
Related MCP server: Yahoo Fantasy Baseball MCP Server
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.
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 public analysis 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.
Continue to Connect your Yahoo team.
Connect your Yahoo team
No Yahoo developer app, Client ID, Client Secret, or OAuth setup is needed.
Codex
In a Codex chat, ask:
Open https://baseball.fantasysports.yahoo.com in the in-app browser so I can sign in.Sign in to Yahoo in that in-app browser. Keep the session there; all roster, matchup, player, transaction, lineup, and add/drop workflows use it.
Claude
Connect Claude in Chrome, open https://baseball.fantasysports.yahoo.com, and sign in to Yahoo in
that connected Chrome browser.
Then ask show my Yahoo fantasy teams. The skill discovers the visible leagues and teams from the
browser. If more than one team is available, choose one; the MCP server saves that
browser-discovered team as the local default.
If Yahoo is signed out later, the workflow stops and asks you to sign in in the same browser. It does not fall back to OAuth or the Yahoo API.
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 |
Yahoo actions use the signed-in session in 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
The MCP server is still used for public player analysis and the locally saved default Yahoo team. Browser-only roster and matchup reads can work from the skill without Yahoo API credentials.
The current browser owns the Yahoo login session. The local config stores only the browser-discovered default league/team identifiers for the supported workflow.
Legacy Yahoo OAuth/API code remains in the package for possible future compatibility, but normal startup does not register or use it.
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
Available Tools
5 toolsanalyze_players_statsAnalyze advanced stats for multiple playersARead-only
Fetch MLB Stats, Baseball Savant, and FanGraphs analysis for up to 10 players. Use this after reading roster or free-agent names from the signed-in Yahoo browser. Within each player, mlbStats.columns names the aligned values in mlbStats.standard and the optional mlbStats.recent14d and mlbStats.recent30d arrays.
| Name | Required | Description | Default |
|---|---|---|---|
| season | No | Season year. Defaults to the current season. | |
| playerNames | Yes | Full player names read from Yahoo's browser pages. Maximum 10. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the readOnlyHint annotation, the description discloses the response structure ('mlbStats.columns names the aligned values in mlbStats.standard and the optional mlbStats.recent14d and mlbStats.recent30d arrays') and the authentication context. This gives the agent a clear picture of what to expect without an output schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three compact sentences with key information front-loaded: purpose, usage trigger, and data structure. No filler or redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Even without an output schema, the description explains the return value layout (columns and arrays) and gives usage context, plus the readOnly annotation covers side effects. It is sufficient for an agent to select and invoke the tool correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema already explains both parameters fully (season default, playerNames source and max items). The description adds no new parameter meaning; it only restates 'up to 10 players' and 'full player names,' which are already in the schema. With 100% schema coverage, the baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description opens with a specific verb 'Fetch' and names exact resources ('MLB Stats, Baseball Savant, and FanGraphs analysis') with a clear scope ('up to 10 players'). This distinguishes it from the singular sibling 'analyze_player_stats' and clearly states the tool's purpose.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly states when to use the tool: 'Use this after reading roster or free-agent names from the signed-in Yahoo browser.' However, it does not name alternative tools or exclusions, so it stops short of a full 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
analyze_player_statsAnalyze advanced player statsARead-only
Fetch and aggregate advanced statistics for a single player from MLB Stats, Baseball Savant, and FanGraphs. Use Yahoo's browser pages separately for league scoring, ownership, roster, and lineup context.
| Name | Required | Description | Default |
|---|---|---|---|
| season | No | Season year, e.g. 2026. Defaults to the current season. | |
| playerName | Yes | Player's full name, e.g. 'Shohei Ohtani' or 'Freddie Freeman' |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, so the read-only nature is covered. The description adds useful context about aggregating data from three external sources, but does not disclose potential latency, rate limits, or what specific statistics are included. This is acceptable but not rich behavioral detail.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two sentences, front-loaded with purpose and immediately followed by exclusion guidance. Every word contributes; no filler or redundant content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is a read-only data fetch with simple parameters and no output schema. The description adequately explains what it does and when to use it, though it omits details about return format or which 'advanced statistics' are included. This is a minor gap for a tool of this complexity.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 100%, with both parameters (playerName, season) already described. The description reinforces that playerName is for a single player but adds no new semantic meaning beyond what the schema provides. Baseline 3 is appropriate.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool 'Fetch and aggregate advanced statistics for a single player' from named sources (MLB Stats, Baseball Savant, FanGraphs). It explicitly notes 'single player', which distinguishes it from the sibling tool 'analyze_players_stats' (plural).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Provides explicit guidance: 'Use Yahoo's browser pages separately for league scoring, ownership, roster, and lineup context.' This tells the agent when NOT to use this tool and directs to alternative methods for different contexts.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
fantasy_get_preferencesGet fantasy browser preferencesARead-only
Get the locally saved default Yahoo league and team for browser-driven workflows. This does not inspect Yahoo or verify that the browser is signed in.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the readOnlyHint annotation, the description adds meaningful context: data is 'locally saved' and the tool does not perform live Yahoo checks. This helps set expectations about source and side-effect-free behavior, though it could mention return format or missing-preference behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences with no fluff. The first sentence states the core function; the second adds a critical limitation. Every word earns its place, and the key information is front-loaded.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a zero-parameter getter with no output schema, the description is complete: it explains what the tool returns, where the data comes from (local), and what it explicitly does not do (Yahoo verification). This is sufficient for an agent to invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With zero parameters, the baseline is 4. The description adds value by explaining the output content (the default league and team), which compensates for the empty input schema and clarifies the tool's purpose.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Description uses a specific verb ('Get') and clearly identifies the resource: 'locally saved default Yahoo league and team'. It distinguishes itself from sibling tools like fantasy_set_default_team (a setter) and the analysis/list tools by focusing on local preferences.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description states it is for 'browser-driven workflows' and clarifies a key limitation: it does not inspect Yahoo or verify signed-in status. This implies when to use it (offline/local preference retrieval) and when not to rely on it (live Yahoo data), though it doesn't name an explicit alternative.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
fantasy_set_default_teamSave default fantasy teamA
Save a Yahoo league and team discovered from the signed-in browser. This stores local identifiers only and does not call Yahoo.
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | Yes | Numeric Yahoo team ID from the team URL | |
| leagueId | Yes | Numeric Yahoo league ID from the team URL | |
| teamName | No | Visible Yahoo team name | |
| leagueName | No | Visible Yahoo league name |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already indicate the tool is neither read-only nor destructive, so the description's added context that it 'stores local identifiers only and does not call Yahoo' provides valuable extra transparency about network behavior and side effects. This goes beyond the annotations and helps the agent understand the tool's actual impact.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is two sentences with no filler. The key facts are front-loaded: the action, the resource, and the crucial behavioral clarification about not calling Yahoo. Every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple local save operation with no output schema, the description covers purpose, data source, and network behavior. It doesn't discuss overwrite behavior or failure modes, but the low complexity and rich schema/annotations make this sufficient for effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
All four parameters have descriptions in the schema (100% coverage), so the description doesn't need to repeat them. It adds the context that identifiers come from the signed-in browser, but doesn't provide additional syntax or format details beyond what the schema already documents.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly specifies the action ('Save') and the resource ('a Yahoo league and team discovered from the signed-in browser'), and distinguishes from sibling tools by noting this stores local identifiers only and does not call Yahoo. This makes the tool's purpose unambiguous and differentiates it from the analysis/query siblings.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies a clear use case: when the agent has identified a Yahoo league/team in the browser and wants to persist it as the default. It doesn't explicitly state when not to use it or name alternatives, but the context provided is sufficient for an agent to infer appropriate usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_probable_startersList probable starting pitchers for a dateARead-only
List every probable starting pitcher across MLB for a date, with opponent, home/away, and game time. This tool uses MLB Stats only. Read Yahoo ownership and availability separately from the signed-in Yahoo browser.
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date as YYYY-MM-DD; defaults to today. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, so the read-only nature is known. The description adds value by specifying the data source (MLB Stats only) and clarifying what is excluded (Yahoo ownership/availability), plus listing the output fields. No contradictions noted.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two concise sentences front-load the main purpose and add only necessary caveats. Every sentence earns its place with no redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple single-parameter list tool with a readOnly annotation, the description is complete: it states the output fields, the data source, and the important caveat about Yahoo data. No output schema exists, but the description sufficiently covers the return context.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% coverage with the date parameter described as 'Date as YYYY-MM-DD; defaults to today.' The description does not add further parameter detail, so it meets the baseline but provides no extra value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool lists every probable starting pitcher across MLB for a date, with opponent, home/away, and game time. This is a specific verb + resource + scope, and it distinguishes itself from the sibling fantasy tools by focusing on MLB stats rather than fantasy preferences or analysis.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It explicitly says 'This tool uses MLB Stats only' and instructs to read Yahoo ownership/availability separately from the signed-in Yahoo browser, giving clear when-to-use and when-not-to-use context. However, it does not name a specific alternative sibling tool, so it falls short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
The preference tools are clearly distinguished (read vs write), and list_probable_starters is distinct. However, analyze_player_stats and analyze_players_stats overlap in function, differing only in player count, which could confuse an agent. Descriptions help, but the boundary is not as crisp as it could be.
Naming mixes a 'fantasy_' prefix for local preferences with bare action verbs for the stats tools, and the two analyze tools have inconsistent singular/plural forms. All names are snake_case and readable, but there is no unified pattern across the set.
With 5 tools, the server is well-scoped for its niche purpose of fetching advanced stats and managing local preferences. Each tool serves a clear role, and the count feels neither thin nor bloated.
The server covers single-player and batch stats analysis plus probable starters, which aligns with its stated external-data focus. Minor gaps exist, such as no head-to-head player comparison or expanded roster operations, but these fall outside its apparent design.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Read-only ESPN, Sleeper, and Fantrax fantasy leagues for Claude, ChatGPT, and other AI tools.
Read-only fantasy analysis for ESPN, Yahoo, and Sleeper leagues via MCP
Teamfight Tactics data & AI coaching for Claude and ChatGPT — 19 tools, built-in Riot key.
Provides easy access to MLB, Baseball Savant, Statcast, and Fangraphs baseball data. Query detaile…
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceConnect ESPN & Yahoo fantasy leagues to AI assistants via MCP. Read-only tools for rosters, standings, matchups, free agents, and league info across football and baseball.15MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Yahoo Fantasy Sports API for fantasy baseball, providing tools to manage rosters and player stats via Claude.134MIT
- FlicenseNot gradedqualityDmaintenanceConnects Claude to your Yahoo Fantasy Baseball team, enabling lineup management, roster analysis, and free agent scouting through natural conversation.
- FlicenseNot gradedqualityDmaintenanceEnables Claude to interact with Yahoo Fantasy Baseball and Basketball leagues, allowing roster analysis, matchup tracking, free agent browsing, and player stats retrieval via natural language.1
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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