Command Palette

Search for a command to run...

UnylyUnyly
Browse all

ESPN Fantasy Server

FreeNot checked

MCP server providing access to ESPN Fantasy Baseball data, enabling league settings, rosters, player lookup, free agents, waiver claims, lineup changes, and tra

GitHubEmbed

About

MCP server providing access to ESPN Fantasy Baseball data, enabling league settings, rosters, player lookup, free agents, waiver claims, lineup changes, and trade management.

README

Tests PyPI Python License: MIT

MCP (Model Context Protocol) server providing access to ESPN Fantasy Baseball data, for use with Claude Code and other MCP clients.

Features

  • Read league settings, standings, and team information
  • View rosters with player details and lineup positions
  • Look up players by name with fuzzy matching
  • Browse and add free agents, submit waiver claims
  • Modify lineups
  • Propose, accept, decline, and cancel trades

Quick Start

1. Get ESPN Cookies

To access private leagues, you need ESPN authentication cookies:

  1. Log in to ESPN Fantasy Baseball
  2. Open browser DevTools → Application → Cookies → https://fantasy.espn.com
  3. Copy espn_s2 (long string) and SWID (format: {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX})

2. Add to Claude Code

claude mcp add --scope user --transport stdio espn-fantasy \
  --env ESPN_S2=your_espn_s2_cookie \
  --env ESPN_SWID={your_espn_swid_cookie} \
  --env ESPN_LEAGUE_ID=your_league_id \
  --env ESPN_TEAM_ID=your_team_id \
  --env ESPN_SEASON_YEAR=2026 \
  -- uvx espn-fantasy-mcp

Keep the curly braces in the SWID value. uvx handles installation automatically — no separate install step needed.

3. Verify

Restart Claude Code or run /mcp and confirm "espn-fantasy" appears in the server list. Then try: "Show me my fantasy baseball league settings"

Documentation

Local Development

git clone https://github.com/i-am-david-weinstein/espn-fantasy-mcp.git
cd espn-fantasy-mcp
pip install -e ".[dev]"
pytest

To use a local install with Claude Code, replace the uvx ... portion of the claude mcp add command with python3 -m espn_fantasy_mcp.

Contributing

Contributions welcome — open an issue or submit a pull request.

License

MIT

Acknowledgments

from github.com/i-am-david-weinstein/espn-fantasy-mcp

Install ESPN Fantasy Server in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install espn-fantasy-mcp-server

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add espn-fantasy-mcp-server -- uvx espn-fantasy-mcp

FAQ

Is ESPN Fantasy Server MCP free?

Yes, ESPN Fantasy Server MCP is free — one-click install via Unyly at no cost.

Does ESPN Fantasy Server need an API key?

No, ESPN Fantasy Server runs without API keys or environment variables.

Is ESPN Fantasy Server hosted or self-hosted?

A hosted option is available: Unyly runs the server in the cloud, no local setup required.

How do I install ESPN Fantasy Server in Claude Desktop, Claude Code or Cursor?

Open ESPN Fantasy Server 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

Compare ESPN Fantasy Server with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs