Yahoo Fantasy
FreeNot checkedEnables Claude to interact with Yahoo Fantasy Baseball and Basketball leagues, allowing roster analysis, matchup tracking, free agent browsing, and player stats
About
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.
README
A Model Context Protocol (MCP) server for Yahoo Fantasy Baseball and Basketball. Lets Claude analyze your roster, check matchups, browse free agents, and more.
Setup
1. Install dependencies
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
2. Configure Claude Desktop / Claude Code
There are two ways to authenticate — pick one:
Option A: Use a relay server (recommended, no Yahoo app needed)
Point the MCP at a relay server that handles credentials for you:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"yahoo-fantasy": {
"command": "/path/to/yahoo-fantasy-mcp/venv/bin/python3",
"args": ["/path/to/yahoo-fantasy-mcp/server.py"],
"env": {
"YAHOO_AUTH_SERVER": "https://your-relay-url.com"
}
}
}
}
Claude Code (~/.claude.json):
{
"mcpServers": {
"yahoo-fantasy": {
"type": "stdio",
"command": "/path/to/yahoo-fantasy-mcp/venv/bin/python3",
"args": ["/path/to/yahoo-fantasy-mcp/server.py"],
"env": {
"YAHOO_AUTH_SERVER": "https://your-relay-url.com"
}
}
}
}
Want to self-host your own relay? See relay/README.md.
Option B: Use your own Yahoo Developer App
- Go to Yahoo Developer Network and create an app
- Set Application Type to Installed Application, API Permissions to Fantasy Sports → Read
- Note your Client ID and Client Secret
{
"mcpServers": {
"yahoo-fantasy": {
"command": "/path/to/yahoo-fantasy-mcp/venv/bin/python3",
"args": ["/path/to/yahoo-fantasy-mcp/server.py"],
"env": {
"YAHOO_CLIENT_ID": "your_client_id_here",
"YAHOO_CLIENT_SECRET": "your_client_secret_here"
}
}
}
}
3. First-time authentication
On first use, just ask Claude anything about your fantasy team. If not authenticated, Claude will automatically start the OAuth flow:
- A browser window opens to Yahoo's authorization page
- Click Allow
- Yahoo displays a code on the page — copy it and give it to Claude
- Done. The token is saved and auto-refreshed from now on (~1 year before re-auth needed)
Available Tools
| Tool | Description |
|---|---|
authenticate |
Start Yahoo OAuth flow (called automatically when needed) |
get_leagues |
List your MLB and NBA leagues |
get_roster |
View your current roster with positions and injury status |
get_matchup |
See this week's matchup and stat leaders |
get_free_agents |
Browse available free agents by position |
get_player_stats |
Get player stats for a given period |
Logging out
To remove your local tokens:
python logout.py
Example Usage
Just ask Claude naturally:
- "Show me my baseball roster"
- "Who's winning my matchup this week?"
- "Find me the best available SP on the waiver wire"
- "How has Gunnar Henderson been performing lately?"
- "Give me roster improvement suggestions"
Installing Yahoo Fantasy
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/andy78644/yahoo-fantasy-mcpFAQ
Is Yahoo Fantasy MCP free?
Yes, Yahoo Fantasy MCP is free — one-click install via Unyly at no cost.
Does Yahoo Fantasy need an API key?
No, Yahoo Fantasy runs without API keys or environment variables.
Is Yahoo Fantasy hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Yahoo Fantasy in Claude Desktop, Claude Code or Cursor?
Open Yahoo Fantasy on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Yahoo Fantasy with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
