AltSportsData

Connect to Cursor

Add AltSportsData tools to Cursor IDE — project or global config.

Connect to Cursor

Cursor supports MCP servers natively. Three ways to connect:

Create .cursor/mcp.json

In your project root, create .cursor/mcp.json:

.cursor/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"
      }
    }
  }
}

Replace /path/to/altsportsdata-mcp with your clone path and your_api_key with your AltSportsData key.

Restart Cursor

Cursor will detect the MCP config on restart and load the 29 AltSportsData tools.

Use in Composer or Chat

In Cursor's AI chat (Cmd+L) or Composer (Cmd+I), ask:

"Get the upcoming disc golf events and show me the favorites."

Cursor's agent will call get_events with league: dgpt and get_favorites automatically.

Open MCP Settings

Go to Cursor → Settings → MCP (or Cmd+, → search "MCP").

Add Server

Click "Add new MCP server" and enter:

  • Name: altsportsdata
  • Type: command
  • Command: uv run --directory /path/to/altsportsdata-mcp python -m altsportsdata_mcp.server

Set Environment Variable

Add the environment variable:

  • Key: ALTSPORTSDATA_API_KEY
  • Value: your_api_key

Save & Restart

The tools will appear in Cursor's tool picker. You can now use them in chat or Composer.

For shared or remote access, run the server with HTTP transport:

Start the Server

ALTSPORTSDATA_API_KEY=your_key python -m altsportsdata_mcp.server --sse --port 8080

Add to Cursor

Create .cursor/mcp.json:

.cursor/mcp.json
{
  "mcpServers": {
    "altsportsdata": {
      "url": "http://localhost:8080/mcp"
    }
  }
}

HTTP/SSE transport also works with Windsurf, Continue, and any MCP client that supports the streamable-HTTP transport.

Verify Tools Are Loaded

After setup, you should see 29 tools available in Cursor's tool list. Try asking the AI:

"Use the altsportsdata tools to list all available leagues."

If you see a list_leagues tool call with 27+ leagues returned, you're all set.

Troubleshooting

IssueFix
No tools showingRestart Cursor after adding/changing .cursor/mcp.json
uv not foundInstall uv: curl -LsSf https://astral.sh/uv/install.sh | sh
Timeout errorsThe MCP server cold-starts in ~1-2s. If persistent, check your API key.
Want to use both Cursor + Claude DesktopSame config format — create both .cursor/mcp.json and claude_desktop_config.json

What's Next?

On this page