> For the complete documentation index, see [llms.txt](https://docs.sportmonks.com/v3/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportmonks.com/v3/sportmonks-ai-docs/llm-tools/windsurf.md).

# Windsurf

Windsurf's Cascade agent supports MCP natively. Install the Sportmonks MCP server and Cascade has live access to all 11 tools - fetching real data mid-conversation as it writes your code.

### Prerequisites

* [Node.js 18+](https://nodejs.org)
* A Sportmonks API token from [my.sportmonks.com](https://my.sportmonks.com/subscriptions)
* [Windsurf](https://codeium.com/windsurf) installed

### Setup

**1. Add the MCP server to Windsurf**

Edit `~/.codeium/windsurf/mcp_config.json` (create it if it doesn't exist):

```json
{
  "mcpServers": {
    "sportmonks-football": {
      "command": "npx",
      "args": ["-y", "sportmonks-football-mcp-server"],
      "env": {
        "SPORTMONKS_API_TOKEN": "your_token"
      }
    }
  }
}
```

Optional environment variables can be added to the `env` block:

| Variable                | Description                                                                                   |
| ----------------------- | --------------------------------------------------------------------------------------------- |
| `SPORTMONKS_LOG_FILE`   | Path for the local tool-call log. Set to `off` to disable. Defaults to your OS temp directory |
| `SPORTMONKS_DEBUG_URLS` | Set to `1` or `true` to log outbound API URLs to stderr (token redacted). Off by default      |

**2. Restart Windsurf**

Open the Cascade panel - the Sportmonks tools will be available.

### Test it

Open Cascade and ask:

```
Search for "Bayern Munich" and get their current squad
```

```
Fetch today's fixtures and show me the ones that are live right now
```

### Using context without MCP

If you prefer not to install the server, paste the full context block at the start of your Cascade session. Cascade will use it to write accurate Sportmonks integration code, though it won't be able to fetch live data directly.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sportmonks.com/v3/sportmonks-ai-docs/llm-tools/windsurf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
