> ## 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.

# Cline Integration

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

# Cline + Memanto

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

Connect the [Cline](https://cline.bot) VS Code extension to Memanto so it can store and recall persistent memory across sessions.

## Connect via CLI (recommended)

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

This installs a Cline-specific instruction file and the `memanto-memory` skill into your project. Add `--global` to install system-wide:

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

## Connect via MCP

Cline is an MCP client, so you can alternatively register Memanto as an MCP server. Edit `cline_mcp_settings.json`:

* **Linux**: `~/.config/Code/User/globalStorage/cline.cline/settings/cline_mcp_settings.json`
* **macOS**: `~/Library/Application Support/Code/User/globalStorage/cline.cline/settings/cline_mcp_settings.json`
* **Windows**: `%APPDATA%\Code\User\globalStorage\cline.cline\settings\cline_mcp_settings.json`

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

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)
