ESPN Fantasy MCP
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., "@ESPN Fantasy MCPWho are the top free agents in my league right now?"
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.
ESPN Fantasy MCP
A small, read-only Model Context Protocol server for ESPN Fantasy Football. It gives an MCP-compatible LLM access to normalized league snapshots, team rosters, and free-agent data.
This project calls ESPN's undocumented Fantasy read API. It is not an ESPN official developer integration, so endpoints and response shapes may change. Use it only with an account and leagues you are authorized to access, and review ESPN's terms before distributing or hosting it for other users.
What is included
The initial vertical slice exposes three read-only tools:
get_league_snapshot: settings, teams, rosters, schedule, and status.get_team_roster: one normalized team and roster.get_free_agents: free agents and waiver players, with a bounded result set.
Write operations such as adding, dropping, trading, or setting a lineup are intentionally not included. ESPN's mutation requests are undocumented and can make irreversible league changes; they should be added only with a preview, explicit confirmation, and strong validation.
Related MCP server: sleeper-caffeine MCP
Requirements
Python 3.11+
uvor another Python package managerAn ESPN Fantasy league ID and season year
ESPN_S2andESPN_SWIDcookies for private leagues
Install
uv sync --extra dev
cp .env.example .envFill in .env with your own values. Do not commit .env or put cookie values
in prompts, tool arguments, logs, or source control.
For a private league, the cookies are the values named espn_s2 and SWID
in your authenticated ESPN browser session. The server reads them only from
environment variables. Public leagues may work without them.
Run
For a local MCP host that launches stdio servers:
uv run espn-fantasy-mcpExample generic MCP configuration:
{
"mcpServers": {
"espn-fantasy": {
"command": "uv",
"args": [
"run",
"--directory",
"/absolute/path/to/EspnMCP",
"espn-fantasy-mcp"
],
"env": {
"ESPN_S2": "your-cookie-value",
"ESPN_SWID": "your-cookie-value",
"ESPN_BASE_URL": "https://lm-api-reads.fantasy.espn.com"
}
}
}
}The server does not need to know a default league: tools receive league_id
and season explicitly, which makes accidental cross-league access less
likely.
Test and lint
The tests mock ESPN and never contact the live service:
uv run pytest
uv run ruff check .Architecture
MCP host / LLM
|
v
src/espn_mcp/server.py Tool schemas and MCP transport
|
v
src/espn_mcp/espn.py ESPN HTTP adapter and normalization
|
v
ESPN Fantasy read API Undocumented, cookie-authenticated for private leaguesThe adapter isolates ESPN-specific payloads from the MCP layer. If ESPN
changes hosts, views, filters, or response shapes, update espn.py and its
fixtures rather than changing tool contracts.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
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
- NFL MCPOAuthcom.nflmcp
NFL analytics tools for AI agents: stats, fantasy, injuries, schedules, and advanced analysis.
ESPN MCP — keyless multi-sport live scores, teams, and news via ESPN's public site API.
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.17MIT
- AlicenseNot gradedqualityBmaintenanceProvides read-only access to Sleeper fantasy football leagues, enabling team snapshots, available players, matchups, trade context, and league history through standardized MCP tools.MIT
- AlicenseAqualityCmaintenanceA read-only MCP server that supplies live context from Sleeper fantasy-football leagues, including rosters, trade analysis, draft picks, and league settings via Sleeper's public API.11MIT
- AlicenseNot gradedqualityCmaintenanceProvides read-only, league-aware Sleeper fantasy football draft context to AI assistants, including live picks, rosters, and player availability over Streamable HTTP MCP.71MIT
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/michaelc143/espn-ff-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server