Skip to main content
Glama
dingyiyi0226

Yahoo Fantasy Baseball MCP Server

by dingyiyi0226

Fantasy Baseball for Claude & Codex

npm

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.

WARNING

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

  1. Download fantasy-baseball-vX.X.X.mcpb from the Releases page.

  2. In Claude Desktop, go to Settings → Extensions.

  3. Drag the file into the Extensions window and click Install.

2. Add the Fantasy Baseball skill (guided start/sit and roster-review workflow)

  1. Download fantasy-baseball-skill-vX.X.X.zip from the Releases page.

  2. Go to Settings → Capabilities and turn on code execution.

  3. 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.

  1. In the Codex app, go to Settings → Plugins → Add plugin marketplace.

  2. Add from a GitHub repo:

    • Source: dingyiyi0226/fantasy-baseball-mcp

    • Git ref: master

    • Sparse paths: (leave blank)

  3. Open the Fantasy Baseball marketplace and install the Fantasy Baseball plugin.

  4. 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

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

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 tools
analyze_players_statsAnalyze advanced stats for multiple playersA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
seasonNoSeason year. Defaults to the current season.
playerNamesYesFull player names read from Yahoo's browser pages. Maximum 10.

TDQS

A4.5/5.0
Behavior5/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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 statsA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
seasonNoSeason year, e.g. 2026. Defaults to the current season.
playerNameYesPlayer's full name, e.g. 'Shohei Ohtani' or 'Freddie Freeman'

TDQS

A4.2/5.0
Behavior3/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines5/5

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 preferencesA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.5/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters4/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
teamIdYesNumeric Yahoo team ID from the team URL
leagueIdYesNumeric Yahoo league ID from the team URL
teamNameNoVisible Yahoo team name
leagueNameNoVisible Yahoo league name

TDQS

A4.2/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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 dateA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
dateNoDate as YYYY-MM-DD; defaults to today.

TDQS

A4.3/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness5/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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

A4.2/5.0
Disambiguation4/5

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 Consistency3/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivityMaintained
ResponsivenessNo issues

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

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Connect 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.
    15
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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

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