Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyData and databases

haiku.rag

Lets your AI agent search and read your own documents locally and answer questions with page and heading citations.

650 stars on GitHubby ggozadLicense MITUpdated 18 days ago

How to install

This MCP is local: it runs on your computer.

It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Code…). Choose your app:

Paste in the terminal:

claude mcp add haiku-rag -- uvx mcp --stdio haiku-rag

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Index my papers folder and ask what datasets were used for evaluation.
Search my documents for the attention mechanism and cite the pages.

What it is

haiku.rag indexes your PDFs, Office files, HTML, Markdown and images into a local database. It combines keyword and vector search with reranking and answers questions with citations. It uses open models through Ollama by default, so no server or API key is needed.

What it can do

  • Search documents with hybrid retrieval
  • Read documents the agent finds
  • Run sandboxed Python over the documents for counting and aggregation
  • haiku-rag add-src: index a file, URL or folder
  • haiku-rag ask: answer a question with citations
  • haiku-rag mcp --stdio: start the MCP server

When to use

  • β€ΊWhen you want answers from your own PDFs with page numbers
  • β€ΊWhen you need to count or total things across many documents
  • β€ΊWhen you want a private document search that runs on your machine

What you need

Python 3.12 or newer and pip install haiku.rag. By default it uses Ollama for embeddings and answers; other providers can be set.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is it free and open source?

Yes, it uses the MIT license.

Does it need an API key?

Not by default. It uses Ollama locally. Other providers such as OpenAI can be used instead.

Which files can it read?

PDFs, office documents, HTML, Markdown and images, parsed with Docling.

Where is the data stored?

In an embedded LanceDB database, which can also live on S3, GCS, Azure or LanceDB Cloud.

Which clients work with the MCP server?

Claude Code, Codex and Claude Desktop.

Can it show where an answer came from?

Yes. It cites page numbers and headings and can draw the cited chunk on the page image.

If it does not work

  • β€ΊCheck that Python is 3.12 or newer and that Ollama is running with the needed models pulled.
  • β€ΊRun haiku-rag doctor for health checks.
  • β€ΊRun haiku-rag init to create the database before adding documents.

5 new skills a week. 1 minute to read.