DocsAgent: a local MCP document index for Claude Code, Cursor and OpenClaw
DocsAgent is a local-first AI documents assistant that lets you securely index and chat with thousands of desktop documents with zero cloud leakage.
At a glance
- What is it?
- DocsAgent connects MCP clients to a local C++ search core for Zotero, Obsidian and Apple Notes. The current project documents full-text search, passage ranking and guarded write tools over local stdio or Streamable HTTP.
- Who is it for?
- Adopt DocsAgent if you want an agent to search a folder of PDFs, DOCX and PPTX files without uploading them, and you are comfortable running a global npm package plus a background engine process. Do not adopt it if your corpus is scanned image PDFs, spreadsheets, or anything you need to query with structured filters, since the support matrix lists only three formats and the CLI exposes only add, search, status and stop.
- Can I use it commercially?
- The repository metadata does not identify a licence. Check the project’s published terms and any component-specific licences before reuse.
- Is it still maintained?
- Yes. The repository last received commits 9 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- docsagent/docsagent580 ★ · -36
| Repository | 2026-09-12 | 2026-11-25 |
|---|---|---|
| docsagent/docsagent | 616 | 580 |
-36 Stars in the last 74 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The gap DocsAgent is trying to fill between an agent and a folder of files
DocsAgent gives MCP clients access to local Zotero libraries, Obsidian vaults and, on macOS, Apple Notes. Its resident C++ core uses BM25 full-text search and query-ranked passages; a mixed query can combine results across sources. The project describes this as local-first processing. Verify the exact data flow and your MCP client's model provider before relying on any privacy claim.
What the MCP server actually exposes to an agent
The current README lists eight MCP tools: five read tools and three write tools with validation and a write safety gate. It supports local stdio and remote Streamable HTTP. Check the tool schemas and configuration for the installed version before granting access; remote HTTP deployment also requires the documented authentication and access controls.
Install, index, search: the three commands that matter
The current quick start uses `npx @docsagent/docsagent start` to start the bundled core and `npx @docsagent/docsagent status` to inspect it. The MCP shell then connects to that running core. Follow the current README for client configuration, source paths, authentication and stopping the service; commands for an older release may no longer apply.
The Zotero and Obsidian wrappers, and the path assumption baked into them
Zotero and Obsidian are current core sources, with Apple Notes available on macOS. The core reads the configured local sources and builds an index for each. Source configuration and the supported read and write operations are documented in the project; verify paths and permissions before connecting a real archive.
Format coverage is three types wide, and the README's own table is the boundary
The current documentation describes Zotero items, annotations and notes, Obsidian vaults and Apple Notes as searchable sources. This is broader than a PDF, DOCX and PPTX-only file list. Verify extraction, source support and OCR on representative documents for the installed version before indexing a large collection.
The native engine claim and what the repository does not document
The C++ core maintains an inverted-index BM25 and passage-ranking index for each source. The MCP shell communicates with it over JSON-RPC and does not start the core during individual tool calls. Check the documented storage, network binding and lifecycle settings against your environment; local indexing does not by itself control what a connected model provider receives.
How this differs from a general-purpose vector store or a hosted document chat
DocsAgent packages source integration, local search and MCP access together. A general-purpose retrieval stack offers more control over parsing, ranking and storage but requires more integration work. A hosted document service shifts processing and storage to a provider. Compare the actual source coverage, write controls and data handling against your requirements.
Licence, maintenance and what to verify before you commit an archive
The project identifies its licence as Apache-2.0. Before adoption, read the current licence and source configuration, test search on a small representative collection, and verify the core's network binding, authentication and write permissions. Pin a tested version and read its upgrade notes before relying on the index for a large archive.
Editorial conclusion
Adopt DocsAgent if you want an agent to search a folder of PDFs, DOCX and PPTX files without uploading them, and you are comfortable running a global npm package plus a background engine process. Do not adopt it if your corpus is scanned image PDFs, spreadsheets, or anything you need to query with structured filters, since the support matrix lists only three formats and the CLI exposes only add, search, status and stop. Before trusting it with sensitive material, verify two things yourself: where the index and any embeddings are written on disk, and whether docsagent stop leaves that data in place. The Apache-2.0 badge in the README is the only licence statement available in the repository material, and the package metadata does not confirm it.
Frequently asked questions
What is a document agent?
In this project it means an MCP server that gives an agent private access to a personal knowledge base on your own machine. DocsAgent indexes a Zotero library, an Obsidian vault and the macOS Apple Notes store through a resident C++ engine, so notes and PDFs never leave the computer.
Which knowledge sources does DocsAgent index?
Zotero items, annotations and notes; Obsidian vaults, with notes as items and folders and tags browsable; and Apple Notes on macOS only, where the engine omits the source on other platforms. The vault path and the Notes database can both be overridden with environment variables.
How does DocsAgent search across several sources at once?
Passing all as the source ranks each source independently and fuses them with reciprocal rank fusion at a constant of 60, tagging each hit with its source. The project uses rank fusion rather than score fusion because BM25 scores are not comparable across corpora of different sizes.
What does DocsAgent grep mode do differently from search?
Grep mode scans for a literal pattern with no tokenization and no ranking, which suits an exact identifier or key. Relevance is reported as zero, each result carries a match count with hit windows containing line, column and offset, and there are switches for case sensitivity, whole-word matching and a cap on total matches.
Does the DocsAgent shell start the search engine itself?
No. The shell never spawns the core during a tool call and never touches your source files. The core runs as a background service on a fixed port and stays available across client restarts, and if it is not running the shell fails fast with startup instructions instead of starting anything.
Can DocsAgent be used over a network instead of locally?
Yes. Alongside stdio for local clients it offers Streamable HTTP with origin checks, API-key or OAuth 2.0 token introspection, per-request role-based access control and a health probe. The npm package is version 5.0.0, Apache-2.0 licensed, and a feature-equal Python wrapper ships in the repository.
Official sources
Was this useful?