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
{
"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.
Use It
claudeThen 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_keyUse 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?
- Tools Reference → — See all 29 tools
- Cursor → — Use with Cursor IDE
- Claude Desktop → — Use with Claude Desktop