# kontexta-mcp [Health: Active]

**Category:** 🤖 Coding Agents  
**Repository:** https://github.com/safiyu/kontexta  
**GitHub Stars:** 1  
**npm Downloads (last month):** 2392  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/kontexta-mcp

## Description
The local Brain and Hands for AI coding agents (MCP Server)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "kontexta-mcp": {
    "command": "npx",
    "args": ["-y","kontexta"],
    "env": {
      "KONTEXTA_DATA_DIR": ""
    }
  }
}
```

**Requires environment variables:** `KONTEXTA_DATA_DIR` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/kontexta-mcp/readme_

