NBA MCP Server
Overview
NBA MCP Server is a Python-based server that implements the Model Context Protocol (MCP) to provide access to NBA statistics and live game data.
To use the NBA MCP Server, clone the repository, install the required dependencies, and run the server either using Docker or directly with Python.
- Access to live game data including scores and play-by-play actions. - Detailed player information and career statistics. - Team statistics and game logs. - League standings and game schedules.
- Fetching live scores and statistics during NBA games.
- Analyzing player performance over time.
- Retrieving historical game data for research or analysis.
Add to your AI client
Use these steps to connect NBA MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"nba-mcp-server-obinopaul": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nba-mcp-server-obinopaul"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"nba-mcp-server-obinopaul": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nba-mcp-server-obinopaul"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"nba-mcp-server-obinopaul": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nba-mcp-server-obinopaul"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"nba-mcp-server-obinopaul": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nba-mcp-server-obinopaul"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"nba-mcp-server-obinopaul": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nba-mcp-server-obinopaul"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"nba-mcp-server-obinopaul": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-nba-mcp-server-obinopaul"
]
}
}
}FAQ
Can I run the server without Docker?
Yes! You can run the server directly using Python after setting up the environment.
What programming language is used for the server?
The server is implemented in Python.
Is the server open-source?
Yes! The NBA MCP Server is available on GitHub under the MIT License.