ClickHouse Loom

Developer toolsMemory and knowledge

Shared long-term memory, document search and a code index for AI agents, self-hosted on ClickHouse.

Your AI app calls the ClickHouse Loom MCP server, which does the developer tools and memory and knowledge work and sends the result back to the chat.

About ClickHouse Loom

ClickHouse Loom is the official MCP server from ClickHouse, filed in our directory under developer tools and memory and knowledge. Shared long-term memory, document search and a code index for AI agents, self-hosted on ClickHouse.

ClickHouse Loom is listed in the official MCP registry as io.github.ClickHouse/loom, version 1.3.0.

At a glance

Publisher
ClickHouse, the company behind the product
Runs
See the README for setup
Written in
Python
License
Apache-2.0
GitHub stars
264
Official MCP registry
io.github.ClickHouse/loom

How to set up ClickHouse Loom

  1. Follow the install steps in the ClickHouse Loom README; it is written in Python, so have that toolchain ready.
  2. Check the ClickHouse Loom README for keys or settings; the registry lists none that ClickHouse Loom requires.
  3. Add ClickHouse Loom to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the ClickHouse Loom tools to confirm the connection.
  5. Run one read-only task with ClickHouse Loom first, and keep your app asking before each tool call until the results look right.

ClickHouse Loom compared with similar servers

  • QVeris by QVerisAI has fewer GitHub stars than ClickHouse Loom (264 against 264); ClickHouse Loom is official while QVeris is a community server, and QVeris runs as a remote server and ClickHouse Loom runs on your own machine.
  • Kiln (codeofaxel) by codeofaxel has more GitHub stars than ClickHouse Loom (265 against 264); ClickHouse Loom is official while Kiln (codeofaxel) is a community server, and Kiln (codeofaxel) runs as a remote server and ClickHouse Loom runs on your own machine.
  • Martin Loop by Keesan12 has fewer GitHub stars than ClickHouse Loom (263 against 264); ClickHouse Loom is official while Martin Loop is a community server, and both run locally.

Before you connect ClickHouse Loom

  • Give ClickHouse Loom its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each ClickHouse Loom tool call until you trust what it does with them.
  • Treat text that ClickHouse Loom fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for ClickHouse Loom on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for ClickHouse Loom

How marketing and sales teams put ClickHouse Loom to work, by company size. Pick the size closest to yours and start ClickHouse Loom on one use case.

Small business

  • A small business with a developer can use ClickHouse Loom to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Technical founders can ask ClickHouse Loom to explain and fix a marketing site issue without context switching between tools.
  • A small business can give ClickHouse Loom its offers, FAQs and tone of voice once, so every draft starts from the same facts.
  • ClickHouse Loom runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Growth engineers can use ClickHouse Loom to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Marketing ops engineers can connect ClickHouse Loom to keep scripts and automations documented and versioned as they change.
  • Marketing teams can connect ClickHouse Loom to positioning docs and past campaigns, so agents write on message without a long prompt each time.
  • Start ClickHouse Loom on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprise engineering teams can roll out ClickHouse Loom with repo scopes and audit logs, so agents work only where they are allowed.
  • Platform teams can standardize on ClickHouse Loom so web and marketing engineering share one reviewed way of working with AI.
  • Enterprises can use ClickHouse Loom with permissions that follow the source documents, so an agent only recalls what the person asking may see.
  • Because ClickHouse Loom comes from ClickHouse, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

ClickHouse Loom README

From ClickHouse/loom on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

ClickHouse Loom

Shared memory, document search and code intelligence for AI agents.
For Claude Code, Codex, Cursor and your own agents.

English · 简体中文 · 日本語 · 한국어 · Português (Brasil) · Español

What Loom is for · Benchmarks · Get started · Capabilities · Integrations · Documentation (loom.clickhouse.com/docs)

Loom is an open-source, self-hosted MCP server that gives your agents long-term, shared memory: what one agent learns in a session, the next agent or tool can find. In an authenticated team deployment, each agent uses a token scoped to namespaces and read or write roles. Check shared memory and denied access.

Agents connect through MCP, HTTP, Python or TypeScript. Self-host with Docker or on Kubernetes with the Helm chart; agent context and index data live in ClickHouse, and a deployment can choose Postgres at first boot for live memory and knowledge state. The dashboard brings memories, repositories, tasks and runs into one place.

What Loom is for

Memory for a software factory. Loom gives implementation and review agents shared lessons, issue context and source provenance across sessions. Scope each principal's access with tokens, await required writes and task handoffs in your application, and recheck code-linked lessons against the current source before review. The same service supports multi-agent workflows and autonomous bots; your orchestration runs the agents, tests and approvals. Offering a tool does not guarantee the model uses it. Software factory memory workflow · Autonomous-agent memory

Every use case, and when another tool fits better: use cases.

