SleepBot
SleepBot
Claude를 판타지 풋볼 리그에 연결하는 MCP 서버입니다. 1단계: Sleeper 공개 API를 통한 읽기 전용 도구(인증 불필요). 도구 인터페이스를 변경하지 않고 쓰기 작업, ESPN, 여러 리그로 확장할 수 있도록 설계되었습니다.
아키텍처
핵심은 플랫폼에 독립적입니다. 모든 도구는 LeagueAdapter 인터페이스와 통신하며, 플랫폼 SDK에 직접 접근하지 않습니다:
tools ──▶ LeagueAdapter (interface) ◀── SleeperAdapter ──▶ api.sleeper.app
│ (EspnAdapter later)
└──▶ config (leagues[] registry)리그나 플랫폼을 추가하는 것은 코드 변경이 아닌 구성 변경입니다. 아키텍처는 cairn.blueprint에 Cairn으로 매핑되어 있습니다. cairn scan을 실행하여 코드와 맵을 대조하세요.
Related MCP server: sleeper-mcp
설정
npm install
cp config/leagues.example.json config/leagues.json # then edit with your league
npm run buildSleeper 리그 ID는 앱 URL 또는 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" }
}
]
}비밀은 인라인으로 저장되지 않습니다. "env:ESPN_S2" 같은 값은 런타임에 환경 변수에서 해석됩니다(.env.example 참조). 1단계에는 비밀이 필요 없습니다.
실행
npm start # serves over stdio (built)
npm run dev # serves over stdio (tsx, no build)Claude Code에 등록
// .mcp.json / claude mcp add
{
"mcpServers": {
"sleepbot": { "command": "node", "args": ["dist/index.js"] }
}
}도구 (1단계 — 모두 읽기 전용)
도구 | 용도 |
| 구성된 리그 (구성에서 가져오며 API 호출 없음) |
| 설정, 스코어링, 시즌, 로스터 포지션 |
| 모든 로스터: 선발, 벤치, IR (선수 이름 해석됨), 전적 |
| 구성된 |
| 주간 매치업 및 점수 (기본값: 현재 주) |
| 승수, 그다음 득점 순으로 순위 |
| 트레이드, 웨이버, 추가/방출 (기본값: 현재 주) |
| 이름으로 선수 검색, 포지션/팀으로 필터링 |
| Sleeper에서 가장 많이 추가/방출된 선수 |
모든 도구는 leagueId 라벨을 받으므로, 다중 리그 지원은 "다른 ID를 전달"하는 것뿐입니다. 구성에서 sleeper.username을 설정하면 로스터/순위/매치업에 isYou 플래그가 표시되어 SleepBot이 질문 없이 어느 팀이 당신의 팀인지 알 수 있습니다.
npm test로 테스트를 실행하세요.
로드맵
2단계 — Sleeper 쓰기 작업(기본 확인) + 규칙 엔진(
src/rules, 스텁 상태)3단계 — 동일한 도구를 사용하는 로컬 GUI (Vite/React)
4단계 — ESPN의 쿠키 기반 API를 사용하는
EspnAdapter, 동일한 인터페이스
This server cannot be deployed
Maintenance
Related MCP Connectors
Free fantasy sports AI: ESPN, Sleeper and Fantrax league data for Claude and ChatGPT. Read-only.
Fantasy analysis for your ESPN, Yahoo, and Sleeper leagues. Reads your leagues, never changes them.
Fantasy football for any AI agent: draft board, start/sit, waivers, your Sleeper league. Free.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Related MCP Servers
- FlicenseBqualityCmaintenanceEnables 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.121-
- 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.99 npmMIT
- FlicenseNot gradedqualityBmaintenanceEnables Claude to securely read Sleeper fantasy football league data over the internet via the public API, supporting access from both Claude Desktop and mobile devices.-
- FlicenseNot gradedqualityCmaintenanceEnables Claude to query Sleeper's public fantasy football API over Streamable HTTP, covering leagues, rosters, drafts, matchups, player stats, trends, and player search. Roster data keeps IR (reserve) and taxi players distinct and enriched with player names, positions, teams, and statuses.-