MB

mikechao/balldontlie-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

26 stars 13 forks 质量 71 趋势 0MIT

一个集成 Balldontlie API 的 MCP 服务器实现,用于提供 NBA、NFL 和 MLB 的球员、球队和比赛信息

概览

一个集成了Balldontlie API的MCP服务器实现,用于为NBA、NFL和MLB提供球员、球队和比赛的信息。 - 获取以下联盟之一的球队列表:NBA(国家篮球协会)、MLB(美国职业棒球大联盟)、NFL(国家橄榄球联盟)- 输入:- 联赛(enum [NBA', 'NFL', 'MLB']):用于获取球队的体育联盟 - 获取以下联盟之一的球员列表:NBA(国家篮球协会)、MLB(美国职业棒球大联盟)、NFL(国家橄榄球联盟)- 输入:- 联盟(enum ['NBA', 'NFL', 'MLB']):获取球员的体育联盟 - 名字(字符串,可选):要搜索球员的第一个名字 - 姓氏(字符串,可选):要搜索球员的姓氏 - 光标(数字,可选):用于分页的光标 - 获取以下联盟之一的比赛列表:NBA(国家篮球协会)、MLB(美国职业棒球大联盟)、NFL(国家橄榄球联盟)-...

概述(AI 翻译)

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

工具

  • get_teams

  • 获取以下联盟之一的球队名单:NBA(国家篮球协会)、MLB(美国职业棒球大联盟)、NFL(国家橄榄球联盟)

  • 输入:

  • league(enum [NBA’, ‘NFL’, ‘MLB’]):体育联盟,用于获得球队

  • get_players

  • 获取以下联盟之一的球员名单:NBA(国家篮球协会)、MLB(美国职业棒球大联盟)、NFL(国家橄榄球联盟)

  • 输入:

  • league(枚举 [‘NBA’, ‘NFL’, ‘MLB’]):用于获得球员的体育联盟

  • firstName(字符串,可选):玩家的第一个名字

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

  • cursor(编号,可选):分页光标

  • get_games

  • 获取以下联盟之一的比赛列表:NBA(国家篮球协会)、MLB(美国职业棒球大联盟)、NFL(国家橄榄球联盟)

  • 输入:

  • league(枚举 [‘NBA’, ‘NFL’, ‘MLB’]):体育联盟,用于获取比赛

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Balldontlie MCP Server

An MCP Server implementation that integrates the Balldontlie API, to provide information about players, teams and games for the NBA, NFL and MLB.

Tools

  • get_teams

    • 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 (enum [‘NBA’, ‘NFL’, ‘MLB’]): The sports league to get teams for
  • get_players

    • 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 (enum [‘NBA’, ‘NFL’, ‘MLB’]): The sports league to get players for
      • firstName (string, optional): The first name of the player to search for
      • lastName (string, optional): The last name of the player to search for
      • cursor (number, optional): Cursor for pagination
  • get_games

    • 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 (enum [‘NBA’, ‘NFL’, ‘MLB’]): The sports league to get games for
      • dates (string[], optional): Get games for specific dates, format: YYYY-MM-DD
      • teamIds (string[], optional): Get games for specific games
      • cursor (number, optional): Cursor for pagination
  • get_game

    • Get a specific game from one of the following leagues NBA (National Basketball Association), MLB (Major League Baseball), NFL (National Football League)
    • Inputs:
      • league (enum [‘NBA’, ‘NFL’, ‘MLB’]): The sports league to get the game for
      • gameId (number): The id of the game from the get_games tool

Prompts

  • schedule_generator

Given a league (NBA, MLB, NFL), a starting date and ending date generates an interactive schedule in Claude Desktop.

Sample queries

With this MCP Server installed you can ask Claude or other LLM questions like the following.

Show me today's baseball games.
Can you find football players with the last name Purdy?
在 GitHub 查看完整 README

安装

npx -y balldontlie-mcp
新手?先看 mcpskill.org 教程 →