home / mcp / fantasy nba israel mcp server

Fantasy NBA Israel MCP Server

Provides tools to query league rankings, team stats, players, and shooting analytics from the Fantasy NBA Israel League API.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "asafshai-nba-fantasy-israel-mcp": {
      "command": "uvx",
      "args": [
        "fantasy-nba-israel-mcp@latest"
      ]
    }
  }
}

You can access Fantasy NBA Israel League data through a dedicated MCP server that exposes tools for team rankings, player stats, and detailed analytics. This server connects to the private league API and lets you retrieve organized statistics and insights for your analyses and decision-making.

How to use

You first set up an MCP client to talk to the Fantasy NBA Israel League MCP server. Then you can run tools to fetch rankings, team stats, and player details. Use an MCP-enabled client to invoke the available tools and view results in a structured format.

How to install

Prerequisites you need before installing and running the server are the MCP tooling and a runtime package.

# Install the MCP runtime and client tooling
# Install uv (Python package installer and runner)
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows, install uvx from a PowerShell command
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Configure your MCP client with the following settings to run the Fantasy NBA Israel League MCP server locally.

{
  "mcpServers": {
    "fantasynbaleague": {
      "command": "uvx",
      "args": ["fantasy-nba-israel-mcp@latest"]
    }
  }
}

Additional setup notes

If you prefer development or testing locally, you can run the server in development mode and access an interactive MCP inspector.

uv run mcp dev fantasy_nba_israel_mcp/server.py

To run the server in standalone Python mode for testing, you can use these options.

# Standalone testing: using the package as a module
python -m fantasy_nba_israel_mcp

Notes on usage and capabilities

The server provides a set of tools to access league data. You can retrieve average league rankings, list all teams, get average stats, fetch detailed team information including rosters and player stats, list all players, and obtain league-wide shooting statistics.

Available tools

getAveragesLeagueRankings

Fetch the average league rankings with per-category statistics, including total points and rank for each team, with optional sort order.

getTeams

Retrieve the list of all teams in the league, including team IDs and names.

getAverageStats

Get team statistics mapped by category, with an option to return raw or normalized (0-1) values and include games played.

getTeamDetails

Obtain comprehensive details for a single team, including stats, roster with player stats, ESPN URL, shot chart stats, and category rankings.

getAllPlayers

Return all players in the league with full statistics, including minutes played and games played.

getLeagueShotsStats

Provide league-wide shooting statistics for all teams, including field goals and free throws.