Balldontlie

v1.0.0APIsstable

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

mcp-servermlbmodel-context-protocolnbanfl
Share:
23
Stars
0
Downloads
0
Weekly
0/5

What is Balldontlie?

Balldontlie is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server implementation that integrates the balldontlie api, to provide information about players, teams and games for the nba, nfl and mlb.

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

This server falls under the APIs and Search & Data Extraction categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • An MCP Server implementation that integrates the Balldontlie

Use Cases

Access real-time sports data for NBA, NFL, and MLB players, teams, and games.
Build sports analytics applications with structured API data.
mikechao

Maintainer

LicenseMIT License
Languagejavascript
Versionv1.0.0
UpdatedMar 30, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx balldontlie

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Balldontlie

The Balldontlie MCP server integrates the Balldontlie sports data API with AI clients, providing structured access to player, team, and game data for the NBA, NFL, and MLB. It exposes tools for searching players by name, retrieving team rosters, listing games by date or team, and fetching specific game details — plus a schedule generator prompt for building interactive schedules. Sports fans, fantasy sports enthusiasts, and developers building sports analytics applications can use it to ask natural language questions about their favorite teams and players.

Prerequisites

  • Node.js 18+ with npm installed
  • A free Balldontlie API key — sign up at balldontlie.io
  • An MCP-compatible client such as Claude Desktop
1

Sign up for a Balldontlie API key

Visit balldontlie.io and create a free account to obtain your BALLDONTLIE_API_KEY. The free tier provides access to all three sports leagues.

2

Install via Smithery (recommended)

The easiest installation method is through the Smithery CLI, which handles configuration automatically.

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

Or install via DXT extension

Download the .dxt extension file from the GitHub Releases page and open it directly with Claude Desktop, or drag it to File > Settings > Extensions.

4

Or configure manually in Claude Desktop

For manual setup, add the server to your Claude Desktop config with your API key as an environment variable.

5

Restart Claude Desktop and test

Restart Claude Desktop. Ask about today's games or a player to verify the tools are working.

Balldontlie Examples

Client configuration

Manual Claude Desktop configuration for the Balldontlie MCP server with API key.

{
  "mcpServers": {
    "balldontlie": {
      "command": "npx",
      "args": ["-y", "@smithery/cli", "run", "@mikechao/balldontlie-mcp"],
      "env": {
        "BALLDONTLIE_API_KEY": "your-api-key-here"
      }
    }
  }
}

Prompts to try

Examples of sports data queries you can ask Claude with this server connected.

- "Show me today's NBA games"
- "Find all NFL players with the last name Purdy"
- "How many NBA players have the last name Ming?"
- "List all MLB teams and their divisions"
- "Generate an interactive NBA schedule for this week"
- "What were the scores of yesterday's baseball games?"

Troubleshooting Balldontlie

API returns 401 Unauthorized errors

Verify that BALLDONTLIE_API_KEY is set correctly in your config. Log into balldontlie.io to confirm your key is active. The free plan key is found in your account dashboard under API Keys.

get_games returns empty results for today

Sports leagues have off-seasons — if no games are scheduled for the queried date, the response will be empty. Try specifying a recent game date or ask for upcoming scheduled games. The API only includes official season and playoff games.

Smithery install command fails with network errors

Try installing with a direct npm command instead: `npm install -g @mikechao/balldontlie-mcp` and configure manually in claude_desktop_config.json with the BALLDONTLIE_API_KEY environment variable.

Frequently Asked Questions about Balldontlie

What is Balldontlie?

Balldontlie is a Model Context Protocol (MCP) server that mcp server implementation that integrates the balldontlie api, to provide information about players, teams and games for the nba, nfl and mlb. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Balldontlie?

Follow the installation instructions on the Balldontlie GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Balldontlie?

Balldontlie works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Balldontlie free to use?

Yes, Balldontlie is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More APIs MCP Servers

Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "balldontlie": { "command": "npx", "args": ["-y", "balldontlie"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Balldontlie?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides