haiku.rag

Data and AI

Local-first agentic RAG with citations - hybrid search, reranking, multimodal document retrieval.

Your AI app calls the haiku.rag MCP server, which does the data and AI work and sends the result back to the chat.

About haiku.rag

haiku.rag is a community MCP server from ggozad, filed in our directory under data and ai. Local-first agentic RAG with citations - hybrid search, reranking, multimodal document retrieval.

haiku.rag runs on your own machine: your AI app starts it with the command uvx haiku-rag==0.114.1 and talks to it over standard input and output.

haiku.rag is listed in the official MCP registry as io.github.ggozad/haiku-rag, version 0.114.1.

At a glance

Publisher
ggozad (community)
Runs
Locally on your machine
Install from
Python package on PyPI: haiku-rag
Written in
Python
License
MIT
GitHub stars
673
Official MCP registry
io.github.ggozad/haiku-rag

How to set up haiku.rag

  1. Install uv on the machine that runs your AI app, because haiku.rag starts with uvx and fetches its Python package on first run.
  2. Check the haiku.rag README for keys or settings; the registry lists none that haiku.rag requires.
  3. Add haiku.rag to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the haiku.rag tools to confirm the connection.
  5. Run one read-only task with haiku.rag first, and keep your app asking before each tool call until the results look right.

haiku.rag compared with similar servers

  • WireMCP by 0xKoda has fewer GitHub stars than haiku.rag (609 against 673); both are community servers, and both run locally.
  • ProxmoxMCP Plus by im-xiangda-li has more GitHub stars than haiku.rag (683 against 673); both are community servers, and both run locally.
  • Pullmd by AeternaLabsHQ has fewer GitHub stars than haiku.rag (530 against 673); both are community servers, and both run locally.

Before you connect haiku.rag

  • Give haiku.rag its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each haiku.rag tool call until you trust what it does with them.
  • Treat text that haiku.rag fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for haiku.rag on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for haiku.rag

How marketing and sales teams put haiku.rag to work, by company size. Pick the size closest to yours and start haiku.rag on one use case.

Small business

  • A small team can use haiku.rag to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Owners can ask haiku.rag to sort feedback, reviews or survey answers into themes and see what customers mention most.
  • haiku.rag runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect haiku.rag to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Content and research teams can use haiku.rag to analyze transcripts and surveys at scale and pull the quotes worth using.
  • Start haiku.rag on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run haiku.rag inside their own cloud and data boundary, so models and data stay where governance requires.
  • Large teams can use haiku.rag in batch pipelines with evaluation and logging, so AI output is measured before it reaches customers.
  • haiku.rag is a community server, so have security review the code and pin a version before haiku.rag touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

haiku.rag README

From ggozad/haiku.rag on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

haiku.rag

Open-source agentic RAG that answers questions about your own documents with citations to page numbers and section headings. It runs on an embedded LanceDB database with open models through Ollama by default, so no server or API key is needed. Any provider Pydantic AI supports works in their place, and the same database can live on S3, GCS, Azure or LanceDB Cloud.

Built on LanceDB, Pydantic AI and Docling. Documentation: ggozad.github.io/haiku.rag.

Features

  • Ingest PDFs, office documents, HTML, Markdown and images with Docling, in-process or on docling-serve. The stored DoclingDocument keeps headings, tables, pictures and page provenance.
  • Search with hybrid vector and full-text retrieval, optional reranking (cross-encoders, Jina, Cohere, Zero Entropy, vLLM, OpenRouter), section-aware context expansion, and image search with a multimodal embedder (vLLM, OpenRouter, VoyageAI, Cohere). Across several named databases at once.
  • Answer with the RAG capability: it searches, runs sandboxed Python over the documents for counting and aggregation, and cites page numbers and headings. Vision models receive the figures. Optional capabilities compact earlier evidence in long conversations and require every answer to declare its grounding.
  • Check a citation by drawing its chunk on the page image, from the CLI, the chat TUI or Python.
  • Integrate through the Python API, native Pydantic AI capabilities, plugin hooks that observe document writes and transform searches, an MCP server for Claude Code, Codex and Claude Desktop, and a reference web app.
  • Operate with the haiku-ingester service (filesystem, HTTP, S3 and WebDAV sources, a SQLite or Postgres job queue with retries, a control plane and dashboard), tags and rollback, vacuum, and haiku-rag doctor health checks.

Installation

Python 3.12 or newer.

pip install haiku.rag        # Docling, the VoyageAI and Cohere embedders, every reranker, the TUI
pip install haiku.rag-slim   # the core, with extras chosen by you

The ingester, S3 access and model providers other than Ollama and OpenAI-compatible endpoints are extras. See Installation.

Quick start

The default configuration uses Ollama for embeddings and answers. The quickstart covers the models to pull and using OpenAI instead.

haiku-rag init                                  # create the database
haiku-rag add-src paper.pdf                     # index a file, URL or directory
haiku-rag search "attention mechanism"
haiku-rag ask "What datasets were used for evaluation?"
haiku-rag ask "How many documents mention transformers?"
haiku-rag ask "Does this figure match the spec?" --image figure.png
haiku-rag chat                                  # multi-turn chat in the terminal

Continuous ingestion from configured sources runs as a separate service, with the ingester extra (pip install 'haiku.rag[ingester]'):

haiku-ingester serve

Python API

from haiku.rag.client import HaikuRAG

async with HaikuRAG("knowledge.lancedb", create=True) as rag:
    await rag.create_document_from_source("paper.pdf")
    await rag.create_document_from_source("https://arxiv.org/pdf/1706.03762")

    results = await rag.search("self-attention")
    for result in results:
        print(f"{result.score:.2f} | p.{result.page_numbers} | {result.content[:100]}")

    answer, citations = await rag.ask("What is the complexity of self-attention?")
    print(answer)
    for cite in citations:
        print(f"  [{cite.chunk_id}] p.{cite.page_numbers}: {cite.content[:80]}")

To compose your own agent, see Capabilities.

MCP server

haiku-rag mcp --stdio

The server gives an assistant search, document reading and a Python sandbox over the documents. In Claude Code, the plugin registers it with a skill:

claude plugin marketplace add ggozad/haiku.rag
claude plugin install haiku-rag

Codex and Claude Desktop setup is in the MCP docs.

Examples

Documentation

License

MIT.

mcp-name: io.github.ggozad/haiku-rag

Questions about haiku.rag

What is the haiku.rag MCP server?

Local-first agentic RAG with citations - hybrid search, reranking, multimodal document retrieval. haiku.rag is maintained by ggozad on GitHub at ggozad/haiku.rag, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the haiku.rag MCP server?

Add haiku.rag to your AI app's MCP config with the command uvx haiku-rag==0.114.1. In Claude Code, run claude mcp add --transport stdio haiku-rag -- uvx haiku-rag==0.114.1. To run haiku.rag this way you need uv installed.

Does haiku.rag need an API key?

The registry lists no required keys for haiku.rag. Check the haiku.rag README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is haiku.rag an official MCP server?

No. haiku.rag is a community server maintained by ggozad. Community servers can be excellent; read the code and the open issues before you give haiku.rag access to company data.

What license is haiku.rag under?

haiku.rag is released under the MIT license, according to its GitHub repository. The license covers the code of haiku.rag; the service it connects to has its own terms.