NBA MCP Server
Bring live NBA game stats, scores, and advanced analytics directly into your AI agents and chatbots with the NBA MCP Server, seamlessly integrated with FlowHunt.

What does “NBA” MCP Server do?
The NBA MCP Server is a Model Context Protocol (MCP) server designed to enhance AI assistants, such as Anthropic’s Claude, by enabling them to access and retrieve up-to-date NBA basketball game data and statistics. By interfacing with the open-source nba_api
, the server allows LLMs to fetch recent NBA game scores, player statistics, and advanced analytics that would otherwise be inaccessible due to model knowledge limitations. This connection empowers AI-driven development workflows, allowing for dynamic database queries and live data retrieval regarding NBA games, player performance, and more, thus significantly augmenting the assistant’s ability to interact with and analyze real-world sports data.
List of Prompts
No prompt templates were specified in the repository.
List of Resources
No explicit resources were detailed in the repository.
List of Tools
Fetch final scores
Retrieves the final scores for all NBA games that occurred yesterday or in the recent past.Fetch basic player stats
Obtains points, rebounds, and assists (P/R/A) breakdowns for all players who participated in games from yesterday or earlier dates.Fetch full player stats
Collects comprehensive player stats including PTS, REB, AST, STL, BLK, TO, PLUS_MINUS, and MIN for games played yesterday or in the past.Fetch four factors
Retrieves the “four factors” advanced analytics for all NBA games that happened yesterday or in the recent past.
Use Cases of this MCP Server
Real-time NBA game summaries
Developers can enable AI assistants to answer questions about the latest NBA games, providing up-to-date scores and outcomes.Detailed player performance analysis
The server allows retrieval of per-player statistics, supporting use cases like generating post-game reports, fantasy basketball insights, or historical analysis.Advanced analytics for sports journalism
By accessing the four factors and other metrics, journalists and analysts can quickly surface advanced stats for articles or commentary.Automated sports dashboards
Integration with dashboard tools allows live updates on NBA games and player performances for fans or analysts.AI-driven sports applications
Developers can use the server to power chatbots or virtual assistants capable of answering NBA-related queries with recent data.
How to set it up
Windsurf
- Ensure Python is installed and set up a virtual environment in the repo directory.
- Run:
uv venv .venv\Scripts\activate uv pip install -e .
- Add the NBA MCP Server configuration to your Windsurf config (if supported).
- Insert the NBA MCP server in the
mcpServers
object with the appropriate command and arguments. - Save and restart the Windsurf service.
- Verify the setup by running a test query.
JSON example:
{
"mcpServers": {
"nba-mcp": {
"command": "python",
"args": ["nba.py"]
}
}
}
Claude
- Clone the repo and set up the environment as above.
- Install dependencies:
uv venv .venv\Scripts\activate uv pip install -e .
- Edit your Claude configuration file to add the NBA MCP Server.
- Add the server under the
mcpServers
section. - Restart Claude and verify connectivity.
JSON example:
{
"mcpServers": {
"nba-mcp": {
"command": "python",
"args": ["nba.py"]
}
}
}
Cursor
- Clone the repository and set up the virtual environment.
- Install requirements as previously described.
- Edit Cursor’s configuration to include the NBA MCP Server.
- Add the server entry and save changes.
- Restart Cursor and test functionality.
JSON example:
{
"mcpServers": {
"nba-mcp": {
"command": "python",
"args": ["nba.py"]
}
}
}
Cline
- Ensure Python and virtual environment are set up.
- Install the NBA MCP Server as above.
- Edit the Cline configuration file.
- Add the NBA MCP server details under
mcpServers
. - Restart Cline and run a test.
JSON example:
{
"mcpServers": {
"nba-mcp": {
"command": "python",
"args": ["nba.py"]
}
}
}
Securing API Keys
No API keys are required for the NBA MCP Server as it uses the open-source nba_api
. If future versions require keys, you can secure them using environment variables:
JSON example:
{
"mcpServers": {
"nba-mcp": {
"command": "python",
"args": ["nba.py"],
"env": {
"NBA_API_KEY": "${NBA_API_KEY}"
},
"inputs": {
"NBA_API_KEY": "your_api_key_here"
}
}
}
}
How to use this MCP inside flows
Using MCP in FlowHunt
To integrate MCP servers into your FlowHunt workflow, start by adding the MCP component to your flow and connecting it to your AI agent:

Click on the MCP component to open the configuration panel. In the system MCP configuration section, insert your MCP server details using this JSON format:
{
"nba-mcp": {
"transport": "streamable_http",
"url": "https://yourmcpserver.example/pathtothemcp/url"
}
}
Once configured, the AI agent is now able to use this MCP as a tool with access to all its functions and capabilities. Remember to change “nba-mcp” to whatever the actual name of your MCP server is and replace the URL with your own MCP server URL.
Overview
Section | Availability | Details/Notes |
---|---|---|
Overview | ✅ | Overview and features present in README |
List of Prompts | ⛔ | No prompt templates found |
List of Resources | ⛔ | No explicit resources listed |
List of Tools | ✅ | Listed in README (features section) |
Securing API Keys | ⛔ | No API keys required for nba_api |
Sampling Support (less important in evaluation) | ⛔ | Not mentioned |
Supports Roots | Supports Sampling |
---|---|
⛔ | ⛔ |
Based on the available information, the NBA MCP Server offers valuable real-time sports data integration for LLMs but is missing documentation on prompt templates, explicit resource definitions, and advanced MCP features like roots or sampling. It is a functional but basic implementation.
MCP Score
Has a LICENSE | ⛔ |
---|---|
Has at least one tool | ✅ |
Number of Forks | 2 |
Number of Stars | 6 |
Rating:
I would rate this MCP server a 4 out of 10. It delivers its core functionality (NBA stats tools) and basic setup but lacks thorough documentation, resource definition, prompt templates, and advanced MCP features (roots, sampling). The absence of a license is also a significant limitation for open source use.
Frequently asked questions
- What is the NBA MCP Server?
The NBA MCP Server is an open-source Model Context Protocol server that enables AI agents and chatbots to access live NBA basketball data. It uses nba_api to fetch game scores, player stats, and advanced analytics, providing real-time integration for AI-powered applications.
- What features and tools does the NBA MCP Server provide?
It provides tools for fetching final NBA game scores, basic and full player statistics (including points, rebounds, assists, steals, blocks, turnovers, +/-, and minutes), and advanced 'four factors' analytics for recent games.
- Do I need an API key to use the NBA MCP Server?
No API keys are required for the NBA MCP Server, as it leverages the public nba_api library. If a future version requires API keys, you can secure them using environment variables in your configuration.
- What are some common use cases for the NBA MCP Server?
Common use cases include powering chatbots with live NBA data, generating real-time game summaries, providing player performance analytics for fantasy sports, creating automated dashboards, and supporting sports journalism with advanced statistics.
- How do I integrate the NBA MCP Server with FlowHunt?
Add the MCP component to your FlowHunt workflow, and configure the NBA MCP Server using the provided JSON format in the system MCP configuration. This enables your AI agent to access all NBA stats tools offered by the server.
Enhance Your AI With Live NBA Data
Supercharge your AI assistants and chatbots with real-time, in-depth NBA statistics and game updates using FlowHunt's NBA MCP Server integration.