# Connect Windsurf to Niro

**One command connects Windsurf to Niro:**

```
niro mcp install --client windsurf

```

Then restart Windsurf, because it reads its settings only when it starts.

You must have run `niro start` first, so that you are signed in. See [Connect your coding agent to Niro](https://help.niroai.dev/cli/connect-your-ai-assistant/).

## What the install writes

- The connection, in `~/.codeium/windsurf/mcp_config.json` (on Windows, under `%APPDATA%\.codeium\windsurf`).

## How Windsurf learns to use Niro

- A section in `~/.codeium/windsurf/memories/global_rules.md`.

- The two skills in `~/.agents/skills`, shared with Codex.

## Check that it works

Ask it a question about your code, such as "which routes does this project serve?". An answer from Niro starts with "Answered from the local graph on this machine (niro-local)."

## Remove it

```
niro mcp uninstall --client windsurf

```

If something goes wrong, see [FAQ: coding agents and MCP](https://help.niroai.dev/cli/faq-assistants-and-mcp/).