# ClickHouse Loom

ClickHouse Loom — an MCP server for Claude Code and Cursor that provides AI agents with shared long-term memory, code indexing, and document search.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 216 repo stars
- Author: ClickHouse
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ClickHouse/loom
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/clickhouse-loom

## What it does

ClickHouse Loom stores session context, agent decisions, and code references in ClickHouse or Postgres. It indexes repositories for definitions and callers, searches through PDF, `.docx`, and `.pptx` files, and includes a multi-user mode with namespaces and roles.

Self-hosted via Docker or Kubernetes Helm charts, connecting to agents over HTTP. Requires a running ClickHouse or Postgres database instance for memory and knowledge state.

## Requirements
- Needs: Docker
- Remote server: `https://{loom_host}/mcp`

## Install

### Claude Code (native platform)

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
claude mcp add --transport http loom https://{loom_host}/mcp
```

### Codex

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
codex mcp add clickhouse-loom --url https://{loom_host}/mcp
```

### Cursor

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "clickhouse-loom": {
            "url": "https://{loom_host}/mcp"
        }
    }
}
```

### GitHub Copilot

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "clickhouse-loom": {
            "type": "http",
            "url": "https://{loom_host}/mcp"
        }
    }
}
```

### Gemini CLI

1. **Template address**
- The server address is a template: replace {…} or […] with your own values

2. **Platform CLI: remote server**
```bash
gemini mcp add -t http clickhouse-loom https://{loom_host}/mcp
```

## When to use it
- share long-term memory across coding agents
- index repository code for definitions and callers
- search through documentation and project files
- link agent memory directly to code changes

## Example prompts
- Connect the Loom MCP server at https://{loom_host}/mcp
- Find previous decisions in the shared agent memory
- Search project documentation using Loom

## Similar
- [clickhouse-managed-postgres-rca](https://affpapa.org/en/nevibecode/skills/clickhouse-managed-postgres-rca.md) — skill · 6900 installs
- [clickhouse-js-node-coding](https://affpapa.org/en/nevibecode/skills/clickhouse-js-node-coding.md) — skill · 7300 installs
- [clickhouse-io](https://affpapa.org/en/nevibecode/skills/clickhouse-io.md) — skill · 6200 installs
- [clickhouse-architect](https://affpapa.org/en/nevibecode/skills/clickhouse-architect.md) — skill · 157 installs
- [clickhouse-pydantic-config](https://affpapa.org/en/nevibecode/skills/clickhouse-pydantic-config.md) — skill · 130 installs
- [hypequery ClickHouse](https://affpapa.org/en/nevibecode/mcp/hypequery-clickhouse.md) — MCP server · ★ 106 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
