MCP server
NHL MCP Server for Claude, Cursor and ChatGPT
The NHL MCP server is a hosted, read-only connector at https://mcp.sportsdatahq.com/mcp/nhl. It gives Claude, ChatGPT and Cursor 29 tools: standings with xG, goalie GSAX, shot maps, shifts and odds from 2010-11. A free key brings 1,000 credits a month. Nothing to install.
What your agent can do with it
Hockey analysis lives or dies on two things: knowing where shots came from and knowing who was on the ice. This server has both. get_shot_map returns every shot attempt in a game, or a team's season, with its rink coordinates, type, strength state, shooter and goalie. get_shifts returns every player's shifts in a game with period, start, end and duration, plus the official time on ice and plus-minus. get_situation_time adds the exact seconds each team spent at 5v5, 5v4, 4v5, 4v4 and with the goalie pulled, split into regulation and overtime.
On top of that sit the tables people reach for first. Standings come with Corsi, Fenwick and expected goals for and against. Goalie leaderboards can be sorted by save percentage, goals-against average, wins or GSAX (goals saved above expected), with high-danger save percentage and a rolling form number over the last ten appearances. Skater leaders and game logs cover points, goals, assists, shots, power-play points and time on ice.
The same tools work for the PWHL, OHL, WHL, QMJHL, ECHL and AHL through the league argument. Odds start in 2019-20 and are returned as information: each book's opening and closing prices, alternate puck lines and totals, and player prop lines with their history.
You can connect to either server. The SportsDataHQ route, https://mcp.sportsdatahq.com/mcp/nhl, takes the cross-sport key and gives 1,000 free credits a month. PuckAPI's own server, https://mcp.puckapi.com/mcp, takes a hockey-only key with 500 free credits a month and adds the model predictions and prop projections.
Connect it to your client
You need one thing: a free SportsDataHQ key from app.sportsdatahq.com, with 1,000 credits a month across every sport. (PuckAPI's own server, https://mcp.puckapi.com/mcp, takes a PuckAPI key instead and uses the same config shapes.) Claude and ChatGPT connectors sign you in with OAuth the first time a tool runs, so no key ever sits in a chat. Command-line and editor clients send the key in an x-api-key header instead. Connecting and listing tools cost nothing; only a data call spends credits.
Claude Code
claude mcp add --transport http sportsdatahq-nhl https://mcp.sportsdatahq.com/mcp/nhl --header "x-api-key: YOUR_API_KEY"Run /mcp inside Claude Code to confirm the server shows as connected. If you leave the header off, /mcp walks you through an OAuth sign-in instead.
Claude.ai and Claude Desktop
Open Customize, then Connectors (older versions: Settings, Connectors), choose Add custom connector, name it sportsdatahq-nhl and paste https://mcp.sportsdatahq.com/mcp/nhl. Sign in the first time a tool runs and press Allow. On Team and Enterprise plans an owner adds it under Organization settings, Connectors, and members then press Connect. The local Claude Desktop config file starts programs rather than URLs, so it goes through the mcp-remote bridge:
{
"mcpServers": {
"sportsdatahq-nhl": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.sportsdatahq.com/mcp/nhl", "--header", "x-api-key:YOUR_API_KEY"]
}
}
}Cursor
Paste this into ~/.cursor/mcp.json:
{
"mcpServers": {
"sportsdatahq-nhl": {
"url": "https://mcp.sportsdatahq.com/mcp/nhl",
"headers": { "x-api-key": "YOUR_API_KEY" }
}
}
}VS Code
Add this to .vscode/mcp.json:
{
"servers": {
"sportsdatahq-nhl": {
"type": "http",
"url": "https://mcp.sportsdatahq.com/mcp/nhl",
"headers": { "x-api-key": "YOUR_API_KEY" }
}
}
}ChatGPT
ChatGPT adds outside MCP servers through developer mode, which OpenAI currently offers on workspace plans (Business, Enterprise and Edu) and which may need an admin to switch on. Create a custom MCP app or connector, paste https://mcp.sportsdatahq.com/mcp/nhl and choose OAuth as the authentication. A sign-in page opens, you press Allow, and there is no key to copy. ChatGPT Plus does not have developer mode: call the REST API from your own machine with your key and paste the response in, as in the curl examples below.
Example questions and the tools they call
| Question | Tools called | Credits |
|---|---|---|
| Which goalies have saved the most goals above expected this season, and how are they trending? | get_goalie_stats (sort by gsax) | 5 |
| Show the Atlantic Division table with expected goals for and against. | get_standings | 2 |
| Where did St. Louis take their 5v5 shots from last night, and which were blocked? | get_games, get_shot_map | 5 + 10 |
| Who was on the ice for each goal in a game? | get_plays, get_shifts | 10 + 10 |
| How many seconds did each team spend on the power play in a game, and was the data complete? | get_situation_time | 10 |
| Find a player and list his game-by-game line for the season. | search_players, get_player_game_log | 2 + 5 |
| What are each team's chances to make the playoffs from the standings and schedule left? | get_playoff_projections | 5 |
| Which teams are on the second night of a back-to-back and just crossed a time zone? | get_schedule, get_rest_and_travel | 2 + 5 |
A tip for agents: get_games takes a date, so "last night" becomes one cheap call that returns game ids. Every deeper tool wants a game id, and hockey's ids are long numbers such as 2026020461, so resolve them first rather than guessing.
Tool count and highlights
The hockey route lists 29 tools. The highlights:
- `get_shot_map`. Coordinates are in the rink frame: x runs from -100 to 100 along the length and y from -42 to 42 across. Filter by game, or by team and season, by shooter, by strength such as
5v5, and by game type. It pages withnext_offsetfor a full season. - `get_goalie_stats`. GSAX, high-danger save percentage, rolling save percentage and rolling GSAX, trend, and rest days. Early in a season the games-played floor drops to half the most played so the table is not empty.
- `get_shifts` and `get_situation_time`. Shift charts from 2010-11 on, turned into on-ice context and exact time at each strength.
- `get_player_game_log`. One row per game for a skater or goalie, with decision, shots against and saves for goalies.
- `get_playoff_projections`. A season simulation of the schedule left, refreshed daily, and after the bracket is set the chance to reach each round.
- Market tools.
get_odds,get_line_movement,get_line_at_time,get_alt_lines,get_market_odds(period and regulation-result lines),get_player_props,get_prop_history,get_prop_movement,get_game_probabilities,get_prop_probabilitiesandget_prop_backtest.
PuckAPI's own server adds get_predictions (the model's win probability for each game on the slate) and get_prop_projections (projected goals, assists, points, shots and saves, on paid plans). Those two are not on the SportsDataHQ route.
Credit costs
| Credits | Tools |
|---|---|
| 1 | list_teams, get_data_status |
| 2 | get_standings, get_schedule, search_players |
| 5 | get_games, get_team_stats, get_player_stats, get_goalie_stats, get_skater_season_stats, get_player_game_log, get_game_probabilities, get_playoff_projections, get_line_at_time, get_rest_and_travel |
| 10 | get_game_detail, get_head_to_head, get_plays, get_shot_map, get_shifts, get_situation_time, get_odds, get_player_props, get_prop_history, get_prop_movement, get_market_odds, get_alt_lines, get_prop_probabilities |
| 25 | get_line_movement, get_prop_backtest |
A game preview (schedule, game detail, odds) costs about 22 credits and a shot analysis (search, shot map) about 12. With 1,000 free credits you can run a good number of both every month.
Verified examples you can run now
Export your key as KEY. Each of these ran against the live API on December 6, 2026 and returned HTTP 200.
Goalies ranked by goals saved above expected (5 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/nhl/get_goalie_stats \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"sort_by": "gsax", "limit": 3}'{
"data": {
"goalies": [
{
"playerName": "Jesper Wallstedt",
"team": "MIN",
"gamesPlayed": 26,
"savePct": 0.91458,
"gaa": 2.211443,
"gsax": 15.678238,
"highDangerSavePct": 0.90873015
},
{
"playerName": "Linus Ullmark",
"team": "OTT",
"gamesPlayed": 18,
"savePct": 0.930716,
"gaa": 1.716574,
"gsax": 13.650422,
"highDangerSavePct": 0.88125
}
]
}
}Games on one date, to get game ids (5 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/nhl/get_games \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"date": "2026-12-04", "limit": 2}'Five-on-five shot locations for one of those games (10 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/nhl/get_shot_map \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"game_id": "2026020461", "strength": "5v5", "limit": 2}'Atlantic Division standings (2 credits):
curl -s -X POST https://api.sportsdatahq.com/v1/nhl/get_standings \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-d '{"division": "Atlantic"}'The tool list your MCP client sees on the hockey route, which is free:
curl -s -X POST https://mcp.sportsdatahq.com/mcp/nhl \
-H "x-api-key: $KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'When not to use this
- You want the model's predictions on this server. The hockey route leaves out PuckAPI's win probabilities and prop projections. Those are on PuckAPI's own server, and the prop projections need a paid plan.
- You need data before 2010-11. Play-by-play, shots and shifts start that season. Older seasons are not here.
- You need live prices. Odds and props are pre-game only. Hockey lines before the 2019-20 season are not held.
- You are rebuilding a whole season. A shot-level season is tens of thousands of rows. Page through it if you must, but a data package is one download, and a 10-credit page of 1,000 shots adds up fast.
- You want a raw feed to resell. Storing, modelling and building products that show your users what you derive is fine. Redistributing the data or odds as a feed is not.
- You want a pick. Prices come back as information about the market. No tool recommends a wager or works out a stake.
- You only build in hockey. PuckAPI's own key has paid plans from $19 a month and includes the model outputs, so it is better value than the cross-sport account if hockey is all you need.
Source and related pages
There is no public hockey MCP repository. The hosted route and the PuckAPI docs and PuckAPI MCP page are the references. For the cross-sport server's public code see sports-data-mcp-server. Related guides: the free sports data MCP server, NBA, NFL and soccer, and free skills for goalie GSAX reports, xG reports and game previews.
Try it
- Get a free key: 1,000 credits a month, no card.
- Skip the API and download a data package if you want a full season in a file.
FAQ
How many tools does the NHL MCP server have?
The hockey route on the SportsDataHQ server lists 29 tools. PuckAPI's own server lists 32, because it adds PuckAPI's model predictions and prop projections, which stay on PuckAPI.
How far back does the NHL data go?
Games, play-by-play, shot locations and shift data run from the 2010-11 season to today, and sportsbook odds start in 2019-20. Seasons use an eight-digit id such as 20262027 for 2026-27.
Does it cover leagues besides the NHL?
Yes. Tools that take a league argument accept nhl (the default), pwhl, ohl, whl, qmjhl, echl and ahl on the same key. Coverage depth varies by league, so check the tool's own notes for shifts and shot data.
Is there a public NHL MCP repository?
No. The NBA, NFL and soccer servers have public repositories, and so does the cross-sport server, but PuckAPI has none. The hosted server and its docs are the way in.
Checked against the live API on 2026-12-06. Questions: hello@sportsdatahq.com.