Skip to main content
Glama
sdotj
by sdotj

SleepBot

Ein MCP-Server, der Claude mit Fantasy-Football-Ligen verbindet. Phase 1: Nur-Lese-Tools über die öffentliche Sleeper-API (keine Authentifizierung erforderlich). Entwickelt, um auf Schreibaktionen, ESPN und mehrere Ligen erweitert zu werden, ohne die Tool-Schnittstelle zu ändern.

Architektur

Der Kern ist plattformunabhängig. Jedes Tool spricht mit einer LeagueAdapter-Schnittstelle, nie direkt mit einem Plattform-SDK:

tools ──▶ LeagueAdapter (interface) ◀── SleeperAdapter ──▶ api.sleeper.app
  │                                       (EspnAdapter later)
  └──▶ config (leagues[] registry)

Das Hinzufügen einer Liga oder einer Plattform ist eine Konfigurationsänderung, keine Codeänderung. Die Architektur ist mit Cairn in cairn.blueprint abgebildet; führen Sie cairn scan aus, um die Abbildung mit dem Code abzugleichen.

Related MCP server: Yahoo Fantasy Baseball MCP

Einrichtung

npm install
cp config/leagues.example.json config/leagues.json   # then edit with your league
npm run build

Finden Sie Ihre Sleeper-Liga-ID in der App-URL oder über https://api.sleeper.app/v1/user/<username>/leagues/nfl/<season>.

config/leagues.json

{
  "leagues": [
    {
      "id": "my-main-league",        // your own label, passed to every tool
      "platform": "sleeper",         // "sleeper" | "espn"
      "sleeper": { "leagueId": "123456789012345678", "username": "yourusername" }
    }
  ]
}

Geheimnisse werden niemals inline gespeichert – ein Wert wie "env:ESPN_S2" wird zur Laufzeit aus der Umgebung aufgelöst (siehe .env.example). Phase 1 benötigt keine Geheimnisse.

Ausführen

npm start          # serves over stdio (built)
npm run dev        # serves over stdio (tsx, no build)

Bei Claude Code registrieren

// .mcp.json / claude mcp add
{
  "mcpServers": {
    "sleepbot": { "command": "node", "args": ["dist/index.js"] }
  }
}

Tools (Phase 1 – alle nur lesbar)

Tool

Zweck

list_leagues

Konfigurierte Ligen (aus der Konfiguration, kein API-Aufruf)

get_league_info

Einstellungen, Wertung, Saison, Kaderpositionen

get_rosters

Jeder Kader: Starter, Bank, IR (Spielernamen aufgelöst), Bilanz

get_my_roster

Ihr eigener Kader, identifiziert über den konfigurierten username

get_matchups

Wöchentliche Begegnungen + Punktestände (Standard: aktuelle Woche)

get_standings

Sortiert nach Siegen, dann nach Punkten

get_transactions

Trades, Waivers, Add/Drops (Standard: aktuelle Woche)

search_players

Spieler nach Name, filterbar nach Position/Team

get_trending_players

Sleeper's am häufigsten hinzugefügte / entfernte Spieler

Jedes Tool akzeptiert Ihr leagueId-Label, sodass Multi-Liga-Unterstützung einfach „eine andere ID übergeben" ist. Setzen Sie sleeper.username in der Konfiguration, und Kader/Standings/Matchups werden mit isYou markiert, sodass SleepBot weiß, welches Team Ihnen gehört, ohne zu fragen.

Führen Sie die Tests mit npm test aus.

Roadmap

  • Phase 2 – Sleeper-Schreibaktionen (Standard: Bestätigen) + Regeln-Engine (src/rules, Stub)

  • Phase 3 – Lokale GUI (Vite/React) über dieselben Tools

  • Phase 4EspnAdapter gegen die cookie-basierte API von ESPN, gleiche Schnittstelle

F
license - not found
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    B
    quality
    C
    maintenance
    Enables comprehensive Sleeper Fantasy Football integration with Claude, providing real-time player projections, historical performance analytics, league management, and waiver wire analysis. Supports advanced NFL metrics, lineup optimization, and matchup analysis for fantasy football decision-making.
    6
    12
    1
  • F
    license
    Not graded
    quality
    D
    maintenance
    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.
    1
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI models to manage and query fantasy sports leagues through the Sleeper API, supporting tasks like player lookups, league activity, and draft management.
    50
    MIT

View all related MCP servers

Related MCP Connectors

  • Read-only fantasy analysis for ESPN, Yahoo, and Sleeper leagues via MCP

  • WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.

  • Connect Claude to Fathom meeting recordings, transcripts, and summaries

View all MCP Connectors

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/sdotj/sleeper-bot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server