flaim
Provides integration with the Gemini CLI to retrieve and analyze ESPN fantasy league statistics and historical data through the Model Context Protocol.
Flaim Fantasy
Flaim Fantasy, at flaim.app, is an app in ChatGPT and a connector in Claude that reads your real ESPN, Yahoo, and Sleeper fantasy leagues so you can ask about your actual team. Advanced users can also add Flaim manually as a custom connector in compatible AI platforms.
Analysis tools are read-only by design. No trades, no drops, no roster changes — just advice. League refresh can update Flaim's connected-league records so newly available seasons show up.
How It Works
The Flaim skill is an analyst playbook: how to reason about a start/sit call, a waiver claim, a trade, a keeper, or a matchup preview, and what context to gather in what order. The MCP tools feed it your actual league data and carry their own mechanics (parameters, response fields, platform differences) in their descriptions. Together, they give a general-purpose AI enough structure to answer like it knows your specific league.
Related MCP server: sleeper-mcp
Get Started
Create your Flaim account at flaim.app.
Connect your fantasy leagues — ESPN via Chrome extension, Yahoo via Yahoo sign-in, or Sleeper by username. Flaim discovers supported leagues and shows them in Your Leagues.
Connect your AI app: Open Flaim Fantasy in ChatGPT or Claude, or follow the optional Perplexity custom-connector path in the connection docs. Public setup docs live at flaim.app/docs.
You are done. Ask questions such as "Who should I start this week?" or "What's on the waiver wire?" Defaults and additional league management are optional after setup.
The Skill
The Flaim skill is the judgment layer. It covers what Flaim is and cannot do, how to gather league context in order, and a playbook per decision type: start/sit, waivers and pickups, trades, keepers and dynasty, matchup previews, draft picks, season history, and multi-league comparisons. Tool mechanics stay in the tool descriptions and the server instructions, which every MCP client reads live, so the skill does not restate them.
Install for Claude Code: the plugin bundles the skills and the MCP server.
claude plugin marketplace add jdguggs10/flaim
claude plugin install flaim-fantasy@flaimThen run /mcp in Claude Code and choose the Flaim server to sign in. To add only the MCP server, run claude mcp add --transport http flaim https://api.flaim.app/mcp.
Other Agent Skills-compatible tools: place the skill in your project's .agents/skills/ directory or in ~/.agents/skills/ for global use. Claude Code reads .claude/skills/ instead.
cp -r flaim/.agents/skills/flaim-fantasy ~/.agents/skills/flaim-fantasyThe AI will detect and activate the skill automatically when you ask fantasy questions.
MCP Tools
Tool | What it does |
| Your leagues across all platforms |
| Re-discover connected leagues and update Flaim's league records |
| Past seasons and historical leagues outside the current season |
| Baseline league context: settings, scoring, roster config, teams/owners |
| Confirmed draft results and provider-grounded draft-pick ownership |
| Team roster with player stats |
| Weekly matchups and scores |
| League standings and rankings |
| Available players with a normalized envelope; ESPN/Yahoo include platform-wide ownership percentages, Sleeper returns identities only |
| Player lookup; ESPN and Yahoo can add league ownership when available, Sleeper evaluates league ownership against current rosters outside live drafts |
| Recent adds, drops, waivers, and trades |
All tools connect through a single MCP endpoint: https://api.flaim.app/mcp
Supported Platforms
Platform | Sports | Auth |
ESPN | Football, Baseball, Basketball, Hockey | Chrome extension |
Yahoo | Football, Baseball, Basketball, Hockey | OAuth 2.0 |
Sleeper | Football, Basketball | Username (public API) |
Architecture
Chrome Extension → flaim.app → Auth Worker → Supabase
↓
ChatGPT / Claude / manual MCP clients → Fantasy MCP Gateway → ESPN/Yahoo/Sleeper Clients → Platform APIsWeb App (Next.js on Vercel) — landing/site pages, public live demo, OAuth, league management
MCP Gateway (Cloudflare Workers) — unified endpoint for all platforms and sports
Platform Clients (Cloudflare Workers) — ESPN, Yahoo, Sleeper API normalization
Auth Worker (Cloudflare) — token validation, rate limiting, credential storage
Supabase — user data, OAuth tokens, credentials
About
Solo indie project — built with care, maintained for the long term. No VC funding, no growth pressure, just a useful tool for fantasy sports fans who use AI.
Development
git clone https://github.com/jdguggs10/flaim.git
cd flaim
corepack pnpm install
cp web/.env.example web/.env.local # add keys
corepack pnpm run devRoot, web, and workers use pnpm via Corepack. The Chrome extension is intentionally npm-isolated under extension/ with its own lockfile and release flow.
Document | Description |
System design, deployment, troubleshooting | |
Release history | |
ChatGPT and Claude links plus optional custom-connector guidance (public version: flaim.app/docs) | |
Next.js routes, components, environment | |
Cloudflare Workers, MCP tools, ESPN API | |
Chrome extension build, Sync Host, CWS |
Getting Help
Best-effort support — I'll respond when I can.
License
MIT License — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
- ZapierOAuthcom.zapier
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Let AI agents query data and act across all your business apps via MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides read-only access to Sleeper fantasy football leagues, enabling team snapshots, available players, matchups, trade context, and league history through standardized MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude to interact with Sleeper fantasy football leagues via MCP tools for roster, waiver, matchup, and transaction queries, plus a dashboard for daily reports, live scoring, and game-day alerts.108 npmMIT
- FlicenseNot gradedqualityCmaintenanceProvides read-only access to Yahoo Fantasy Football league data through MCP, letting ChatGPT retrieve rosters, standings, scoreboards, draft results, transactions, and player stats without making any roster changes.1-
- FlicenseBqualityCmaintenanceProvides MCP-compatible LLMs with read-only access to normalized ESPN Fantasy Football league snapshots, team rosters, and free-agent data.3-