Skip to main content
Glama
tweiss777

sleeper-mcp

by tweiss777

Sleeper MCP

一个面向公开 Sleeper API 的只读 Model Context Protocol 服务器。它通过异步 FastMCP 工具公开用户、联赛、阵容、比赛、交易、选秀、球员、热门动态、季后赛对阵表、被交易的选秀权以及赛事状态。

Sleeper 不需要 API 密钥。请遵守其文档中的指导,将请求频率控制在每分钟 1,000 次以内。完整的球员响应数据为几 MB,通常每天最多获取一次。

安装

需要 Python 3.11 或更高版本,以及 uv

uv sync

Related MCP server: flaim

运行

服务器默认使用 MCP 的 stdio 传输方式:

uv run sleeper-mcp

等效的模块命令为:

uv run python -m sleeper_mcp.server

Docker

该镜像基于 alpine:latest,通过 stdio 运行 MCP 服务器。请保留 -i,以便客户端可以通过 stdin 与进程通信。

docker build -t sleeper-mcp .
docker run --rm -i sleeper-mcp

Cursor (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。

Install Server
F
license - not found
A
quality
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

  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides 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.
  • A
    license
    Not graded
    quality
    C
    maintenance
    Connect 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.
    12
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Provides read-only access to the Sleeper Fantasy Sports API for league info, rosters, matchups, drafts, transactions, and player data.
    18
    27
    1
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides read-only access to Sleeper fantasy football leagues, enabling team snapshots, available players, matchups, trade context, and league history through standardized MCP tools.
    MIT

View all related MCP servers

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).

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/tweiss777/sleeper-mcp'

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