# Set up football-docs

football-docs is an MCP server that gives a coding agent searchable documentation for football data providers and tools, the papers behind the methods, and checked metric definitions. It runs on the user's computer as a local stdio server from the npm package `football-docs`. It needs Node.js 22.13 or later. It needs no API key and no account.

These steps are for you, the coding agent that the user asked to set it up.

## Rules

- Set it up for the agent you are, unless the user asks for other agents too.
- Before you run a command or change a config file, show the user the exact command or change, and wait for a yes.
- Do not ask for an API key or a token. football-docs has none.
- Do not change or remove the other MCP servers in a config file.
- If a step fails, stop, show the error, and ask the user what to do.

## 1. Check Node.js

Run `node --version`. If the version is older than 22.13, stop and tell the user to update Node.js first.

## 2. Check if it is already there

If your agent can list its MCP servers (for example `claude mcp list` or `codex mcp list`), look for `football-docs`. If it is there, tell the user, and go to step 5.

## 3. Add the server

Use the command for your agent:

| Agent | Command |
|---|---|
| Claude Code | `claude mcp add --scope user football-docs -- npx -y football-docs@latest` |
| Codex (CLI and IDE extension) | `codex mcp add football-docs -- npx -y football-docs@latest` |
| VS Code (GitHub Copilot) | `code --add-mcp '{"name":"football-docs","command":"npx","args":["-y","football-docs@latest"]}'` |
| Gemini CLI | `gemini mcp add -s user football-docs npx -y football-docs@latest` |
| pi | `pi mcp add football-docs -- npx -y football-docs@latest` |
| GitHub Copilot CLI | `copilot mcp add football-docs -- npx -y football-docs@latest` |

For any other agent, use add-mcp. It writes the agent's own config file. Name your agent with `-a`:

```bash
npx add-mcp football-docs@latest -g -a <agent> -y
```

Agent names for `-a` include `opencode`, `hermes`, `cursor`, `zed`, `windsurf`, `goose`, `kiro-cli`, `kilo-code`, `cline`, `factory-droid`, `junie` and `claude-desktop`. Run `npx add-mcp list-agents` for the full list. If the user wants football-docs in all the agents on this computer, run `npx add-mcp football-docs@latest -g` and let them pick.

## 4. If no command works, edit the config by hand

Most clients read this entry:

```json
{
  "mcpServers": {
    "football-docs": {
      "command": "npx",
      "args": [
        "-y",
        "football-docs@latest"
      ]
    }
  }
}
```

Some clients use a different key: VS Code uses `servers`, Zed uses `context_servers`, OpenCode uses `mcp` (with `"type": "local"` and the command as one array), Codex uses a TOML table `[mcp_servers.football-docs]`, and Hermes uses YAML under `mcp_servers`. Add the entry next to the servers that are already there.

## 5. Start it and check it

1. Tell the user to restart the agent, or to reload its MCP servers, so that football-docs starts. The first start downloads the package, which can take a minute.
2. After the restart, call the `list_providers` tool, or call `search_docs` with the query `expected threat xT`.
3. Tell the user what you added, where, and what the check returned. If the tools do not appear, say so, and give the config file path so the user can check it.
