Doc Manager
Doc Manager's MCP server lets you browse, read, search, and write plaintext documents and their attachments in an encrypted Azure Blob vault — though documents encrypted client-side stay private and are refused for content reads/writes.
List every document with id, title, encryption flag, attachment info, and size (
list_documents).Read a single plaintext document by id (
get_document).Search case-insensitively across titles and plaintext content, getting matching snippets (
search_documents).Fetch attachments as filename, size, base64 bytes, plus a UTF-8 text rendition when applicable (
get_attachment).Create new plaintext documents (
create_document).Update a plaintext document's content and optional title (
update_document).Attach files (text or base64 binary) to a document, replacing any existing attachment (
add_attachment).Delete a document and all its blobs, including encrypted ones (
delete_document).Delete just an attachment, leaving the document intact (
delete_attachment).Discover but not read encrypted docs — they appear with
encrypted: true, preserving the zero-knowledge guarantee; write operations can also be disabled server-wide viaMCP_READ_ONLY.
Doc Manager
A zero-knowledge document vault backed by Azure Blob Storage, with a built-in MCP server so you can add, read and search your docs straight from a Claude conversation.
Zero-knowledge by design — documents and attachments are encrypted in the browser with AES-256-GCM (PBKDF2-SHA256, 600k iterations); the password never leaves the client.
Talk to your docs — Claude (web, desktop, Claude Code) can list, fetch, search, create and update plaintext documents through the MCP endpoint.
One Rust binary — Rocket backend + React 19 / Vite 8 frontend, deployable to Azure Container Apps, plain Docker, or
containerd+ Kaniko in a homelab.
Talking to your docs through Claude
The same Rust process exposes a Streamable HTTP Model Context Protocol
server at /mcp. Users sign in with GitHub. Doc Manager issues a 15-minute
access token bound to the exact MCP URL, the registered connector and the user's
numeric GitHub ID. The endpoint verifies this binding on every HTTP request.
Encrypted documents stay private (their content is never returned to
Claude); plaintext documents become first-class citizens in the chat.
Tools
Tool | What it does | Available in |
| List every doc with | yes |
| Fetch one plaintext document by id; refuses encrypted ones | yes |
| Case-insensitive substring search over titles (always) and plaintext content | yes |
| Fetch the file attached to a doc (filename, bytes, base64, UTF-8 if applicable) | yes |
| Create a new plaintext document; returns the new id | no |
| Replace content (and optionally title) of a plaintext document | no |
| Attach a file (text or base64-encoded binary) to a doc; replaces any existing | no |
| Delete a document and all its blobs (main, title, attachment); irreversible | no |
| Delete only the attachment of a document, leaving the document itself intact | no |
Encrypted documents are surfaced to Claude with encrypted: true so it can
discover them by title, but their contents and writes are refused server-side.
That keeps the zero-knowledge guarantee intact: encrypted = "private to me",
plaintext = "shareable with Claude".
Connect ChatGPT or Claude
Open the existing GitHub OAuth App for the connector. Add the exact
<origin>/mcp/oauth/callbackredirect URI with wildcard matching disabled. GitHub returns the sign-in result to Doc Manager at this address.Set
OAUTH_CONNECTOR_REDIRECT_URIto the exact callback displayed by the connector. SetOAUTH_GITHUB_CLIENT_IDto the public client ID of the existing OAuth App. The connector keeps its client ID and secret. During token exchange Doc Manager submits those credentials to GitHub over HTTPS.Set
OAUTH_GITHUB_USER_IDSto the numeric IDs of the GitHub accounts that may open the vault. GenerateOAUTH_TOKEN_KEYfrom 32 cryptographically random bytes encoded in standard base64. Supply it to every replica through an Azure Container Apps secret reference. Rotating it invalidates sessions.Connect to
<origin>/mcpand sign in with GitHub. When upgrading an existing connector, reconnect once to obtain a Doc Manager token. Clients requestmcp.accessand can requestoffline_accessfor renewal.If Azure Easy Auth protects the website, pass
/mcp,/mcp/*,/.well-known/oauth-protected-resource/mcp,/.well-known/oauth-protected-resourceand/.well-known/oauth-authorization-serverthrough to Rocket. Also pass the exact/.well-known/openid-configurationpath through. Clients probing OpenID discovery receive a public 404 and can use the published OAuth authorization server metadata.
A push to main triggers the Azure deployment workflow. Configure the secret
reference and OAuth environment variables on the candidate revision before
moving traffic to it.
Related MCP server: @bitatlas/mcp-server
Building the frontend
cd frontend
npm i
npm run build
cd ..Running with Docker
docker build -t giuliohome/doc-manager:latest .
export AZURE_STORAGE_ACCOUNT=youraccount
export AZURE_STORAGE_ACCESS_KEY=yourkey
export RUST_ROCKET_EXACT_ORIGIN=http://localhost:8080
# optional — enables the MCP endpoint:
export OAUTH_PROVIDER=github
export OAUTH_PUBLIC_BASE_URL=http://localhost:8080
export OAUTH_GITHUB_CLIENT_ID='your-github-oauth-client-id'
export OAUTH_CONNECTOR_REDIRECT_URI='https://your-connector.example/oauth/callback'
export OAUTH_GITHUB_USER_IDS='123456'
export OAUTH_TOKEN_KEY="$(openssl rand -base64 32)"
docker run -p 8080:8080 \
-e AZURE_STORAGE_ACCOUNT \
-e AZURE_STORAGE_ACCESS_KEY \
-e RUST_ROCKET_EXACT_ORIGIN \
-e OAUTH_PROVIDER \
-e OAUTH_PUBLIC_BASE_URL \
-e OAUTH_GITHUB_CLIENT_ID \
-e OAUTH_CONNECTOR_REDIRECT_URI \
-e OAUTH_GITHUB_USER_IDS \
-e OAUTH_TOKEN_KEY \
giuliohome/doc-manager:latestTL;DR — containerd + Kaniko (homelab)
sudo mkdir /kcache
sudo ctr i pull gcr.io/kaniko-project/warmer:latest
sudo ctr run --net-host --rm --mount type=bind,src=$(pwd),dst=/workspace,options=rbind:rw --mount type=bind,src=/kcache,dst=/cache,options=rbind:rw gcr.io/kaniko-project/warmer:latest kaniko-warmer /kaniko/warmer --cache-dir=/cache --image=docker.io/rust:1-slim-bookworm --skip-tls-verify-registry index.docker.io --dockerfile=/workspace/Dockerfile
sudo ctr i pull gcr.io/kaniko-project/executor:latest
sudo ctr run --net-host --rm --mount type=bind,src=$(pwd),dst=/workspace,options=rbind:rw --mount type=bind,src=/kcache,dst=/cache,options=rbind:rw gcr.io/kaniko-project/executor:latest kaniko-executor /kaniko/executor -cache-dir=/cache --dockerfile=/workspace/Dockerfile --context=/workspace --no-push --skip-tls-verify --build-arg pkg=docs-app --tarPath=/workspace/doc-manager-latest.tar --destination=giuliohome/doc-manager:latest --cache=true --cache-repo=giuliohome/doc-manager:latest --no-push-cache
sudo ctr image import doc-manager-latest.tar
sudo ctr c create --net-host docker.io/giuliohome/doc-manager:latest doc-manager
sudo ctr t start doc-managerConfiguration reference
Env var | Required | Purpose |
| yes | Azure Storage account name (container |
| yes | Storage access key |
| yes | CORS origin for the React frontend |
| no (enables MCP) |
|
| with | Public base URL of this server, e.g. |
| with | Public client ID of the connector's GitHub OAuth App |
| with | Exact callback URL for the connector |
| optional | Second exact callback for a connector sharing this GitHub OAuth client. Copy the URI displayed by that connector. |
| with | Comma-separated list of allowed numeric GitHub user IDs |
| with | Standard base64 encoding of a shared 32-byte random encryption key |
| no (default false) | When |
| no (auto) | Opens |
| no (default false) | When |
End-to-end tests
See the e2e repo.
Available Tools
9 toolsadd_attachmentA
Attach a file to an existing plaintext document. Replaces any pre-existing attachment for that document (one attachment per doc by design). Refuses if the document is encrypted client-side. Provide either 'content' (UTF-8 text, e.g. markdown) or 'content_base64' (binary, base64-encoded).
Inputs: filename (required), id (required), content, content_base64.
create_documentA
Create a new plaintext document. Returns the new id. Cannot create encrypted documents.
Inputs: content (required), title (required).
delete_attachmentA
Delete the file attached to a document, leaving the document itself intact. No-op (with status: 'no_attachment') if the document has no attachment. Works on encrypted attachments too.
Inputs: id (required).
delete_documentA
Delete a document and all of its associated blobs (main content, title, and any attachment). Works on encrypted documents too — deletion is destructive but does not disclose contents. Irreversible.
Inputs: id (required).
get_attachmentA
Fetch the file attached to a plaintext document. Returns filename, byte size, base64-encoded content, and a UTF-8 text rendition when the bytes are valid UTF-8 (e.g. .md, .txt, .json). Refuses if the attachment is encrypted client-side (named '_dmencblob').
Inputs: id (required).
get_documentA
Fetch a single plaintext document by id. Refuses encrypted documents (their content is unreadable server-side).
Inputs: id (required).
list_documentsA
List every document in the vault with its id, title, encryption status, attachment status, and content size.
Inputs: no named parameters.
search_documentsA
Case-insensitive substring search across titles (always) and plaintext content. Returns id, title, encrypted flag, what matched, and a short snippet.
Inputs: query (required).
update_documentA
Replace the content (and optionally the title) of an existing plaintext document. Refuses if the document is encrypted.
Inputs: content (required), id (required), title.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a distinct purpose (create, read, update, delete for documents and attachments, plus search). No two tools overlap in functionality, and descriptions clarify edge cases (e.g., add_attachment replaces existing attachment).
All tools follow a consistent verb_noun pattern (e.g., create_document, delete_attachment, search_documents). No mixing of conventions like camelCase or inconsistent verb forms.
With 9 tools, the server covers all core operations for document and attachment management. The count is well-scoped—neither too few (would miss functionality) nor too many (would overwhelm).
The toolset provides full CRUD for plaintext documents and attachments. However, encrypted documents are only deletable; they cannot be read or updated via the server. This is a deliberate design but limits utility if encrypted documents are present.
Maintenance
Related MCP Connectors
Persistent memory for AI assistants — one shared, OAuth-secured vault for every MCP client.
Notes and memory assistant: one Markdown vault that Claude, ChatGPT and any MCP client can share.
Private persistent memory for Claude, ChatGPT & Gemini via MCP - semantic search, zero-code setup.
Sovereign E2E cloud storage for AI agents. Zero-knowledge, RGPD-compliant.
Related MCP Servers
- AlicenseAqualityDmaintenanceSecrets vault for Claude Code. Encrypt API keys, tokens and passwords with AES-256. Full audit logs, MCP access rules, and zero-knowledge mode. Secrets never appear in chat.171MIT
- AlicenseAqualityCmaintenanceZero-Knowledge Cloud Drive for Humans and Agents. Client-side AES-256-GCM encryption with 7 MCP tools for secure file vault management — the server never sees plaintext data.72MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first markdown vault with a built-in MCP server (streamable HTTP). 16 tools and 2 resources for Claude Code / Desktop / Cursor: read/write/search plus context_for_query, find_orphans, weekly_digest, compare_notes, semantic_outline. Per-folder agent permissions, LanceDB vectors, local Xenova ONNX embedder swappable to Ollama. Single Bun binary. AGPL.40AGPL 3.0

LoreDocsofficial
AlicenseAqualityBmaintenanceKnowledge vaults for AI projects: specs, guides and architecture decisions organized per project, full-text searchable and version-tracked with restore. Import from Obsidian and Notion, or ingest files directly. Local SQLite storage and 45+ MCP tools for Claude Code, Cowork, Codex, Cursor and Hermes Agent. Free: 3 vaults. Pro ($9/mo): semantic search and auto-discovered document relationships.49221 PyPI4Business Source 1.1