Yahoo Fantasy Baseball MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| YF_CLIENT_ID | No | Your Yahoo OAuth client ID | |
| YF_CLIENT_SECRET | No | Your Yahoo OAuth client secret |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| fantasy_statusA | Report whether Yahoo Fantasy is set up and what the next step is. Use this for 'fantasy status'. |
| fantasy_setupA | Begin or resume setup ('fantasy start'). Shows how to create a Yahoo app if needed, and returns the authorization link once credentials are known. Optionally pass clientId/clientSecret to save them. |
| fantasy_authorizeA | Complete setup using the verification code Yahoo displayed after the user approved access. Optionally also accepts clientId/clientSecret. On success it lists the user's leagues and sets a default automatically when there is only one. |
| fantasy_select_teamA | Set the default league (and your team in it) used when later commands omit keys. Use for 'fantasy choose team'. |
| list_leaguesA | List all fantasy leagues (and game weeks / stat categories) for the logged-in Yahoo account. Use this to discover league_key and team_key values. |
| get_leagueA | Get a league's teams, settings, and current standings. Defaults to the configured league when leagueKey is omitted. |
| get_teamsA | Get stats, standings, and matchups for every team in a league. Pass explicit teamKeys to limit the set, otherwise all teams in the league are fetched. |
| get_team_rosterA | Get a team's roster with player stats for a given date. Defaults to the configured team and today's date. |
| get_team_stats_weekB | Get a team's aggregated stats for a specific scoring week. |
| get_team_stats_seasonB | Get a team's aggregated stats for the whole season. |
| get_matchupsA | Get the league scoreboard (all head-to-head matchups). Pass a week to view a specific week, otherwise the current week is returned. |
| get_team_matchupsA | Get a team's matchups across the season, or only the listed weeks when |
| get_player_statsA | Get stats for one or more players on a specific date. Player keys look like 431.p.10642. |
| rank_playersA | Rank league players (including free agents) by a sort key. |
| get_transactionsB | Get recent transactions (adds, drops, trades) in a league. Pass teamKey to filter to a single team's transactions. |
| add_drop_playerA | DESTRUCTIVE: modifies your real Yahoo roster. Adds a free agent, drops a rostered player, or does both at once. Provide addPlayerKey to add, dropPlayerKey to drop, or both for a simultaneous add/drop. Player keys look like 431.p.10642. Defaults to your configured team. Always confirm the players with the user before calling this. |
| set_lineupA | DESTRUCTIVE: changes your real Yahoo roster positions for a given date. Provide assignments mapping each playerKey to a roster position (e.g. 1B, OF, SP, Util, or BN for bench). Players not listed keep their current slot. Defaults to your configured team and today's date. Confirm the lineup with the user before calling this. |
| analyze_player_statsA | Fetch and aggregate advanced statistics for a single player from multiple authoritative sources: MLB Stats API (standard stats), Baseball Savant (Statcast exit velocity / barrel rate / expected stats / sprint speed), and FanGraphs (WAR, wRC+, K%, BB%, plate discipline). Use this before making roster add/drop decisions. |
| analyze_roster_statsA | Fetch advanced stats (Statcast, expected stats, FanGraphs) for every player currently on the team's roster. Great for daily lineup decisions and identifying underperformers vs. their xStats. Combine with get_team_roster to see who is starting or benched. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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