# clude MCP server

> Provides a cognitive memory system for AI agents featuring episodic and semantic memory, autonomous dream cycles, and hybrid vector-keyword retrieval.

- Repository: https://github.com/sebbsssss/clude
- Page: https://hostedmcp.org/servers/sebbsssss/clude
- Transport: stdio
- Stars: 23
- License: MIT
- Latest version: 3.0.4

## Install

### Claude Code

```sh
claude mcp add --env 'CORTEX_API_KEY=<YOUR_CORTEX_API_KEY>' clude -- npx -y @clude/sdk
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "clude": {
      "command": "npx",
      "args": [
        "-y",
        "@clude/sdk"
      ],
      "env": {
        "CORTEX_API_KEY": "<YOUR_CORTEX_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "clude": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@clude/sdk"
      ],
      "env": {
        "CORTEX_API_KEY": "<YOUR_CORTEX_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"clude","type":"stdio","command":"npx","args":["-y","@clude/sdk"],"env":{"CORTEX_API_KEY":"<YOUR_CORTEX_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "clude": {
      "command": "npx",
      "args": [
        "-y",
        "@clude/sdk"
      ],
      "env": {
        "CORTEX_API_KEY": "<YOUR_CORTEX_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add clude --env 'CORTEX_API_KEY=<YOUR_CORTEX_API_KEY>' -- npx -y @clude/sdk
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.clude]
command = "npx"
args = ["-y", "@clude/sdk"]

[mcp_servers.clude.env]
CORTEX_API_KEY = "<YOUR_CORTEX_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'CORTEX_API_KEY=<YOUR_CORTEX_API_KEY>' clude npx -- -y @clude/sdk
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "clude": {
      "command": "npx",
      "args": [
        "-y",
        "@clude/sdk"
      ],
      "env": {
        "CORTEX_API_KEY": "<YOUR_CORTEX_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `CORTEX_API_KEY` | yes | yes | Clude API key from https://clude.io/register |
| `CLUDE_AGENT_NAME` | no | no | Human-readable name for this agent instance |
| `CLUDE_WALLET` | no | no | Solana wallet public key used to sign and anchor memories (optional but recommended) |
| `CORTEX_HOST_URL` | no | no | Clude host URL (defaults to https://clude.io) |

## Tools (8)

- `recall_memories`
- `store_memory`
- `batch_store_memories`
- `list_memories`
- `update_memory`
- `delete_memory`
- `get_memory_stats`
- `find_clinamen`

## FAQ

### What makes Clude different from other memory SDKs?

Unlike standard storage, Clude processes memories over time through decay, consolidation, contradiction resolution, and reflection.

### Can I use Clude offline?

Yes, Clude offers a local-first mode using SQLite and local embeddings for full semantic search without an internet connection.

### Is Clude compatible with existing AI tools?

Yes, it works with Claude Code, Claude Desktop, Cursor, and any MCP-compatible agent runtime.

### How can I export my agent's memories?

Memories can be exported in JSON, Markdown, ChatGPT, Claude, and Gemini formats.
