Skip to main content
Glama
balldontlie-mcp

balldontlie-mcp

by mikechao

Balldontlie MCP 服务器

铁匠徽章

MCP 服务器实现集成了Balldontlie API ,提供有关 NBA、NFL 和 MLB 的球员、球队和比赛的信息。

工具

  • 获取团队

    • 获取 NBA、NFL 或 MLB 球队列表

    • 输入:

      • league (枚举['NBA','NFL','MLB']):获取球队的体育联盟

  • 获取玩家

    • 获取 NBA、NFL 或 MLB 球员名单

    • 输入:

      • league (枚举['NBA','NFL','MLB']):招募球员的体育联盟

      • firstName (字符串,可选):要搜索的玩家的名字

      • lastName (字符串,可选):要搜索的玩家的姓氏

      • cursor (数字,可选):分页光标

  • 获取游戏

    • 获取 NBA、NFL 或 MLB 的比赛列表

    • 输入:

      • league (枚举['NBA','NFL','MLB']):获取比赛的体育联盟

      • dates (string[],可选):获取特定日期的游戏,格式:YYYY-MM-DD

      • teamIds (string[],可选):获取特定游戏的游戏

      • cursor (数字,可选):分页光标

  • 获取游戏

    • 获取以下联盟 NBA、MLB、NFL 中的特定比赛

    • 输入:

      • league (枚举['NBA','NFL','MLB']):获取比赛的体育联盟

      • gameId (数字):来自 get_games 工具的游戏 ID

Related MCP server: mlb-api-mcp

提示

  • 时间表生成器

给定一个联盟(NBA、MLB、NFL),开始日期和结束日期会在 Claude Desktop 中生成一个交互式时间表。

克劳德桌面示例

配置

获取 API 密钥

  1. 在Balldontlie.io注册账户

  2. 免费计划足以满足此 MCP 服务器的需求

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 balldontlie-mcp:

npx -y @smithery/cli install @mikechao/balldontlie-mcp --client claude

与 Claude Desktop 一起使用

将其添加到您的claude_desktop_config.json中:

{
  "mcp-servers": {
    "balldontlie": {
      "command": "npx",
      "args": [
        "-y",
        "balldontlie-mcp"
      ],
      "env": {
        "BALLDONTLIE_API_KEY": "YOUR API KEY HERE"
      }
    }
  }
}

与 LibreChat 一起使用

mcpServers:
  balldontlie:
    command: sh
    args:
      - -c
      - BALLDONTLIE_API_KEY=your-api-key-here npx -y balldontlie-mcp

执照

此 MCP 服务器采用 MIT 许可证。这意味着您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。更多详情,请参阅项目仓库中的 LICENSE 文件。

免责声明

此库与 balldontlie.io 无官方关联。它是 balldontlie api 的第三方实现,并带有 MCP 服务器。

Available Tools

4 tools
get_gameB

Get a specific game from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)

Inputs: league (required), gameId (required).

get_gamesB

Gets the list of games from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)

Inputs: league (required), dates, seasons, teamIds, +1 more.

get_playersA

Gets the list of players from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)

Inputs: league (required), firstName, lastName, cursor.

get_teamsA

Gets the list of team from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)

Inputs: league (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct resource: a single game, list of games, players, or teams. There is no overlap in functionality.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with get_ prefix and snake_case. No deviations.

    Tool Count5/5

    Four tools are well-scoped for a sports data server covering three leagues. Not too many or too few.

    Completeness3/5

    The server provides only read operations. Missing single-player and single-team retrieval, and no filtering or search capabilities are indicated in descriptions.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP Server that enables interaction with MLB scores and statistics via the SportsData.io MLB V3 Scores API, allowing users to access baseball data through natural language queries.
      -
    • A
      license
      B
      quality
      D
      maintenance
      Python MCP server that provides comprehensive access to MLB statistics and baseball data through a FastAPI-based interface. Acts as a bridge between AI applications and MLB data sources, enabling seamless integration of baseball statistics, game information, player data, and more.
      24
      59
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for accessing college basketball statistics through the SportsData.io CBB v3 Stats API, enabling AI agents to retrieve and analyze college basketball data through natural language interactions.
      -
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for NBA live data and stats, providing read-only tools to query live scores, box scores, player info, standings, and more from NBA.com.
      15
      11 npm
      1
      MIT