
Docmancer
dev.docmancer由 docmancer.dev 發布v0.9.17更新於 Oct 24, 2026
Local-only MCP server for source-attributed Markdown memory and documentation retrieval.
概覽
在本機執行的 MCP 伺服器,為編碼助理提供共享、可溯源引用的 Markdown 記憶,以及獨立的可檢索文件庫。
- 可以做什麼
- 從各編碼助理已記錄的決策、偏好與規則中檢索並回答問題,附上來源證據引用,任何記憶變更都需先確認。安全地讀取、寫入、編輯與移動 Markdown 記憶檔案,使用內容雜湊避免一個助理覆蓋較新的決策。將任意 Markdown 匯入專案收件匣,並檢視整理後的記憶隨時間的變化。檢索獨立的文件庫(廠商與 API 參考),與個人記憶分開存放。檢視已安裝的助理整合、召回狀態與健康狀況,並透過 MCP 以替代傳輸方式提供同一套本機服務。
- 適用情境
- 當多個編碼助理在同一批專案上工作,你希望用一份統一、可編輯的 Markdown 記憶取代向每個工具重複說明背景時;或當你希望取得關於本機助理已記錄內容的附引用答案時。
- 執行需求
- 以本機程序在使用者機器上執行(僅桌面端),透過 pipx 或 uv 從 PyPI 安裝。需要 Python 3.11 或更新版本。預設本機設定檔不需帳號、API 金鑰或網路存取;選用的 scale 設定檔會額外使用 Qdrant 與較重的嵌入模型套件。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Docmancer,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Docmancer
Your AI coding environment, restored on every machine.
[PyPI version] [Downloads] [Python 3.11+] [License: MIT] [Stars]
Website · Documentation · Blog · Changelog · Discussions
[The Docmancer local app showing agent memory, the Shared Memory file tree, and the Library]Your coding agents remember what happened on one machine
Agent backup and restore are development-preview commands. Local encrypted archives are available now. Managed Cloud snapshots remain gated on migration and recovery acceptance.
Docmancer securely restores their sessions, memory, and setup, then makes the useful project context available to every agent you use.
Claude Code and Codex can search the files they already wrote on one machine. A normal dotfile tool can copy directories. Neither gives you an agent-aware, secret-stripped backup with structural verification, project mapping, conflict quarantine, and a reviewed path from raw history to shared project memory.
Start by seeing what Docmancer can protect:
Create a free passphrase-encrypted local archive:
On a new machine, close Claude Code and Codex and preview the restore:
Docmancer restores missing history, skips identical files, merges only safe configuration, and quarantines divergent sessions. It never copies authentication stores, .env files, literal MCP environment values, caches, logs, telemetry, or machine keys.
After backup or restore, local consolidation finds durable decisions and constraints in the protected histories. Every proposal links to exact transcript evidence and waits for review:
Your agents already learned this. They just cannot tell each other.
Claude Code knows why you moved off Railway. Codex learned your migration convention. Cursor is still following a rule you overruled two months ago. Each agent wrote something down, none of them agree, and none of it is anywhere you can read.
That knowledge is real, and it is already on your disk. It is sitting in CLAUDE.md files, AGENTS.md files, Cursor rules, agent memory directories, and session history, in a different place and a different format for every tool you use.
Docmancer is built around two questions, in this order:
- I re-explain my project to every coding agent. How do I get them all working from the same context? Docmancer arranges the durable parts as plain local Markdown you can read and edit, then delivers the relevant files to every agent you connect, so a decision you record once reaches all of them.
- What do my coding agents already know about me and my working style? Docmancer indexes the memory, instructions, and rules they wrote on this machine, and keeps the contributing source attached to every claim, so you can read the answer instead of guessing at it.
Nothing leaves your machine unless you ask it to. There is no telemetry, no account, and no API key needed for the core product.
Install
pipx ensurepath makes the change persistent for future terminals. The export line makes Docmancer available in the current terminal immediately, which matters in an existing SSH session. If docmancer still reports command not found, reconnect over SSH and try again.
If you use uv, uv tool install docmancer installs it the same way.
setup finds every supported coding agent, shows you one complete plan and privacy warning, and waits for your confirmation before it changes anything. Then it indexes what it found, builds your canonical memory, installs the agent skills, and turns on automatic recall where the agent supports it.
Ask it something:
You get a bounded, cited answer built from your own agents' evidence. Then open the app for the current project:
That is the whole first run. It takes about a minute, and setup does not modify the project you are standing in.
What you get
One memory instead of six. Every supported agent reads from the same canonical Markdown, so a decision recorded once is available to Claude Code, Codex, Cursor, Gemini, and the rest without you copying it around.
Answers with receipts. Recall returns the mandatory policy, the curated memory, and the supporting agent evidence with stable citations, so you can see which agent said what and when. The optional language model turns that evidence into prose but never chooses what goes into it.
Files you own, not a database. Shared Memory is ordinary Markdown in ordinary directories. You can open it in your editor, commit it, grep it, or delete it. Stable docmancer://memory/<id> addresses keep working even after you move a file.
Local and offline by default. The default profile uses SQLite FTS5, sqlite-vec, and a small vendored embedding model. No daemon, no model download, no network call, no key.
Edits that cannot clobber each other. Changing or moving an existing memory file requires the content hash you last read, so one agent cannot silently overwrite a newer decision made by another.
Approval before anything is written. When you ask Docmancer to remember or change something, it prepares one complete file proposal and shows you the diff. The default answer is no, and a later "yes" in conversation never applies a stored proposal.
Take the same memory to a VPS or another machine
The complete product above is free on one machine. Optional paid Personal Sync adds encrypted transport, managed revision history, devices, and recovery when you work across a laptop, VPS, or other machines.
On the machine that already has your memory, run:
Sign in through the browser. Docmancer creates and checks a recovery kit, shows it once for offline storage, and starts the first encrypted upload automatically. The account page then asks for a payment method to start the 30-day trial. There is no separate recovery verification or first-sync command.
On the VPS or second machine, install Docmancer and run:
The new machine shows a four-word pairing code. Run docmancer cloud connect on an already connected machine, confirm the same four words, and approve it. Then run the command once more on the new machine. Docmancer downloads the machine-wide Shared Memory tree and any project trees mapped on that machine. If every connected machine is unavailable, use docmancer cloud connect --recover and enter the offline recovery kit.
The selected monthly or yearly subscription begins automatically after the trial unless you cancel. A failed renewal has a fixed 7-day upload grace period, followed by a 30-day read-only pull and export window before hosted ciphertext is scheduled for deletion. Local memory and every local feature keep working in every billing state. See the Personal Sync guide for the full journey.
See what each agent actually receives
Run docmancer web and open Shared Memory. The left pane is the real file tree on disk, the middle pane reads the selected file with its provenance, and the right pane lists your connected agents. Select an agent to inspect the exact bounded projection it will receive, before it receives it.
The scaffold is opinionated, but the files are yours:
Connect your agents
docmancer setup installs everything it detects. To manage one integration on its own:
Installed skills teach an agent when to ask Docmancer for prior decisions and how to write deliberate memory when you explicitly request it, which is why every supported agent can use the same memory. Automatic recall and session capture need lifecycle hooks, and only Claude Code and Codex expose those today, so the other agents recall on demand through their skill file instead.
MCP is an alternative transport over the same local services, not a second memory store:
Record a decision on purpose
Discovery finds what your agents already wrote. When you want something recorded deliberately:
Read it back later, from any agent or from your shell:
Or let Ask do it, with an approval step:
Everyday commands
Run docmancer --help or docmancer <command> --help for exact arguments, and see the command reference for the full surface.
Documentation is a separate Library
Your decisions and a vendor's API reference answer different questions, so Docmancer keeps them apart. Library content is searchable but is never injected into your personal memory automatically.
Use ask for your own decisions, preferences, and rules. Use docs query for libraries, APIs, and vendor documentation.
Choose a retrieval profile
The default needs no daemon and no large download:
It runs SQLite FTS5, sqlite-vec, and the bundled Model2Vec model. For sustained ingestion and filtered vector search across roughly 50,000 to 100,000 documents, switch to the scale profile:
If you use uv, the first line becomes uv tool install "docmancer[embeddings-heavy]".
Scale uses Qdrant, FastEmbed dense embeddings, sparse SPLADE retrieval, and reciprocal-rank fusion. It helps with vector filtering, concurrent writes, and operational headroom. It will not fix poor source coverage or weak evaluation, and both profiles implement identical memory semantics: switching changes storage and capacity, never authority, provenance, or what counts as Shared Memory.
Privacy
Your memory, credentials, indexes, and the local app stay on your machine, and Docmancer has no telemetry. It reaches the network only when you explicitly fetch online documentation, use an external model, check a package registry, or enable Cloud.
Everything above is free and stays free. There are two problems the free single-machine product does not solve, and those are what the paid tiers exist for. The first is that your memory is built on one machine while you work on more than one, which optional paid Personal Sync answers by carrying the same canonical memory to every machine you approve, encrypted on the device before it leaves, with managed revision history and recovery. Its normal setup is one docmancer cloud connect command on each machine, followed by a four-word approval on a machine you already trust. The second is that the context your agents accumulated about a feature is stranded on one machine where the rest of your team cannot reach it, which is the problem Team Sync is being designed to solve. Team Sync is not available yet.
The hosted service receives ciphertext, and it cannot read your plaintext memory or run anything on your machine. The security architecture describes exactly what metadata remains visible rather than claiming the server knows nothing.
Where things live
Requirements
Docmancer supports Python 3.11 and newer, including 3.14, so the install command does not need an interpreter pin. pipx install docmancer (or uv tool install docmancer) can use whichever recent Python your machine already provides. If pipx installs successfully but the shell cannot find docmancer, run pipx ensurepath, export the bin directory with export PATH="$(pipx environment --value PIPX_BIN_DIR):$PATH", and try again. For problems after the command starts, docmancer doctor will tell you why.
Contributing
Issues and pull requests are welcome. Start with CONTRIBUTING.md for project layout and extension points, and open a discussion if you want to talk through an idea first. Security reports have their own private channel, described in SECURITY.md.
For architecture, supported sources, Cloud boundaries, and troubleshooting, see the wiki or the full documentation.
License
MIT. See LICENSE.
來源:README.md,提交 c5c76c6
工具
0版本歷史
1- v0.9.17最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分