Sleeper Mcp Server — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Sleeper Mcp Server (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A Model Context Protocol (MCP) server that provides Claude Desktop with access to Sleeper Fantasy Football API data. This server enables users to query league information, player data, matchups, draft results, and perform trade analysis through natural language interactions with Claude.
git clone <repository-url>
cd sleeper-mcp-serverpip install -e .pip install -e ".[dev]"Add the following configuration to your Claude Desktop MCP settings file:
Location of config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonBasic Configuration:
{
"mcpServers": {
"sleeper": {
"command": "python",
"args": ["-m", "sleeper_mcp_server"],
"env": {
"LOG_LEVEL": "INFO"
},
"disabled": false,
"autoApprove": [
"get_user_leagues",
"get_league_info",
"search_players",
"get_trending_players"
]
}
}
}Advanced Configuration with Custom Settings:
{
"mcpServers": {
"sleeper": {
"command": "python",
"args": ["-m", "sleeper_mcp_server"],
"env": {
"SLEEPER_API_BASE_URL": "https://api.sleeper.app/v1",
"CACHE_TTL_SECONDS": "3600",
"LOG_LEVEL": "INFO",
"MAX_RETRIES": "3"
},
"disabled": false,
"autoApprove": [
"get_user_leagues",
"get_league_info",
"get_league_rosters",
"get_league_rosters_with_draft_info",
"get_league_users",
"get_roster_user_mapping",
"get_league_draft",
"search_players",
"get_trending_players",
"get_player_stats",
"get_matchups",
"get_matchup_scores"
]
}
}
}| Variable | Description | Default |
|---|---|---|
SLEEPER_API_BASE_URL | Sleeper API endpoint | https://api.sleeper.app/v1 |
CACHE_TTL_SECONDS | Default cache TTL in seconds | 3600 |
LOG_LEVEL | Logging verbosity (DEBUG, INFO, WARNING, ERROR) | INFO |
MAX_RETRIES | Maximum API retry attempts | 3 |
#### get_user_leagues Get all leagues for a username in a specific season.
Parameters:
username (required): Sleeper username to look upseason (optional): Season year (default: "2024")Example Usage:
Show me all leagues for username "john_doe" in 2024#### get_league_info Get detailed information about a specific league.
Parameters:
league_id (required): League ID to retrieve information forExample Usage:
Get information for league ID "123456789"#### get_league_rosters Get all team rosters in a league.
Parameters:
league_id (required): League ID to retrieve rosters forExample Usage:
Show me all rosters in league "123456789"#### get_league_users Get all users/participants in a league.
Parameters:
league_id (required): League ID to retrieve users forExample Usage:
Who are the users in league "123456789"?#### get_league_rosters_with_draft_info Get all team rosters in a league with complete draft position metadata for each player.
Parameters:
league_id (required): League ID to retrieve rosters forExample Usage:
Show me all rosters with draft information for league "123456789"#### get_roster_user_mapping Get a clear mapping of roster IDs to user names for a league.
Parameters:
league_id (required): League ID to get roster-user mapping forExample Usage:
Show me the roster to user mapping for league "123456789"#### get_league_draft Get complete draft results and pick information for a league.
Parameters:
league_id (required): League ID to get draft information forExample Usage:
Show me the draft results for league "123456789"#### search_players Search for players by name with optional position filtering.
Parameters:
query (required): Player name or partial name to search forposition (optional): Position filter (QB, RB, WR, TE, K, DEF)Example Usage:
Search for players named "Josh Allen"
Find all quarterbacks with "Josh" in their name#### get_trending_players Get trending players (most added/dropped).
Parameters:
sport (optional): Sport type (default: "nfl")add_drop (optional): Type of trend - "add" or "drop" (default: "add")Example Usage:
Show me the most added players this week
What players are being dropped the most?#### get_player_stats Get player statistics for a specific season.
Parameters:
player_id (required): Player ID to get stats forseason (optional): Season year (default: "2024")Example Usage:
Get stats for player ID "4046" in 2024#### get_matchups Get matchups for a specific week in a league.
Parameters:
league_id (required): League ID to retrieve matchups forweek (required): Week number (1-22)Example Usage:
Show me week 5 matchups for league "123456789"#### get_matchup_scores Get real-time scoring information for matchups in a specific week.
Parameters:
league_id (required): League ID to retrieve scores forweek (required): Week number (1-22)Example Usage:
What are the current scores for week 8 in league "123456789"?#### analyze_trade_targets Analyze potential trade targets for a roster based on positional needs.
Parameters:
league_id (required): League ID to analyzeroster_id (required): Roster ID requesting trade analysisposition (optional): Position to focus analysis on (QB, RB, WR, TE, K, DEF)Example Usage:
Analyze trade targets for roster 3 in league "123456789"
Find running back trade targets for my roster#### evaluate_roster_needs Evaluate roster strengths and weaknesses across all positions.
Parameters:
league_id (required): League ID to analyzeroster_id (required): Roster ID to evaluateExample Usage:
Evaluate the strengths and weaknesses of roster 1 in league "123456789"The server implements intelligent rate limiting to respect Sleeper API guidelines:
Different data types have optimized cache TTL values:
| Data Type | Cache TTL | Reason |
|---|---|---|
| Player Data | 1 hour | Relatively static during season |
| League Settings | 24 hours | Rarely change mid-season |
| Draft Data | 24 hours | Historical data, doesn't change |
| Matchup Data (active) | 5 minutes | Real-time scoring updates |
| Matchup Data (completed) | 1 hour | Historical data is stable |
| Trending Players | 30 minutes | Updated frequently |
| Roster Data | 15 minutes | Changes with transactions |
| Roster Data (with draft) | 15 minutes | Changes with transactions |
Cache Features:
# Get your leagues
"Show me all leagues for username 'myusername'"
# Get league details
"What are the settings for league ID '123456789'?"
# View rosters
"Show me all the rosters in my main league"
# View rosters with draft information
"Show me all rosters with draft info - I want to see where each player was drafted and by whom"# Search for players
"Find all players named 'Cooper'"
# Get trending players
"What players are being added the most this week?"
# Player statistics
"Show me Josh Allen's stats for 2024"# Current week matchups
"What are this week's matchups in my league?"
# Live scoring
"What are the current scores for week 8?"
# Historical data
"Show me the results from week 3"# Complete draft results
"Show me the draft results for my league"
# Roster with draft info
"Show me all rosters with draft information - I want to see where each player was drafted"
# Keeper analysis
"Which players were kept from last year and what was their original draft cost?"
# Draft value analysis
"Show me players who are outperforming their draft position"# Find trade partners
"Who should I target for a trade in my league? I need a running back"
# Roster evaluation
"Analyze my roster strengths and weaknesses"
# Specific position analysis
"Find quarterback trade targets for my team"#### 1. Server Won't Start
Symptoms:
Solutions:
python --version (should be 3.8+)pip show sleeper-mcp-server#### 2. Authentication/API Errors
Symptoms:
Solutions:
#### 3. Rate Limiting Issues
Symptoms:
Solutions:
#### 4. Cache Issues
Symptoms:
Solutions:
CACHE_TTL_SECONDS environment variable#### 5. Configuration Problems
Symptoms:
Solutions:
Enable debug logging for detailed troubleshooting:
{
"mcpServers": {
"sleeper": {
"command": "python",
"args": ["-m", "sleeper_mcp_server"],
"env": {
"LOG_LEVEL": "DEBUG"
}
}
}
}#### For Large Leagues
#### For Multiple Leagues
# Run all tests
pytest
# Run with coverage
pytest --cov=sleeper_mcp_server
# Run specific test file
pytest tests/test_server.py# Format code
black sleeper_mcp_server/
# Sort imports
isort sleeper_mcp_server/
# Lint code
flake8 sleeper_mcp_server/
# Type checking
mypy sleeper_mcp_server/This project is licensed under the MIT License - see the LICENSE file for details.
For issues and questions:
Note: This MCP server is not officially affiliated with Sleeper. It's a third-party integration that uses Sleeper's public API.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.