Model Context Protocol server for Duct — search and query documents from any MCP client (Claude, Cursor, Cline, etc.).
| Tool | Description |
|---|---|
search |
Search indexed documents by relevance with BM25 or vector search |
ask |
Ask a question and get an AI-generated answer with source citations |
index |
Index files, directories, or URLs for search |
list_documents |
List all indexed documents |
stats |
Get index statistics (document and chunk counts) |
Add to claude_desktop_config.json:
{
"mcpServers": {
"duct": {
"command": "npx",
"args": ["@docfide/duct-mcp"]
}
}
}Add as an MCP server in Cursor settings pointing to npx @docfide/duct-mcp.
npx @docfide/duct-mcpSet DUCT_PERSIST_PATH to reuse an existing Duct index:
DUCT_PERSIST_PATH=~/.duct npx @docfide/duct-mcpnpm install -g @docfide/duct-mcpMIT