This MCP server provides access to NBA statistics and live game data through the Model Context Protocol. It bridges the gap between applications and NBA's data services, offering comprehensive information from live scores to historical player statistics.
git clone https://github.com/obinopaul/nba-mcp-server.git
cd nba-mcp-server
pip install -r requirements.txt
docker build -t nba_mcp_server .
docker run -d -p 5000:5000 --name nba_mcp_server nba_mcp_server
claude_desktop_config.json
:{
"mcpServers": {
"nba_mcp_server": {
"command": "docker",
"args": [
"exec",
"-i",
"nba_mcp_server",
"python",
"nba_server.py"
]
}
}
}
git clone https://github.com/obinopaul/nba-mcp-server.git
cd nba-mcp-server
conda create --name your_env_name python=3.13
conda activate your_env_name
pip install -r requirements.txt
mcp run nba_server.py
claude_desktop_config.json
:{
"mcpServers": {
"nba_mcp_server": {
"command": "/path/to/your/python",
"args": [
"/path/to/nba_server.py"
]
}
}
}
After configuring, restart Claude Desktop to enable the NBA server tools in your conversations.
You can run the server directly with Python:
python nba_server.py
Or using the MCP command:
mcp run nba_server.py
The server runs with a 30-second timeout for reliability and includes signal handlers for graceful shutdown with Ctrl+C.
Once the server is running and configured in Claude Desktop, you can directly ask Claude for NBA information, and it will utilize these tools to provide accurate, up-to-date data.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.