> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memanto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Windsurf Integration

> Give Windsurf persistent, cross-session memory with Memanto — via the CLI connector or as an MCP server.

# Windsurf + Memanto

<img src="https://mintcdn.com/memanto/7cqii5_wGejS32un/logo/integrations/windsurf.svg?fit=max&auto=format&n=7cqii5_wGejS32un&q=85&s=fc04bd9f7ac4aff9c624b10675e72527" alt="Windsurf" width="64" style={{marginBottom: "1.5rem"}} data-path="logo/integrations/windsurf.svg" />

Connect [Windsurf](https://windsurf.com) to Memanto so Cascade can store and recall persistent memory across sessions.

## Connect via CLI (recommended)

```bash theme={null}
memanto connect windsurf
```

This installs a Windsurf-specific instruction file and the `memanto-memory` skill into your project. Add `--global` to install to `~/.codeium/` for every project:

```bash theme={null}
memanto connect windsurf --global
```

## Connect via MCP

Windsurf is an MCP client, so you can alternatively register Memanto as an MCP server. Edit `~/.codeium/windsurf/mcp_config.json`:

```json theme={null}
{
  "mcpServers": {
    "memanto": {
      "command": "memanto-mcp",
      "env": {
        "MOORCHEH_API_KEY": "mch_xxxxxxxxxxxxxxxxxx",
        "MEMANTO_DEFAULT_AGENT_ID": "windsurf-workspace"
      }
    }
  }
}
```

Reload Windsurf via **Cascade → MCP Servers → Refresh**. See the [MCP integration guide](/integrations/mcp) for the full server reference.

## Next Steps

* [CLI: connect command](/cli/connect/connect)
* [MCP Integration](/integrations/mcp)
* [Memory Types Reference](/reference/memory-types)
