About Haiku.rag
Haiku.rag is an MCP server published by ggozad in the Data category: agentic RAG for local and self-hosted document search: hybrid retrieval, reranking and multimodal RAG on embedded LanceDB, with Docling parsing and an MCP server. Conduid read 7 tools from its source: execute_code, get_document, get_document_outline, get_document_section, list_documents, search_documents and 1 more. It is published to PyPI as haiku.rag and runs with uvx.
The repository has 671 stars and 63 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is 0.112.0 (13 Nov 2026). It follows 0.111.1 (12 Nov 2026), and the 5 most recent releases go back to 0.109.0 (6 Nov 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include data, lancedb, rag, ml, pydantic-ai and docling.
Install
uvx haiku.ragpip install haiku.raggit clone https://github.com/ggozad/haiku.ragTools (7)
execute_codeRun a Python program over the documents and return what it printed.| Parameter | Type | Description |
|---|---|---|
| code * | string | The program. Use `await` on search and list_documents. |
| filter | any | |
| sources | any |
get_documentRead one document whole, in reading order.| Parameter | Type | Description |
|---|---|---|
| document_id * | string | The document's id. |
| source | string | The collection holding it. Without one every collection is asked. |
get_document_outlineThe heading tree of a document, with page numbers.| Parameter | Type | Description |
|---|---|---|
| document_id * | string | The document's id. |
| source | string | The collection holding it. Without one every collection is asked. |
get_document_sectionThe text of one section of a document, subsections included.| Parameter | Type | Description |
|---|---|---|
| document_id * | string | The document's id. |
| section_id * | string | The `id` of a node in the document's outline. |
| source | string | The collection holding it. Without one every collection is asked. |
list_documentsList what the knowledge base holds.| Parameter | Type | Description |
|---|---|---|
| filter | any | |
| limit | integer | How many documents to return. |
| offset | integer | How many documents to skip, for paging. |
| sources | any |
search_documentsSearch the knowledge base by meaning and keyword.| Parameter | Type | Description |
|---|---|---|
| filter | any | |
| include_images | boolean | Return the pictures in the results as images. False for a smaller response. |
| limit | integer | How many results to return; the server's configured default when omitted. |
| query * | string | What to look for, in natural language or keywords. |
| sources | any |
search_documents_by_imageSearch the knowledge base with an image as the query.| Parameter | Type | Description |
|---|---|---|
| filter | any | |
| image_base64 * | string | The query image, PNG or JPEG bytes as base64. |
| include_images | boolean | Return the pictures in the results as images. False for a smaller response. |
| limit | integer | How many results to return; the server's configured default when omitted. |
| sources | any |
Security checks
- ✓README presentThe repository's README runs to about 633 words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
1 check has not been run yet.
Releases
README
The repository's README runs to about 633 words, fetched 18 days ago. The original in the repository is authoritative.
Read full README