# PuckAPI MCP Server

28 hockey data tools for AI assistants. NHL and PWHL stats, play-by-play, expected goals and odds. REST API and MCP server. Free to start. All tools return structured output schemas for reliable parsing.

## Server URL

```
https://mcp.puckapi.com/mcp?key=YOUR_API_KEY
```

Transport: Streamable HTTP

## Get an API Key

1. Sign up at https://puckapi.com/signup (free, 500 credits every month)
2. Go to https://puckapi.com/dashboard/keys
3. Create a key (starts with `sk_live_`)

## Setup

### Claude Code

```bash
claude mcp add --transport http --scope user puckapi "https://mcp.puckapi.com/mcp?key=YOUR_API_KEY"
```

### Claude Desktop

Add to config (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS, `%APPDATA%\Claude\claude_desktop_config.json` on Windows):

```json
{
  "mcpServers": {
    "puckapi": {
      "url": "https://mcp.puckapi.com/mcp?key=YOUR_API_KEY"
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "puckapi": {
      "url": "https://mcp.puckapi.com/mcp?key=YOUR_API_KEY"
    }
  }
}
```

### VS Code (GitHub Copilot)

Add to `.vscode/mcp.json`:

```json
{
  "servers": {
    "puckapi": {
      "type": "streamable-http",
      "url": "https://mcp.puckapi.com/mcp?key=YOUR_API_KEY"
    }
  }
}
```

### Cline

Settings > MCP Servers > Add Remote Server:
- Name: `puckapi`
- URL: `https://mcp.puckapi.com/mcp?key=YOUR_API_KEY`

### Windsurf

Add to `~/.codeium/windsurf/mcp_config.json`:

```json
{
  "mcpServers": {
    "puckapi": {
      "serverUrl": "https://mcp.puckapi.com/mcp?key=YOUR_API_KEY"
    }
  }
}
```

## Available Tools

| Category | Tools | Credits |
|----------|-------|---------|
| Static reference | list_teams | 1 |
| Basic lookup | get_standings, get_schedule, search_players | 2 |
| Stats + aggregation | get_games, get_team_stats, get_player_stats, get_goalie_stats, get_skater_season_stats, get_player_game_log, get_predictions, get_game_probabilities | 5 |
| Model projections | get_prop_projections | 25 |
| Multi-table | get_odds, get_game_detail, get_head_to_head, get_plays, get_shot_map, get_shifts, get_situation_time, get_player_props, get_prop_history, get_prop_movement, get_market_odds, get_alt_lines, get_prop_probabilities | 10 |
| Time-series | get_line_movement, get_prop_backtest | 25 |

## Pricing

500 free credits every month. Plans from $19/mo at https://puckapi.com/dashboard/billing

## Documentation

Full API docs: https://puckapi.com/docs
MCP setup guide: https://puckapi.com/docs#claude-desktop
