Kontexta MCP logo

Kontexta MCP

Local MCP memory, sandboxed project commands, full-text search, and journaling for cross-agent coding workflows.

Install Kontexta MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "kontexta-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "kontexta"
      ],
      "env": {
        "KONTEXTA_DATA_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env KONTEXTA_DATA_DIR=YOUR_VALUE_HERE --transport stdio kontexta-mcp -- npx -y kontexta

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y kontexta

are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

kontexta-mcp gives coding agents a local Markdown knowledge vault, a controlled command surface, and a feedback loop for recording results. It stores context in a git-backed vault with SQLite FTS5 search, supports targeted file and section access, and reports estimated token usage. Project commands are declared in kontexta.json, run inside a sandbox, and can require one-time approval tokens. Reach for it when multiple agents or sessions need shared project context without unrestricted shell access or repository-bound notes.

Use cases

  • Share architectural decisions between Claude Code and Cursor sessions
  • Search a cross-project Markdown knowledge vault with exact keywords
  • Run approved project commands without unrestricted shell access
  • Distill agent activity into reusable topic summaries
  • Inspect file changes and recent journal activity

Key features

  • Git-backed Markdown knowledge vault
  • SQLite FTS5 and regex search
  • Surgical section reads and edits
  • Sandboxed commands from kontexta.json
  • Approval tokens for high-risk commands
  • Per-project journaling and distillation

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16h ago via OSV.dev · kontexta (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads2.4kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.

How Kontexta MCP works

What kontexta-mcp does

kontexta-mcp provides three connected capabilities for AI coding agents: a persistent knowledge store, an explicitly defined command engine, and journaling that feeds command results and decisions back into the knowledge store. The knowledge store is a local Markdown vault backed by git and indexed with SQLite FTS5. It is intended to keep architectural decisions, project state, standards, and agent notes outside the source tree while making them available across sessions and projects.

The server is useful for workflows that move between Claude Code, Cursor, Cline, GitHub Copilot, Gemini, or Antigravity. A decision recorded by one agent can be searched and read by another through the same MCP interface. Registered projects share the vault, so an agent working in one project can retrieve relevant context from another.

How it works

The Brain uses full-text and regex-based retrieval rather than vector search. Agents can request file outlines, selected sections, or focused search excerpts instead of loading entire directories. Responses include est_tokens and size_bytes, giving an agent information for managing its context budget.

The Hands layer exposes only commands declared by the project in kontexta.json. Commands run with a locked working directory, a clean environment, and ring-buffered output. High-risk commands can be configured to pause for a cryptographic one-time approval token. The configuration defines the boundary: the server does not independently determine whether a command is safe.

The Eyes layer records MCP tool calls in a per-project append-only event log. journal_distill can turn those events into searchable, topic-oriented Markdown summaries, while journal_write adds notes or intent explicitly. Agents can inspect recent activity with admin_overview and compare files against disk with files_diff_against_disk.

Setup and configuration

Project command permissions are defined in a kontexta.json file. Register projects with projects_register, then use admin_onboard_agent to add a fenced, version-stamped workflow block to supported agent instruction locations, including CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules, Continue rules, Cline rules, and GitHub Copilot instructions.

The vault is global to the configured data location. Set KONTEXTA_DATA_DIR to keep separate workspaces apart, which is especially relevant when client and personal projects should not share readable context. Journaling behavior can include automatic or explicit distillation, retention and archival, strict mode, and optional scheduled distillation through the WebUI setup.

Tools and capabilities

  • Register projects and onboard agents with shared workflow instructions.
  • Search the Markdown vault using SQLite FTS5 and regex-based retrieval.
  • Read targeted file outlines and Markdown sections, then update specific sections.
  • Define sandboxed project commands with approval gates in kontexta.json.
  • Inspect recent activity and compare tracked files with disk state.
  • Write, distill, retain, and archive journal information for future sessions.

Limitations and notes

The vault is readable by any agent session using the same registered workspace, so sensitive projects should use a separate data directory. Command safety depends on the permissions and approval rules authored in kontexta.json; unmarked commands are not automatically classified as high risk. The server is designed for local-first storage, with an optional relay mentioned for backup and multi-machine use.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Kontexta MCP

kontexta-mcp is an MCP server that connects AI coding agents to a local, git-backed Markdown knowledge vault and a project-defined command surface. Its main tools support project registration, agent onboarding, full-text search, targeted file and section access, sandboxed command execution, change inspection, and journal distillation for carrying context across sessions.

Define the project command surface in `kontexta.json`. Commands run with a locked working directory, a clean environment, and ring-buffered output; high-risk commands can require a cryptographic one-time approval token. The server enforces the boundaries written in that configuration.

kontexta-mcp stores context in a shared local vault that agents access through MCP. One agent can journal a decision, and another can retrieve it through full-text search or targeted reads. `admin_onboard_agent` can add workflow instructions to supported agent rule files so new sessions know how to use the server.

Yes, kontexta-mcp supports Cursor as one of the coding agents named for the server. Cursor can use the shared MCP surface to search the vault, retrieve project context, run configured commands, and read journaled information from earlier sessions.

Set `KONTEXTA_DATA_DIR` to use a separate vault location. This matters because registered projects in the same global vault are readable by any agent session using that vault, including projects with sensitive client material.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewKontexta MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/kontexta-mcp?style=directory)](https://allmcps.com/mcp/kontexta-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/kontexta-mcp"><img src="https://allmcps.com/api/badge/kontexta-mcp?style=directory" alt="Kontexta MCP on AllMCPs" /></a>