Skip to content
MCP server

kala-mcp

Provenance-first agent memory over a time-traveling Datalog database, with as-of recall

Runs locally

kala-mcp is an open-source MCP server for knowledge and memory. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.5.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add kala-mcp -- docker run -i --rm ghcr.io/anusornc/kala-mcp:0.5.0

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "kala-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/anusornc/kala-mcp:0.5.0"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "kala-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/anusornc/kala-mcp:0.5.0"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "kala-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/anusornc/kala-mcp:0.5.0"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "kala-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/anusornc/kala-mcp:0.5.0"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add kala-mcp -- docker run -i --rm ghcr.io/anusornc/kala-mcp:0.5.0

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.kala-mcp]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/anusornc/kala-mcp:0.5.0"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "kala-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/anusornc/kala-mcp:0.5.0"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "kala-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/anusornc/kala-mcp:0.5.0"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user kala-mcp docker -- run -i --rm ghcr.io/anusornc/kala-mcp:0.5.0

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "kala-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/anusornc/kala-mcp:0.5.0"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "kala-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/anusornc/kala-mcp:0.5.0"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "kala-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/anusornc/kala-mcp:0.5.0"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "kala-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/anusornc/kala-mcp:0.5.0"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "kala-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/anusornc/kala-mcp:0.5.0"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "kala-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/anusornc/kala-mcp:0.5.0"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "kala-mcp": {
          "command": "docker",
          "args": [
            "run",
            "-i",
            "--rm",
            "ghcr.io/anusornc/kala-mcp:0.5.0"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About kala-mcp

Kala is an open-source (EPL-1.0) clean-room reimplementation of Datomic's architecture in Clojure on the JVM: a transactor writing to an append-only log, peer and client libraries, Datalog queries, a pull API and time travel, where every database value is the database as of one transaction. This server exposes its memory layer to an agent harness over stdio.

In the memory vocabulary, a session is one run, a turn is exactly one transaction, and the context document is the belief-state map an LLM reads. Attribution is written by the layer, never by the caller, so provenance holds by construction. Corrections are data: re-asserting a single-valued fact moves the old belief into history, and the context shows the correction trail. Lists are capped with a visible truncated flag so a shortened answer is not mistaken for the full one.

The README describes six tools, including context, which is called first, record, which writes one turn, and recall, which runs Datalog with joins. Reads can be addressed as of any past t. The server runs from a Clojure checkout or the published container image, configured with a small EDN file, and the repo also ships a monitor that draws the store as a knowledge graph.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 3 names don't say.

From the server's own tool labels and tool names; not verified by us.

context
Return the capped, correction-annotated belief state.
record
Record one turn of memory.
recall
Run Datalog with joins over memory.

What it does

Belief-state context
A capped document of current beliefs annotated with corrections.
Provenance by design
Each turn is one transaction attributed to its session automatically.
As-of time travel
Query memory as it stood at an earlier transaction.
Datalog recall
Joins, rules and aggregates over stored memory.
Visible truncation
Capped lists say when they were shortened.
Graph monitor
A web view draws turns and entities as a knowledge graph.

Good for

  • Give an agent memory that records where each belief came from
  • Replay what an agent believed at an earlier step
  • Audit how a fact was corrected over time
  • Query agent memory with Datalog

Pricing

Open source

Free, EPL-1.0 licensed

kala-mcp FAQ

What licence is kala-mcp under?

EPL-1.0, per the README.

How do I run the server?

Create an EDN config naming the storage and session, then run clojure -M:mcp mcp.edn, or use the published container image.

How many tools are there?

Six over stdio, including context, record and recall.

Which storage backends exist?

The README mentions memory and file storage.

Is kala-mcp free?

Yes. kala-mcp is open source, so you can use and self-host it for free.

How do I add kala-mcp to Claude Code?

Run this command in your terminal: claude mcp add kala-mcp -- docker run -i --rm ghcr.io/anusornc/kala-mcp:0.5.0

What are the best alternatives to kala-mcp?

The closest alternatives to kala-mcp are Codebase Memory, XERJ, Claude Code Ultimate Guide, Nautilus Compass Memory and Myco: Agent-First Cognitive Substrate.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers