DocsAgent 支持 Zotero/Obsidian,搜索 ~15 ms
⚡ DocsAgent —— 为你的 AI 智能体提供对你个人知识库的即时、私有访问(现已支持 Zotero、Obsidian、Apple Notes,本地文档在路上)。原生 C++ 搜索核心:BM25 + 段落排序,耗时约 ~15 ms。提供 MCP server,可用于 Claude、Cursor、Cline 以及任何 MCP 客户端。
MCP 服务会以你的权限运行代码或访问你的数据。安装前请先看项目主页与源码,只给必要的权限;密钥请自行填入,不要提交到仓库。
claude mcp add docsagent -e DOCSAGENT_CONFIG='<你的DOCSAGENT_CONFIG>' -- npx -y @docsagent/docsagent@5.0.1
{
"mcpServers": {
"docsagent": {
"command": "npx",
"args": [
"-y",
"@docsagent/docsagent@5.0.1"
],
"env": {
"DOCSAGENT_CONFIG": "<你的DOCSAGENT_CONFIG>"
}
}
}
}DOCSAGENT_CONFIG(可选) Path to the shared docsagent config file (default: ~/.docsagent/config.json)摘自项目自己的说明,具体以项目主页为准。
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.