Read Choosing memory for a software factory for memory architecture choices, data ownership and operating responsibilities.

Loom is not an in-process library for one agent's short-lived memory, nor an agent framework. When Loom does not fit

Measured results

Evaluation With Loom Without Loom Efficiency gain Scope
Coding-agent answer quality 0.84 0.78 20% lower model cost 24 questions × 3 paired runs
Coding-agent file localization 96.4% 91.4% 21% lower model cost 36 questions × 10 paired runs
Memory vs full-history answers 94% 90% 91% fewer reader prompt tokens 100 paired LongMemEval-S questions

Both coding setups use Claude Code (claude-sonnet-5) on the ClickHouse codebase; cost is the whole session's model bill, excluding Loom's server-side model calls, hosting and indexing. Answer quality measures coverage of a verified answer's key points, with a contradiction penalty. File localization counts whether the right file is among the up to three files the agent is asked to name at the end of its answer.

The memory row compares retrieved memories with full conversation history using the same gpt-5 reader. Token savings exclude memory construction; the 94% vs 90% accuracy difference is descriptive, not statistically established.

Separately, Loom's memory.ask configuration scored 96.6% answer accuracy on all 500 LongMemEval-S questions. This is a product evaluation with its own configured answer models, not the fixed-reader comparison above.

Results are specific to the tested workloads.

Protocols and reproducible artifacts · detailed results · evaluate on your workload

Get started

1. Choose your Docker setup
  • Personal use, the default: no login, localhost-only access and a dev/local namespace. One person can connect multiple agents.
  • Team use: authenticated accounts and namespace access controls. Start in multi-user mode from the first boot.

Both modes support the same Loom features, including configured LLMs and embeddings. Single-user is not a reduced-feature edition. You can also switch an existing installation without deleting its data; grant new accounts access to the existing namespaces.

To try it with nothing installed, open it in a codespace:

(what it runs and who can reach it)

For the default personal installation, with Docker installed (on Windows, in a WSL 2 terminal where docker works: Docker Desktop with its WSL integration on, or Docker Engine installed in the distribution):

curl -fsSL https://github.com/ClickHouse/loom/releases/latest/download/install.sh -o loom-install.sh && sh loom-install.sh && rm loom-install.sh

Run it from your home directory, or another directory only you can write to. The installer starts Loom and ClickHouse, applies migrations and prints the dashboard URL: http://localhost:7777/; on a new install it then checks that a memory saves and reads back. On a terminal it also offers to connect Claude Code, Codex and the VS Code editor profile when it finds them and, on a new install, opens the dashboard. The image includes the server, workers, dashboard and Python, TypeScript and Go compiler indexers, plus the C++ one on amd64; TypeScript dependencies are prepared automatically. Quickstart and pinned releases

The installation lives in ~/.loom (LOOM_INSTALL_DIR chooses another directory): the Compose file and the startup settings in ~/.loom/.env. Running the install command again upgrades in place and keeps your .env settings.

Keep single-user mode localhost-only. For shared access, follow the team deployment guide, including TLS.

2. Configure models and API keys

The stock installation boots without keys or network. Storage, the dashboard, structural code indexing and semantic search work, on a small local embedding model the image carries; the fake LLM gives no AI-generated answers.

Component Configure for real use Without configuration
Embeddings Provider, embedding model, dimensions and API key. local (bge-small on CPU): semantic retrieval, weaker than a hosted model.
LLM Provider, model and API key. fake-echo-1: no meaningful extraction, summaries or answers.

Open Settings → Models & keys, choose both providers and models, enter their keys, then click Test & apply. No Docker restart is needed; changing the embedding space rebuilds the existing index. The dashboard's embedding choices are hosted providers: to keep local and add an LLM, set the LLM lines in ~/.loom/.env instead (Models and keys).

One OpenAI API key can serve both roles. Claude needs a separate embedding provider. OpenAI, Gemini and OpenAI-compatible embedding endpoints are supported. Your agent's CLI login or subscription does not supply Loom's provider keys.

Prefer environment configuration? Edit ~/.loom/.env, then recreate the server:

docker compose --project-directory "$HOME/.loom" up -d --force-recreate loom

A key alone does not change the pinned models (the local embedder and the fake LLM); set the provider and model too. Saved dashboard settings take precedence over .env. Follow models and API keys for provider recipes and health checks.

Everything else is in one file. loom.example.yaml lists every setting with its default and what it does, by area: the ClickHouse connection, timeouts and budgets, rate limits, workers, and the *_enabled switches that turn features on and off. Set any of them as LOOM_<NAME> in ~/.loom/.env and recreate the server; a deployment that mounts a config file can set them in a copy of this file instead (how settings are read). One marked live also changes while Loom runs: loom settings set <name> <value>, or Admin → Deployment settings. loom settings list --changed shows what differs from the defaults and where each value came from (runtime settings).

