Skip to main content
Glama
tweiss777

sleeper-mcp

by tweiss777

Sleeper MCP

公開の Sleeper API 向けの読み取り専用の Model Context Protocol サーバーです。users、leagues、rosters、matchups、transactions、drafts、players、trending activity、playoff brackets、traded picks、sport state を、非同期の FastMCP ツールを通じて公開します。

Sleeper は API キーを必要としません。文書化されたガイダンスに従い、1 分あたり 1,000 リクエスト未満に抑えてください。完全な players レスポンスは数メガバイトあり、通常は 1 日に 1 回を超えて取得しないでください。

インストール

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 サーバーを実行します。クライアントが stdin でプロセスと通信できるように、-i を維持してください。

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