Gets player, team and game information for the NBA, NFL and MLB from the balldontlie API.
Setup
Choose your client, copy the config, then fill in any required environment variables.
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>"
}
}
}
}Environment variables
BALLDONTLIE_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.