3. Connect your agents

If the installer connected your agent, skip the commands below. On the machine running a personal installation, the plugins need no token:

# Claude Code
claude plugin marketplace add ClickHouse/loom
claude plugin install loom@loom

# Codex
codex plugin marketplace add ClickHouse/loom
codex plugin add loom@loom

Start a new session; the first one connects to http://localhost:7777. In Codex, run codex interactively once and approve the plugin's hooks; until then only the tools work. Tell the agent something worth keeping, then ask about it in the next session.

Cursor lists Loom as a plugin and an MCP server. For a team marketplace on a Teams or Enterprise plan, a team admin can also import this repository; its Cursor plugin installs the MCP entry and Loom's skills. On the machine running a personal installation, the button below adds the local MCP entry, which needs no token:

In VS Code, check for or add Loom in Copilot from the session's MCP settings. On the machine running a personal installation, the buttons below add a local entry to the editor profile, which needs no token:

For a team server, pass --config server_url=… --config token=… to Claude Code, or point Codex at it as described in connect a coding agent. Create tokens in Settings → Tokens. Cursor and other MCP clients, and the SDK, are covered there too.

Why Loom

  • Memory that carries forward. Share decisions and findings across agents and sessions. Each fact records who wrote it, version history and conflict review make corrections traceable, and a namespace can be rolled back to any point in time. Memory
  • Code intelligence with evidence. Find definitions, callers, change impact and relevant tests; connect code to commits, pull requests and issues. Use source locations, completeness signals and per-tier freshness to check a result. Code index
  • Grounded retrieval. Search permitted memories, documents, conversations and tracker records. Answers cite their sources; low-confidence retrieval can abstain. Retrieval
  • Multi-agent handoffs. Assign work through durable task inboxes with leases, retries, review rules and outcomes. Your agents execute the workflow; Loom preserves the handoffs. Task queues
  • Control over agent data. Manage namespace access, provenance, retention, audit records and verified erasure. Context remains queryable in ClickHouse. Security

Integrations

Integration What it connects
Claude Code, Codex, Cursor and other MCP clients (all integrations) Memory and code intelligence in your existing agent workflow.
Python, TypeScript, Rust, Go, .NET and HTTP Your own agents and applications.
Langfuse Request traces, model costs, retrieval scores and prompt-version attribution.
ClickStack / HyperDX OpenTelemetry traces, logs and metrics in ClickHouse.

Langfuse and ClickStack are optional integrations, not bundled services in the Docker stack.

Benchmark details

Detailed retrieval, reader and code-search results
Evaluation Result
LongMemEval-S evidence retrieval (500 questions) 98.6% of questions with at least one supporting session in the first 30 memories.
LongMemEval-S fixed gpt-5 reader (500 questions) 92.0% answer accuracy from the top 200 memories.
LoCoMo (all 10 conversations) 89.6% answer accuracy; 90.8% correct abstentions on adversarial questions.
MemoryAgentBench fact-question sample (500 questions) 99.0% SubEM; 95.7% token-overlap F1 on generated answers.
Conceptual code search (36 questions) Gold-file recall 91.2% at 5 / 97.2% at 10; MRR 0.91.
SWE-bench Verified file localization (200 issues) Issues with a changed file in the first 10: 82% vs 57% for BM25; 76.5% in the first 5.
Tracker duplicate detection (104 pairs) Recorded older duplicate ranked first 87.5% of the time.

These measure different tasks, not one aggregate score. SWE-bench measures file localization, not issue resolution. The results ledger includes scoring definitions, small-sample evaluations, weaker and negative findings, and the full protocols, models and artifacts.

Methodology · coverage and known gaps · run the benchmarks

Documentation and contributing

For shared agent context, code intelligence and permissioned retrieval, start with the documentation (loom.clickhouse.com/docs). For deployment requirements, see the prerequisites.

Deployment · FAQ · Contributing · Security reporting · llms.txt · llms-full.txt

Apache-2.0 · License · Notice

Questions about ClickHouse Loom

What is the ClickHouse Loom MCP server?

Shared long-term memory, document search and a code index for AI agents, self-hosted on ClickHouse. ClickHouse Loom is published by ClickHouse, the company behind the product, on GitHub at ClickHouse/loom, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the ClickHouse Loom MCP server?

ClickHouse Loom doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (ClickHouse/loom). Like most servers, ClickHouse Loom ends with a command or URL you paste into your AI app's MCP config.

Does ClickHouse Loom need an API key?

The registry lists no required keys for ClickHouse Loom. Check the ClickHouse Loom README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is ClickHouse Loom an official MCP server?

Yes. ClickHouse Loom is published by ClickHouse, the company that makes the product it connects to, so it follows that product's own API and auth.

What license is ClickHouse Loom under?

ClickHouse Loom is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of ClickHouse Loom; the service it connects to has its own terms.