Balldontlie-MCP连接器
一种集成了Balldontlie API的MCP服务器实现,用于提供关于NBA、NFL和MLB的球员、球队和比赛的信息。
服务介绍
Balldontlie MCP 服务器
这是一个集成 Balldontlie API 的 MCP 服务器实现,提供 NBA、NFL 和 MLB 的球员、球队和比赛信息。
工具
-
get_teams
- 获取 NBA、NFL 或 MLB 的球队列表
- 输入:
league(枚举 ['NBA', 'NFL', 'MLB']): 要获取球队的体育联盟
-
get_players
- 获取 NBA、NFL 或 MLB 的球员列表
- 输入:
league(枚举 ['NBA', 'NFL', 'MLB']): 要获取球员的体育联盟firstName(字符串, 可选): 要搜索的球员名字lastName(字符串, 可选): 要搜索的球员姓氏cursor(数字, 可选): 分页游标
-
get_games
- 获取 NBA、NFL 或 MLB 的比赛列表
- 输入:
league(枚举 ['NBA', 'NFL', 'MLB']): 要获取比赛的体育联盟dates(字符串[], 可选): 获取特定日期的比赛,格式:YYYY-MM-DDteamIds(字符串[], 可选): 获取特定球队的比赛cursor(数字, 可选): 分页游标
-
get_game
- 从以下联赛中获取特定比赛:NBA、MLB、NFL
- 输入:
league(枚举 ['NBA', 'NFL', 'MLB']): 要获取比赛的体育联盟gameId(数字): 来自 get_games 工具的比赛 ID
配置
获取 API 密钥
- 在 Balldontlie.io 注册账户
- 免费计划对于此 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 服务器。