Ctxnest
@safiyu
About Ctxnest
Local Brain/Hands/Eyes loop for AI coding agents. Persistent markdown knowledge vault with FTS5 search, sandboxed command execution via project-defined tools, and a feedback journal that compounds every session. 46 MCP tools. 100% local, 0% egress.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"ctxnest": {
"command": "npx",
"args": [
"-y",
"ctxnest-mcp"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is CtxNest?
CtxNest is a local MCP server that gives AI coding agents a persistent knowledge vault (Brain), sandboxed command execution (Hands), and learning feedback (Eyes). It integrates with local markdown files, SQLite FTS5, and git, and is designed for developers using Claude Code, Cursor, Gemini, or Codex.
How to use CtxNest?
Configure commands in a ctxnest.json file; the server then exposes them as sandboxed MCP tools. The agent can invoke any of the 46 MCP tools directly, with optional human approval before execution. The server runs entirely locally with no external network calls.
Key features of CtxNest
- Markdown knowledge vault with SQLite FTS5 full-text search
- Git-backed versioning and cross-project context retrieval
- Sandboxed tool execution: no shell, locked working directory, clean environment
- Optional human approval gate before any command runs
- Stdout capture, Brain diffs, and journal_append for agent learning
- 100 % local, zero egress of data
Use cases of CtxNest
- An AI agent reads project documentation from the vault instead of manual copy-pasting
- A developer defines safe shell commands in
ctxnest.jsonand lets the agent run them - The agent records learnings after each task so the next session starts smarter
- Cross-project context sharing across multiple codebases without duplicating docs
FAQ from CtxNest
How does CtxNest keep command execution safe?
Commands are declared in ctxnest.json and exposed as sandboxed MCP tools with no shell access, a locked working directory, a clean environment, and optional human approval before anything runs. The agent can only do what you explicitly declared.
What data leaves my machine?
None. CtxNest is 100 % local and 0 % egress. Your data never leaves your SSD.
Which AI coding agents does CtxNest work with?
It works with Claude Code, Cursor, Gemini, and Codex.
How many MCP tools does CtxNest provide?
CtxNest exposes 46 MCP tools covering knowledge retrieval, command execution, and journaling.
How does CtxNest persist what the agent learns?
It captures stdout, produces Brain diffs, and supports journal_append so the agent writes what it learned back into the vault. Next sessions start smarter than the last.
Frequently asked questions
How does CtxNest keep command execution safe?
Commands are declared in `ctxnest.json` and exposed as sandboxed MCP tools with no shell access, a locked working directory, a clean environment, and optional human approval before anything runs. The agent can only do what you explicitly declared.
What data leaves my machine?
None. CtxNest is 100 % local and 0 % egress. Your data never leaves your SSD.
Which AI coding agents does CtxNest work with?
It works with Claude Code, Cursor, Gemini, and Codex.
How many MCP tools does CtxNest provide?
CtxNest exposes 46 MCP tools covering knowledge retrieval, command execution, and journaling.
How does CtxNest persist what the agent learns?
It captures stdout, produces Brain diffs, and supports `journal_append` so the agent writes what it learned back into the vault. Next sessions start smarter than the last.
Basic information
More Other MCP servers
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

Glasswarp
GlasswarpSee and control a real Windows PC you own — from any MCP client, locally or remotely. Observe (UIA + screenshots), click/type/drag/scroll, launch apps, owner Live View. BYOH: your machine, your key.
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
MCP Go 🚀
mark3labsA Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
Comments