docsagent/docsagent

⚡ DocsAgent — chat with your Zotero library from your phone. Native iPhone app + free Mac companion. MCP server for Claude, Cursor & Cline: instant, private search over Zotero, Obsidian & Apple Notes, fully local (~15 ms).

What it solves

AI assistants like Claude Desktop or Cursor often can't see your personal notes and research papers. DocsAgent solves this by giving those agents a private, fast way to search, read, and even write to your Zotero library, Obsidian vault, and Apple Notes — all on your own machine, so your data never leaves it.

How it works

DocsAgent is an MCP (Model Context Protocol) server — a standard way for AI agents to call tools. It runs a small background C++ search engine on your computer that reads your local Zotero database, Obsidian vault, and Apple Notes store directly. The engine builds an index using BM25 (a classic text-ranking method) and answers queries in about 15 milliseconds, even across thousands of PDFs. When you ask across all three sources, it merges results using reciprocal rank fusion, so you get one combined answer list. The server exposes 8 tools (5 read, 3 write) with JSON-schema validation and a three-layer safety gate for writes. It works over two transports: stdio for local clients and Streamable HTTP for remote use, with optional API-key or OAuth2 authentication.

Who it’s for

People who use AI coding assistants or chat clients (Claude Desktop, Cursor, Cline, Qwen Code, or any MCP-compatible host) and want those agents to search and cite their own research library, notes, and PDFs — without uploading them to the cloud. It's also for anyone who wants a fast, local search engine over their Zotero or Obsidian data, and it pairs with a free iPhone app for on-the-go access.

Highlights

  • Local-first & private — your Zotero, Obsidian, and Apple Notes are read directly on your machine; nothing is sent to the cloud.
  • Three sources, one query — mixed search fuses results from Zotero, Obsidian, and Apple Notes (macOS only) using reciprocal rank fusion.
  • Native C++ search core — BM25 inverted-index search with ~15 ms retrieval and low memory use (160–227 MB for a 1,500-paper library).
  • 8 MCP tools — 5 read + 3 write, with JSON-schema validation, token budgets, result dedup, and a three-layer write safety gate.
  • Two transports — stdio for local clients, Streamable HTTP for remote deployment with auth and per-request RBAC.
  • Two shells, one core — TypeScript and Python packages expose the same tools over the same JSON-RPC contract.

Related

  • Project
  • Project
  • Project
  • Project
  • Project