# loom MCP server

> Provides persistent identity, episodic memory, and a knowledge store for AI agents to maintain context across different sessions and clients.

- Repository: https://github.com/sleepunit-agents/loom
- Page: https://hostedmcp.org/servers/sleepunit-agents/loom
- Transport: stdio
- Stars: 1
- License: AGPL-3.0

## Install

### Claude Code

```sh
claude mcp add loom -- npx -y @jbarket/loomai
```

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

```json
{
  "mcpServers": {
    "loom": {
      "command": "npx",
      "args": [
        "-y",
        "@jbarket/loomai"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "loom": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@jbarket/loomai"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"loom","type":"stdio","command":"npx","args":["-y","@jbarket/loomai"]}'
```

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

```json
{
  "mcpServers": {
    "loom": {
      "command": "npx",
      "args": [
        "-y",
        "@jbarket/loomai"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add loom -- npx -y @jbarket/loomai
```

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

```toml
[mcp_servers.loom]
command = "npx"
args = ["-y", "@jbarket/loomai"]
```

### Gemini CLI

```sh
gemini mcp add -s user loom npx -- -y @jbarket/loomai
```

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

```json
{
  "mcpServers": {
    "loom": {
      "command": "npx",
      "args": [
        "-y",
        "@jbarket/loomai"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `LOOM_KNOWLEDGE_BEARER_TOKENS` | no | no |  |
| `LOOM_TOKEN_FILE` | no | no |  |
| `LOOM_URL` | no | no |  |

## FAQ

### Can I use loom with Claude Code or Cursor?

Yes, loom is designed to be configured into MCP-capable harnesses like Claude Code, Cursor, Codex, and Gemini CLI.

### How does the memory recall work?

It uses episodic memory with semantic (vector) recall, allowing for category filtering and optional TTL.
