AltSportsData

Connect to Claude Code

Add AltSportsData tools to Claude Code (CLI) — project-level or global.

Connect to Claude Code

Claude Code is Anthropic's CLI coding agent. It discovers MCP servers automatically from config files.

Two Options

Create .mcp.json in Your Project Root

.mcp.json
{
  "mcpServers": {
    "altsportsdata": {
      "command": "uv",
      "args": [
        "run",
        "--directory", "/path/to/altsportsdata-mcp",
        "python", "-m", "altsportsdata_mcp.server"
      ],
      "env": {
        "ALTSPORTSDATA_API_KEY": "your_api_key"
      }
    }
  }
}

This is the same format as Claude Desktop — one config works everywhere.

Verify

claude mcp list

You should see altsportsdata with 29 tools.

Use It

claude

Then ask:

"Get me the upcoming F1 events and the moneyline favorites for each."

Claude Code will call get_events, get_moneylines, and get_favorites automatically.

Register via CLI

claude mcp add altsportsdata \
  --command "uv" \
  --args "run" "--directory" "/path/to/altsportsdata-mcp" \
        "python" "-m" "altsportsdata_mcp.server" \
  --env ALTSPORTSDATA_API_KEY=your_api_key

Verify

claude mcp list

Output:

altsportsdata: connected (29 tools)

Use Everywhere

The server is now available in every Claude Code session — no per-project config needed.

claude "What BKFC events are live right now? Get me the odds."

Remove or Update

# Remove
claude mcp remove altsportsdata

# Update (re-add with new config)
claude mcp remove altsportsdata
claude mcp add altsportsdata --command "uv" ...

What's Next?

On this page