{"id":49019880,"url":"https://github.com/anthonybaldwin/sleeper-api-mcp","last_synced_at":"2026-04-19T03:15:10.782Z","repository":{"id":314670889,"uuid":"1056356497","full_name":"anthonybaldwin/sleeper-api-mcp","owner":"anthonybaldwin","description":"MCP server for Sleeper Fantasy Football API with trade analysis, projections, and waiver recommendations","archived":false,"fork":false,"pushed_at":"2025-10-27T04:55:08.000Z","size":69,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-21T04:02:39.230Z","etag":null,"topics":["fantasy-football","mcp","sleeper"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anthonybaldwin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-09-13T23:09:22.000Z","updated_at":"2025-09-30T15:13:52.000Z","dependencies_parsed_at":"2025-09-14T01:17:00.971Z","dependency_job_id":"0389b05a-e5f1-4f44-a031-a53847c9ee4f","html_url":"https://github.com/anthonybaldwin/sleeper-api-mcp","commit_stats":null,"previous_names":["anthonybaldwin/sleeper-api-mcp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anthonybaldwin/sleeper-api-mcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybaldwin%2Fsleeper-api-mcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybaldwin%2Fsleeper-api-mcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybaldwin%2Fsleeper-api-mcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybaldwin%2Fsleeper-api-mcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthonybaldwin","download_url":"https://codeload.github.com/anthonybaldwin/sleeper-api-mcp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthonybaldwin%2Fsleeper-api-mcp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31993001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fantasy-football","mcp","sleeper"],"created_at":"2026-04-19T03:15:10.124Z","updated_at":"2026-04-19T03:15:10.773Z","avatar_url":"https://github.com/anthonybaldwin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sleeper API MCP Server\r\n\r\nA comprehensive Model Context Protocol (MCP) server for Sleeper fantasy football with advanced features for trade analysis, matchup previews, and waiver recommendations.\r\n\r\n## Features\r\n\r\n### Core Features\r\n- Get user information and leagues\r\n- Access league details, rosters, and matchups\r\n- View transactions and trending players\r\n- Get current NFL season state\r\n- Query player details\r\n\r\n### Advanced Features\r\n- **Trade Analysis**: Analyze trade risk, value, and positional impact\r\n- **Matchup Preview**: Get projections and win probability for upcoming matchups\r\n- **Waiver Recommendations**: Get personalized waiver wire suggestions based on team needs\r\n- **Lineup Optimization**: Analyze and optimize your starting lineup\r\n- **Free Agent Search**: Find available players by position\r\n\r\n## Available Tools\r\n\r\n### Basic Tools\r\n- `get_user` - Get Sleeper user information by username\r\n- `get_user_leagues` - Get all leagues for a specific user\r\n- `get_league` - Get league information by league ID\r\n- `get_league_rosters` - Get all rosters in a league\r\n- `get_league_users` - Get all users in a league\r\n- `get_matchups` - Get matchups for a specific week\r\n- `get_transactions` - Get transactions for a specific week\r\n- `get_trending_players` - Get trending players (adds/drops)\r\n- `get_player_details` - Get details for specific players\r\n- `get_nfl_state` - Get current NFL season state\r\n\r\n### Advanced Tools\r\n- `analyze_trade` - Analyze trade risk and value between two teams\r\n- `preview_matchup` - Preview upcoming matchup with projections\r\n- `get_waiver_recommendations` - Get waiver wire recommendations\r\n- `get_free_agents` - Get available free agents\r\n- `analyze_lineup` - Analyze and optimize lineup\r\n- `get_player_projections` - Get player projections for a week\r\n\r\n## Installation\r\n\r\n### Quick Start (Recommended)\r\n\r\n1. **Download the executable** for your platform from the [latest release](https://github.com/anthonybaldwin/sleeper-api-mcp/releases/latest):\r\n   - **macOS (Apple Silicon)**: `sleeper-mcp-macos-arm64`\r\n   - **macOS (Intel)**: `sleeper-mcp-macos-x64`\r\n   - **Linux (x64)**: `sleeper-mcp-linux-x64`\r\n   - **Linux (ARM64)**: `sleeper-mcp-linux-arm64`\r\n   - **Windows**: `sleeper-mcp-windows-x64.exe`\r\n\r\n2. **Make it executable** (macOS/Linux only):\r\n```bash\r\nchmod +x sleeper-mcp-macos-arm64  # or whichever file you downloaded\r\n```\r\n\r\n3. **Configure Claude Desktop**:\r\n\r\nEdit your Claude Desktop configuration file:\r\n- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`\r\n- **Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`\r\n- **Linux**: `~/.config/Claude/claude_desktop_config.json`\r\n\r\nAdd the following configuration:\r\n```json\r\n{\r\n  \"mcpServers\": {\r\n    \"sleeper\": {\r\n      \"command\": \"/path/to/sleeper-mcp-macos-arm64\",\r\n      \"env\": {\r\n        \"SLEEPER_USERNAME_A\": \"your_username\",\r\n        \"SLEEPER_LEAGUE_A_ID_1\": \"1234567890123456789\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nReplace `/path/to/sleeper-mcp-macos-arm64` with the actual path to your downloaded executable, and update the environment variables with your Sleeper username and league ID.\r\n\r\n4. **Restart Claude Desktop**\r\n\r\n## Configuration\r\n\r\n### Multi-User/League Support\r\n\r\nThe server supports multiple users and leagues. Add them to your Claude Desktop config:\r\n\r\n```json\r\n{\r\n  \"mcpServers\": {\r\n    \"sleeper\": {\r\n      \"command\": \"/path/to/sleeper-mcp\",\r\n      \"env\": {\r\n        \"SLEEPER_USERNAME_A\": \"first_username\",\r\n        \"SLEEPER_LEAGUE_A_ID_1\": \"league_id_1\",\r\n        \"SLEEPER_LEAGUE_A_ID_2\": \"league_id_2\",\r\n        \"SLEEPER_USERNAME_B\": \"second_username\",\r\n        \"SLEEPER_LEAGUE_B_ID_1\": \"another_league_id\"\r\n      }\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nThe server will intelligently detect which league you're referring to based on context clues in your queries.\r\n\r\n## Usage Examples\r\n\r\n### Basic Queries\r\n- \"Get my Sleeper user info for username 'johndoe'\"\r\n- \"Show me all my leagues for the 2024 season\"\r\n- \"Get the current NFL week\"\r\n\r\n### Trade Analysis\r\n- \"Analyze a trade: Team 1 gives [player IDs] for Team 2's [player IDs]\"\r\n- \"What's the trade value difference between these players?\"\r\n- \"Show me the injury risks in this trade\"\r\n\r\n### Matchup Preview\r\n- \"Preview my week 10 matchup in league [league_id]\"\r\n- \"What's my win probability this week?\"\r\n- \"Show me projected scores for both teams\"\r\n\r\n### Waiver Wire\r\n- \"Get waiver recommendations for my team\"\r\n- \"Show me trending RBs available on waivers\"\r\n- \"What's my waiver priority and budget?\"\r\n\r\n### Lineup Optimization\r\n- \"Analyze my lineup for week 10\"\r\n- \"Should I make any lineup changes?\"\r\n- \"Who should I start at FLEX?\"\r\n\r\n## Trade Analysis Features\r\n\r\nThe trade analyzer evaluates:\r\n- **Value Balance**: Calculates relative player values\r\n- **Injury Risk**: Flags injured players in the trade\r\n- **Positional Impact**: Analyzes how trade affects depth\r\n- **Team Records**: Considers team standings\r\n- **Recommendations**: Provides trade verdict\r\n\r\n## Development\r\n\r\nFor developers who want to modify the code:\r\n\r\n### Prerequisites\r\n- [Bun](https://bun.sh) installed\r\n\r\n### Setup\r\n\r\n```bash\r\n# Clone the repository\r\ngit clone https://github.com/anthonybaldwin/sleeper-api-mcp.git\r\ncd sleeper-api-mcp\r\n\r\n# Install dependencies\r\nbun install\r\n\r\n# Create .env file with your config (optional, for development)\r\ncp .env.example .env\r\n# Edit .env with your Sleeper credentials\r\n\r\n# Run in development mode\r\nbun run dev\r\n\r\n# Build executable\r\nbun run build\r\n```\r\n\r\nThe build command creates a standalone executable (`sleeper-mcp` or `sleeper-mcp.exe`) that includes all dependencies.\r\n\r\n## API Reference\r\n\r\nThis server uses the public Sleeper API v1. No authentication is required. For more details, see the [Sleeper API documentation](https://docs.sleeper.app/).\r\n\r\n## Notes\r\n\r\n- Real-time data from Sleeper's API\r\n- Projections fetched from Sleeper's projection endpoints\r\n- Smart caching for current week data (5-minute cache)\r\n- Rate limiting to prevent API throttling\r\n- Supports PPR, Half-PPR, and Standard scoring","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonybaldwin%2Fsleeper-api-mcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthonybaldwin%2Fsleeper-api-mcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthonybaldwin%2Fsleeper-api-mcp/lists"}