by docsagent
⚡ DocsAgent — give your AI agents instant, private access to your personal knowledge base (Zotero, Obsidian, Apple Notes supported now, local docs on the road). Native C++ search core: BM25 + passage ranking in ~15 ms. MCP server for Claude, Cursor, Cline & any MCP client.
# Add to your Claude Code skills
git clone https://github.com/docsagent/docsagentLast scanned: 5/30/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-30T06:46:40.862Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}See how docsagent compares with popular alternatives.
docsagent is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by docsagent. ⚡ DocsAgent — give your AI agents instant, private access to your personal knowledge base (Zotero, Obsidian, Apple Notes supported now, local docs on the road). Native C++ search core: BM25 + passage ranking in ~15 ms. MCP server for Claude, Cursor, Cline & any MCP client. It has 625 GitHub stars.
Yes. docsagent passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/docsagent/docsagent" and add it to your Claude Code skills directory (see the Installation section above). docsagent ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
docsagent is primarily written in TypeScript. It is open-source under docsagent on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh docsagent against similar tools.
No comments yet. Be the first to share your thoughts!
30 days in the Featured rail · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
DocsAgent is a local-first documentation engine designed to perform lightning-fast hybrid search (text and semantic search) over your private local files.
DocsAgent is a CLI toolkit, when you install the global docsagent package, You can directly use 'docsagent' command.
npm install -g @docsagent/docsagent
For more information, please see https://github.com/docsagent/docsagent.
Adds directory or file paths (PDF, DOCX, PPTX) to the index. You can pass multiple paths at once.
# Add a single directory
docsagent add ./documents/manuals
# Add multiple files and directories at once
docsagent add ./reports/q1.pdf ./presentation.pptx ./notes/meeting-files
Performs a hybrid search (text + semantic) across your indexed private documents.
# Search for a specific topic
docsagent search "how to configure local encryption"
# Search for technical concepts
docsagent search "API authentication process"
The tool returns the most relevant snippets with their source paths and scores.
add operation before searching.Lists all files currently being monitored or indexed.
docsagent list
Shows the indexing progress and service health.
docsagent status
Stops the indexing service.
docsagent stop
search first.search with a specific query derived from the user's request.search returns "No results found", inform the user and ask if they want to index a specific directory using add.add, verify the path exists before retrying.DocsAgent gives AI agents instant, private access to your personal knowledge base.
docsagent is the spec-driven MCP (Model Context Protocol) server that lets
any AI agent — Claude Desktop, Cursor, Cline, Qwen Code, or any MCP client — search, read, and
write your Zotero library, Obsidian vault, and Apple Notes (macOS) through a resident
C++ search engine. BM25 full-text search + query-ranked passage retrieval over 1,000+ PDFs
at ~15 ms, fully local (RAG-ready knowledge base).
/health probe).MCP Client (Claude Desktop / Cursor / Cline / Qwen Code / any MCP host)
│ stdio (local) or Streamable HTTP /mcp (remote)
▼
MCP shell ← this package (@docsagent/mcp-zotero / docsagent-mcp-zotero)
· tool schemas (spec-driven), argument validation, token budget, dedup
· write orchestration via the Zotero local API, write safety gate, RBAC
· group-library sync via the Zotero Web API
│ JSON-RPC 2.0 over HTTP ({coreHost}:{httpPort}/rpc, cpp-httplib)
▼
DocsAgent Core (resident C++ engine)
· reads ~/Zotero/zotero.sqlite + storage/, an Obsidian vault, and (macOS) the
Apple Notes store — directly on your machine
· builds & serves one index per source (BM25 + passage ranking); mixed search
(source "all") fuses them by reciprocal rank (RRF, k=60)
The shell never spawns the core during tool calls and never touches your source files. The core runs as a background service and stays available across MCP client restarts. Tool schemas and error codes: spec/.
npx @docsagent/docsagent start # spawn the bundled core for your platform
npx @docsagent/docsagent status # pid / endpoint / version
Python shell (same verbs, under the core subcommand):
pip install ./python # build the wheel locally (PyPI upload pending)
docsagent-mcp core start
(core stop / core restart also available. The core indexes every configured source — your
Zotero data directory, your Obsidian vault, and (macOS) Apple Notes — and serves JSON-RPC on
http://0.0.0.0:23120/rpc.)
Claude Desktop / Cursor / Cline / Qwen Code (mcpServers):
{
"mcpServers": {
"docsagent": {
"command": "npx",
"args": ["-y", "@docsagent/docsagent"]
}
}
}
Python shell (same tools, same contract, installed from this repo) — mcpServers:
{
"mcpServers": {
"docsagent-zotero-py": {
"command": "docsagent-mcp"
}
}
}
Install the Python package first (step 1) so docsagent-mcp is on your PATH.
On startup the shell connects to the core, loads sources, and checks index status. If the core is not running it fails fast with startup instructions — it never spawns anything.
8 tools, 5 read + 3 write. Schemas are the single-sourced contract in
spec/tools/*.json (mirrored into both packages); arguments are validated
before handlers run and failures map to typed docsagent error codes.
list_sourcesEvery searchable source with capabilities, supported targets/includes/browse modes, filters, and document counts. Call this first.
Sources today: zotero (targets items, annotations, notes; collections/tags browse),
obsidian (a vault — notes as items, folders/tags browse), and apple-notes (macOS only —
the engine omits the source on other platforms). The vault is found at
~/Documents/Obsidian Vault (override with DOCSAGENT_OBSIDIAN_VAULT); Apple Notes is read
from the system Notes store (override with DOCSAGENT_APPLE_NOTES_DB).
searchCross-entry search over one source (items, annotations, and notes).
| Parameter | Type | Notes |
|---|---|---|
query |
string | plain keywords or phrases; required unless mode=grep |
mode |
relevance | grep |
BM25 relevance by default; grep scans for a literal pattern without tokenization or ranking |
pattern |
string, required when mode=grep |
literal string to scan for |
caseSensitive, wholeWord, maxMatches |
mode=grep only: ASCII case folding, [A-Za-z0-9_] word boundaries, hit cap total |
|
target |
"items" | "annotations" | "notes" or array |
default items |
depth |
ids | snippets | full |
snippets by default (BM25-ranked passages) |
filters |
object | tags, yearFrom/yearTo, itemType, authors, colors, containerId, titleContains |
k, snippetsPerResult, max_tokens |
numbers | ranking depth and token budget (mode=grep: max documents, max hit windows per document) |
Returns results[] with global ids (zotero:KEY, obsidian:<path>, apple-notes:<uuid>),
titles, relevance, snippets; multi-target
searches group by target. In mode=grep each result carries matchCount and snippets[]
hit windows (hits[] with line/column/offset, and meta hits tagged with field),
relevance is 0, and the response adds totalMatches. Results are deduped (id, then
normalized title + year) and packed under a token budget.
search runs against config.defaultSource (default zotero). Mixed search is a core
capability: pass source: "all" to the core's search / grep methods and every source is
ranked independently, then fused with reciprocal rank fusion (k=60) — each hit is tagged
with its source. BM25 scores are not comparable across corpora, so fusion is rank-based.
get_contentRead one entry. mode=passages (query-ranked passages, k) or mode=fulltext
(offset pagination with nextOffset). Notes return their body with tags and metadata.
get_metadatainclude: metadata, abstract, annotations, notes, citation (bibtex / csljson /
formatted via citationFormat/citationStyle). Notes are packed under the token budget.
list_libraryBrowse modes: collections (drill-down via parentId), items (by containerId),
tags, saved_searches, standalone_notes. Browse modes are per source — Zotero exposes
all of these, while Obsidian and Apple Notes expose folders (drill-down) / tags / items.
| Tool | What it does | Key arguments |
|---|---|---|
import_item |
Import local PDFs or resolve DOI / ISBN / arXiv IDs (via the Zotero translation server); optional autoClassify suggests collections |
paths | identifiers, containerId, autoClassify, confirmed |
add_note |
Add a Markdown child note to an item (converted to Zotero note HTML), with orphan verification and rollback | id, content, tags, confirmed |
batch_modify |
Bulk add_to_collection / remove_from_collection / add_tags / remove_tags on up to 200 items in batches of 50 |
action, ids, containerId, tags, confirmed |
Write tools target Zotero sources only — the Obsidian and Apple Notes sources are read-only.
Write safety gate (spec/algorithms/write-gate.md): layer 1 write tools are not
registered unless enableWrites=true; layer 2 confirmed=false returns a preview and
consumes no rate-limit quota; layer 3 confirmed writes consume a per-hour rate limit
(default 30/h). Anything above 20 items in batch_modify additionally reports
requiresConfirmation in the preview.
The C++ engine powers PapersGPT — the same index and retrieval stack ships in this MCP server. Benchmark on a real Zotero installation (full write-up):
| Metric | Mac (Intel i9) | Windows VM (4C8G) |
|---|---|---|
| Library size | 1,506 PDFs (4.5 GB on disk) | 500+ PDFs |
| Index build time | 141 s | a few seconds |
| Memory (agent process) | 227 MB | 160 MB |
| Average retrieval latency | ~15 ms | ~15 ms |
Config lives at ~/.docsagent/config.json (or $DOCSAGENT_CONFIG) — one file shared by
the JS shell, the Python wrapper, and the C++ core. Validated against
spec/config.json.
| Key | Default | Description |
|---|---|---|
coreHost |
0.0.0.0 |
Address the core binds and the shell dials |
httpPort |
23120 |
Core HTTP port (POST /rpc) |
coreBinary |
"" |
Optional explicit path to the core binary |
zoteroDataDir |
~/Zotero |
Zotero data directory |
zoteroApiUrl |
http://localhost:23119/api |
Zotero local API (write o |