Kontexta is a local-first Model Context Protocol (MCP) server that gives your AI coding agents — Claude Code, Cursor, Cline, Gemini, Antigravity — a persistent memory and a controlled command surface.
Instead of agents losing context between sessions or inventing their own shell commands, Kontexta provides:
Brain: A git-backed markdown vault with FTS5 search and surgical section edits.
Hands: A sandboxed command engine defined by you in kontexta.json.
Eyes: A feedback loop that journals results back into the brain.
Switch agents mid-project: Claude Code journals a decision; Cursor reads it 5 minutes later.
Unified command surface: Author your kontexta.json once; every agent uses the same validated tools and approval gates.
Multi-agent collaboration: Different agents working on different tasks contribute to the same indexed knowledge base.
Zero-touch onboarding: register_project + onboard_agent injects a fenced, version-stamped workflow rules block into CLAUDE.md / AGENTS.md / GEMINI.md / .cursor/rules / .continue/rules / .clinerules so every new conversation — on any agent — wakes up already knowing how to use kontexta.
Global reach: An agent working in Project A can instantly search and read the documentation, context, and states of Project B.
Shared standards: Solve a problem once, document it, and let your agent apply that solution across all your other projects automatically.
Heads-up on sensitivity: Because the vault is global, every registered project is readable by any agent session you start. If you mix client work with personal projects, keep sensitive material in a separate vault (KONTEXTA_DATA_DIR) rather than registering it alongside everything else.
SQLite FTS5 Power: Instead of unpredictable vector-based RAG, Kontexta uses high-performance full-text indexing for deterministic, local-first context discovery.
Reliable Discovery: Fast, exact keyword and regex-based search ensures you find what you're looking for without the "hallucination" risk of third-party embedding providers.
Surgical fetching: Instead of indiscriminately dumping whole directories into the LLM's context window, Kontexta provides tools to fetch specific file outlines, sections, or targeted search excerpts.
Budget awareness: Every tool response includes est_tokens so agents can smartly budget what they pull into memory.
The "Context.md" Killer: Stop littering your source tree with CONTEXT.md or AI_NOTES.md files that clutter your PRs and get stale.
Global Knowledge Vault: Keep your main codebase pristine. Architectural decisions, agent journals, and cross-project standards live in a separate, dedicated global vault accessible by any agent instance.