← All guides

Use GridIron Data in Claude Code (MCP)

Install the GridIron Data MCP server and ask Claude Code for NFL fantasy data in plain English — "top RB projections for week 5 in half-PPR", "how did Justin Jefferson do in 2023", "any injury news on Malik Nabers". Claude calls the API for you.

What is MCP? The Model Context Protocol lets AI clients use external tools. This server wraps the GridIron Data API as tools, so Claude Code (and Claude Desktop, Cursor, …) can pull live fantasy data mid-conversation.

Before you start

Install (uv — recommended)

1Download the server (a single file):

curl -o gridiron-mcp.py https://www.gridirondata.com/gridiron-mcp.py

2Register it with Claude Code, passing your API key. -s user makes it available in every project:

claude mcp add gridiron-data -s user \
  -e GRIDIRON_API_KEY=YOUR_KEY \
  -- uv run "$(pwd)/gridiron-mcp.py"

That's it — uv run auto-installs the two dependencies from the file's header the first time it launches.

Install (Python, no uv)

# download + install the two deps into a venv
curl -o gridiron-mcp.py https://www.gridirondata.com/gridiron-mcp.py
python3 -m venv gridiron-mcp-venv
gridiron-mcp-venv/bin/pip install "mcp>=2,<3" httpx

# register it (absolute paths)
claude mcp add gridiron-data -s user \
  -e GRIDIRON_API_KEY=YOUR_KEY \
  -- "$(pwd)/gridiron-mcp-venv/bin/python" "$(pwd)/gridiron-mcp.py"

Verify

claude mcp list

You should see gridiron-data listed as connected. Inside Claude Code, run /mcp to see the server and its tools, then just ask:

> What are the top 10 RB projections for week 5 in half-PPR?
> How did Justin Jefferson do in 2023?
> Any injury news on Malik Nabers this week?

What Claude can pull

Player names, positions, and ids are matched case-insensitively — say a player however you like.

Troubleshooting

Next steps