MCP Server Documentation

Connect FantasyBot to Claude for real-time fantasy sports data with rich interactive widgets.

Setup

Connect to Claude

  1. Open Claude.ai and click on your account menu in the bottom-left corner.
  2. Go to Settings, then select Connectors.
  3. Click Add custom connector.
  4. Enter a name (e.g. "FantasyBot") and paste the server URL:
    https://api.fantasybot.ai/claude/mcp
  5. Click Add, then click Connect next to the new connector.
  6. You'll be redirected to sign in. Create an account or log in with your existing credentials.
  7. Once connected, open any chat, click the + button at the bottom-left, select Connectors, and toggle FantasyBot on.

Server Details

Server URLhttps://api.fantasybot.ai/claude/mcp
ProtocolMCP over Streamable HTTP
AuthenticationOAuth 2.0 (PKCE)
SportsNFL, NBA, MLB, NHL
Rate Limit100 tool calls per day

Tools

All 7 tools are read-only and return both structured data and an interactive widget rendered inline in the chat. No league linking is required — just ask about any player by name.

Get Player Stats

get_player_stats

Look up any player's fantasy stats across NFL, NBA, MLB, or NHL. Returns season totals, PPG, key stats, trends, current matchup, and recent news.

Try"How is Patrick Mahomes doing this season?"
ParameterTypeRequiredDescription
player_namestringYesPlayer name to look up
sportnfl | nba | mlb | nhlNoAuto-detected if omitted
scoringppr | half | non-pprNoNFL scoring format

Analyze Trade

analyze_trade

Evaluate a fantasy trade by comparing deep stats for all players on both sides. Returns PPG, trends, projections, matchups, and news for each player.

Try"Should I trade Tyreek Hill for Ja'Marr Chase and Travis Kelce?"
ParameterTypeRequiredDescription
side_a_playersstring[]YesPlayer names on Side A
side_b_playersstring[]YesPlayer names on Side B
sportnfl | nba | mlb | nhlNoAuto-detected if omitted

Start/Sit Analysis

start_sit_analysis

Compare 2-5 players and rank them by projected performance. Uses projections, recent trends, and matchup difficulty to recommend who to start, flex, or sit.

Try"Start Achane, Gibbs, or Drake London at flex?"
ParameterTypeRequiredDescription
playersstring[]Yes2-5 player names to compare
sportnfl | nba | mlb | nhlNoAuto-detected if omitted
scoringppr | half_ppr | standardNoDefaults to PPR

Get Player Value

get_player_value

Get a deep breakdown of a player's trade value including season stats, PPG, trends, projections, matchup grade, and latest news.

Try"What's Bijan Robinson's trade value?"
ParameterTypeRequiredDescription
player_namestringYesPlayer name to evaluate
sportnfl | nba | mlb | nhlNoAuto-detected if omitted

Get Position Rankings

get_position_rankings

Rank the top players at any position by fantasy points. Supports season stats or weekly projections across all four sports.

Try"Rank the top 10 wide receivers"
ParameterTypeRequiredDescription
positionstringYese.g. QB, RB, WR, TE, PG, SP, C, LW
sportnfl | nba | mlb | nhlNoAuto-detected from position
limitnumber (5-20)NoDefaults to 20
typestats | projectedNoSeason stats or weekly projections
weeknumberNoRequired if type is projected
scoringppr | half_ppr | standardNoDefaults to PPR

Compare Players

compare_players

Head-to-head comparison of two players with side-by-side stats, trends, projections, and matchups. Shows an overall winner.

Try"CeeDee Lamb vs Justin Jefferson"
ParameterTypeRequiredDescription
player_astringYesFirst player name
player_bstringYesSecond player name
sportnfl | nba | mlb | nhlNoAuto-detected if omitted

Troubleshooting

"Player not found"

Try using the player's full name (e.g. "Patrick Mahomes" instead of "Mahomes"). The search is fuzzy but works best with full names. If a player was recently traded or is a rookie, data updates every 24 hours.

"Rate limit exceeded"

Each account is limited to 100 tool calls per day. The limit resets at midnight UTC. If you hit the limit, the widget will show a fallback message with the reset time.

Connector not showing tools

Make sure the connector is toggled on for your current conversation. Click the + button at the bottom-left of the chat, select Connectors, and ensure FantasyBot is enabled.

Authentication errors

If you see a 401 error, try disconnecting and reconnecting the connector in Settings > Connectors. This will refresh your OAuth tokens.

Widget not rendering

Widgets require a modern browser. Make sure you're using the latest version of Claude.ai. If the widget doesn't appear, the tool response will still include a text summary with all the data.

Support

Need help? Reach out at support@fantasybot.ai or visit our contact page.