1,023 B
1,023 B
Model Context Protocol (MCP)
The MCP server exposes RAG functionality as tools for AI assistants like Claude Desktop.
Available Tools
Document Management
add_document_from_file- Add documents from local file pathsadd_document_from_url- Add documents from URLsadd_document_from_text- Add documents from raw text contentget_document- Retrieve specific documents by IDlist_documents- List all documents with paginationdelete_document- Delete documents by ID
Search
search_documents- Search documents using hybrid search (vector + full-text)
Starting MCP Server
The MCP server starts automatically with the serve command:
# Default HTTP transport
haiku-rag serve
# stdio transport (for Claude Desktop)
haiku-rag serve --stdio
# SSE transport
haiku-rag serve --sse
Integration
The MCP server follows the Model Context Protocol specification, making it compatible with:
- Claude Desktop
- Other MCP-compatible AI assistants
- Custom MCP clients