# Docmancer

Docmancer — an MCP server for Claude Code, Codex and other agents: indexes memory, rules and session history from local directories and consolidates them into a single Markdown store.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 133 repo stars
- Author: docmancer
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/docmancer/docmancer
- Updated: 2026-08-13
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/docmancer

## What it does

Runs on Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI and others via MCP. Scans `CLAUDE.md`, `AGENTS.md`, Cursor rules, memory directories and session transcripts, extracts decisions and constraints, builds proposals with citations from the original sessions and waits for approval before writing. Stores everything in local Markdown with stable `docmancer://memory/<id>` addresses that survive file moves. Search uses SQLite FTS5 and a bundled embedding model with no network calls or API keys.

The `docmancer backup --local` command creates an encrypted archive with agent history, memory and configuration, excluding `.env` files, authentication stores and caches. Restore skips identical files, applies verified configuration only and isolates divergent sessions. Requires Python 3.11 or later and `pipx` (or `uv`).

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add docmancer -- uvx docmancer
```
uvx runs the command named after the package; if the README names another one, use uvx --from docmancer <command>

### Codex

**Platform CLI**
```bash
codex mcp add docmancer -- uvx docmancer
```
uvx runs the command named after the package; if the README names another one, use uvx --from docmancer <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "docmancer": {
            "command": "uvx",
            "args": [
                "docmancer"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from docmancer <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "docmancer": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "docmancer"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from docmancer <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add docmancer uvx docmancer
```
uvx runs the command named after the package; if the README names another one, use uvx --from docmancer <command>

## When to use it
- merge context from Claude Code, Codex, Cursor into one store
- find decisions and rules already written into agent memory
- move agent sessions and memory to a new machine with conflict detection
- get an answer with transcript citations instead of a paraphrase
- keep agent memory in Markdown files you can read and commit

## Example prompts
- Show what Docmancer can protect during backup: `docmancer backup --dry-run`
- Create a local archive with agent history: `docmancer backup --local --to ~/Backups/agents.dmbak`
- Find in agent history why we moved off Railway

## Similar
- [self-improvement](https://affpapa.org/en/nevibecode/skills/self-improvement.md) — skill · 2100 installs
- [Engram](https://affpapa.org/en/nevibecode/mcp/rwnalds-engram.md) — MCP server · ★ 23 repo stars
- [agent-memory](https://affpapa.org/en/nevibecode/mcp/xchucx-agent-memory.md) — MCP server · ★ 15 repo stars
- [spaces-pane](https://affpapa.org/en/nevibecode/plugins/spaces-pane.md) — plugin · ★ 53 repo stars
- [agentmemory-architecture](https://affpapa.org/en/nevibecode/skills/agentmemory-architecture.md) — skill · 11700 installs
- [how-it-works](https://affpapa.org/en/nevibecode/skills/how-it-works.md) — skill · 5600 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
