Connecting Claude & Cursor to Live NFL Scores and Play-by-Play via MCP
Give AI agents 19 structured NFL tools — from live Sunday scores and PPR fantasy points to EPA play-by-play — using OpenPigskin's remote Streamable HTTP MCP server.
Why remote Streamable HTTP MCP beats hand-rolled glue scripts
Ask an LLM out of the box how many yards Kenneth Walker III rushed for in Super Bowl LX or what the current score is in Sunday's late window, and it will either guess from stale weights or return an outdated web snippet. The Model Context Protocol (MCP) lets Claude, Cursor and custom agents call typed tools backed by authoritative data instead.
OpenPigskin hosts a remote Streamable HTTP MCP endpoint directly at https://openpigskinapi.com/v1/mcp using JSON-RPC 2.0 (supporting MCP protocol versions 2025-06-18 and 2025-03-26). There is no local Node package to install and no stdio subprocess to keep alive — just pass your standard Authorization: Bearer op_live_... header.
Under the hood, every MCP tool invokes the exact same route handler as the REST API, so plan gating, per-minute rate limits, monthly quotas and nflverse/ESPN source attribution are enforced identically.
Configure Claude, Cursor or any MCP client in 10 seconds
Add the server block below to your MCP client configuration and replace op_live_YOUR_KEY with a key from your OpenPigskin dashboard. Starter keys work immediately on the Starter-tier tools, while Developer and higher keys unlock all 19 tools including play-by-play, fantasy scoring and live Sunday scores.
{
"mcpServers": {
"openpigskin": {
"url": "https://openpigskinapi.com/v1/mcp",
"headers": {
"Authorization": "Bearer op_live_YOUR_KEY"
}
}
}
}What all 19 NFL MCP tools cover
Calling tools/list returns strict JSON Schemas for all 19 tools, including regex patterns for stable IDs (game_nfl_*, game_espn_*, team_nfl_*, player_nfl_*, venue_nfl_*) and allowed enums. Invalid arguments are rejected immediately with JSON-RPC error -32602 before consuming a REST lookup.
Starter-tier tools (10 tools) cover discovery, standings, leaderboards, franchises, game summaries, box scores and cross-platform player profiles: search_nfl, list_seasons, get_standings, get_leaders, list_teams, get_team, list_games, get_game, get_boxscore and get_player. Developer-tier and above add 9 deeper tools: get_plays, get_drives, get_win_probability, get_fantasy_points, get_player_splits, get_venue_profile, get_live_games, get_live_game and get_schedule.
curl -X POST "https://openpigskinapi.com/v1/mcp" \
-H "Content-Type: application/json" \
-H "Mcp-Protocol-Version: 2025-06-18" \
-H "Authorization: Bearer op_live_YOUR_KEY" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Calling OpenPigskin MCP tools from a custom TypeScript agent
If you are building an automated research pipeline, Slack/Discord analyst bot or agentic fantasy assistant, you can speak JSON-RPC 2.0 directly to /v1/mcp. A reliable multi-step pattern is to resolve IDs with search_nfl first, then call analytical tools like get_fantasy_points or get_player_splits.
async function callMcpTool(
name: string,
args: Record<string, unknown>,
apiKey: string,
) {
const res = await fetch("https://openpigskinapi.com/v1/mcp", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Mcp-Protocol-Version": "2025-06-18",
Authorization: `Bearer ${apiKey}`,
},
body: JSON.stringify({
jsonrpc: "2.0",
id: crypto.randomUUID(),
method: "tools/call",
params: { name, arguments: args },
}),
});
const rpc = (await res.json()) as {
result?: { isError?: boolean; content: { type: string; text: string }[] };
error?: { code: number; message: string };
};
if (rpc.error) throw new Error(`MCP error ${rpc.error.code}: ${rpc.error.message}`);
if (rpc.result?.isError) throw new Error(rpc.result.content[0]?.text ?? "Tool error");
return JSON.parse(rpc.result?.content[0]?.text ?? "{}");
}
// Example: pull Half-PPR fantasy points for Super Bowl LX
const fantasy = await callMcpTool(
"get_fantasy_points",
{ game_id: "game_nfl_2025_22_SEA_NE", ruleset: "half_ppr" },
process.env.OPENPIGSKIN_KEY!,
);
console.log(fantasy.data.slice(0, 3), fantasy.meta.source);Enforcing zero-hallucination and source attribution in agent prompts
During initialize, the OpenPigskin MCP server sends explicit server instructions telling clients to resolve entities via search_nfl, use get_live_games for games currently in progress, and always cite meta.source.
In your own system prompt, instruct the agent never to fill in missing fields when a tool returns null or HTTP 404 feature_not_available, and to keep the boundary clear between historical nflverse records (CC BY 4.0) and live ESPN scoreboard updates (source: ESPN, licence: null).