Gets player, team and game information for the NBA, NFL and MLB from the balldontlie API.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add balldontlie --env BALLDONTLIE_API_KEY='<BALLDONTLIE_API_KEY>' -- npx -y @smithery/cli install @mikechao/balldontlie-mcp --client claude~/.codex/config.toml
[mcp_servers.balldontlie]
command = "npx"
args = ["-y", "@smithery/cli", "install", "@mikechao/balldontlie-mcp", "--client", "claude"]
env = { BALLDONTLIE_API_KEY = "<BALLDONTLIE_API_KEY>" }
# codex mcp add balldontlie --env BALLDONTLIE_API_KEY='<BALLDONTLIE_API_KEY>' -- npx -y @smithery/cli install @mikechao/balldontlie-mcp --client claude~/.cursor/mcp.json
{
"mcpServers": {
"balldontlie": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@mikechao/balldontlie-mcp",
"--client",
"claude"
],
"env": {
"BALLDONTLIE_API_KEY": "<BALLDONTLIE_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"balldontlie": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@mikechao/balldontlie-mcp",
"--client",
"claude"
],
"env": {
"BALLDONTLIE_API_KEY": "<BALLDONTLIE_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"balldontlie": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@mikechao/balldontlie-mcp",
"--client",
"claude"
],
"env": {
"BALLDONTLIE_API_KEY": "<BALLDONTLIE_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"balldontlie": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@mikechao/balldontlie-mcp",
"--client",
"claude"
],
"env": {
"BALLDONTLIE_API_KEY": "<BALLDONTLIE_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"balldontlie": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"@mikechao/balldontlie-mcp",
"--client",
"claude"
],
"env": {
"BALLDONTLIE_API_KEY": "<BALLDONTLIE_API_KEY>"
}
}
}
}需要的环境变量
BALLDONTLIE_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。