sleeper-mcp
Sleeper MCP
一个面向公开 Sleeper API 的只读 Model Context Protocol 服务器。它通过异步 FastMCP 工具公开用户、联赛、阵容、比赛、交易、选秀、球员、热门动态、季后赛对阵表、被交易的选秀权以及赛事状态。
Sleeper 不需要 API 密钥。请遵守其文档中的指导,将请求频率控制在每分钟 1,000 次以内。完整的球员响应数据为几 MB,通常每天最多获取一次。
安装
需要 Python 3.11 或更高版本,以及 uv。
uv syncRelated MCP server: flaim
运行
服务器默认使用 MCP 的 stdio 传输方式:
uv run sleeper-mcp等效的模块命令为:
uv run python -m sleeper_mcp.serverDocker
该镜像基于 alpine:latest,通过 stdio 运行 MCP 服务器。请保留 -i,以便客户端可以通过 stdin 与进程通信。
docker build -t sleeper-mcp .
docker run --rm -i sleeper-mcpCursor (Docker)
{
"mcpServers": {
"sleeper": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"sleeper-mcp"
]
}
}
}Claude Desktop (Docker)
{
"mcpServers": {
"sleeper": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"sleeper-mcp"
]
}
}
}配置 MCP 客户端
在客户端配置中使用工作区的绝对路径(或使用上面的 Docker 命令)。
Cursor
将此服务器添加到你的 Cursor MCP 配置中:
{
"mcpServers": {
"sleeper": {
"command": "uv",
"args": [
"--directory",
"/Users/talweiss/Desktop/codeProjects/sleeper-mcp",
"run",
"sleeper-mcp"
]
}
}
}Claude Desktop
在 Claude Desktop 的配置中,将相同条目添加到 mcpServers 下:
{
"mcpServers": {
"sleeper": {
"command": "uv",
"args": [
"--directory",
"/Users/talweiss/Desktop/codeProjects/sleeper-mcp",
"run",
"sleeper-mcp"
]
}
}
}更改配置后重启客户端。
开发
uv run pytest该包采用分层设计:
client.py负责 HTTP 相关事务以及 Sleeper 基础 URL。service.py将方法映射到有文档记录的 API 端点。tools.py将服务方法记录并公开为 MCP 工具。server.py将各层连接在一起并启动 FastMCP。
Maintenance
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
- AlicenseNot gradedqualityNot gradedmaintenanceProvides read-only access to TrustLayer's public API, enabling users to query and retrieve data about parties, documents, projects, and other TrustLayer entities through MCP-compatible tools.
- AlicenseNot gradedqualityCmaintenanceConnect ESPN & Yahoo fantasy leagues to AI assistants via MCP. Read-only tools for rosters, standings, matchups, free agents, and league info across football and baseball.12MIT
- AlicenseAqualityBmaintenanceProvides read-only access to the Sleeper Fantasy Sports API for league info, rosters, matchups, drafts, transactions, and player data.18271MIT
- AlicenseNot gradedqualityBmaintenanceProvides read-only access to Sleeper fantasy football leagues, enabling team snapshots, available players, matchups, trade context, and league history through standardized MCP tools.MIT
Related MCP Connectors
Read-only fantasy analysis for ESPN, Yahoo, and Sleeper leagues via MCP
ESPN MCP — keyless multi-sport live scores, teams, and news via ESPN's public site API.
MLB Stats API MCP — official MLB statistics (keyless).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/tweiss777/sleeper-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server