RAG and document tools for building AI agents
Retrieval tools that let agents search documents, PDFs and knowledge bases and answer from them (RAG). Of the 704 tools on our building AI agents page, 46 fit this narrower job. By pricing: 38 open source, 1 source-available, 2 free or freemium, 5 pricing on the maker's site. The most-starred open repos here are Headroom (81,387 stars), Mem0 (69,957 stars), Context7 (65,796 stars). Most come from the frameworks (21), memory & RAG (10), MCP servers (7) categories.
Updated
Headroom
Headroom is an Apache-2.0 library, proxy and MCP server that compresses what an AI agent reads, including tool outputs, logs, files, RAG chunks and chat history, before it reaches the model, so you send fewer input tokens for the same answers. The project's own measurements show 21 to 57 percent fewer input tokens across four agent scenarios and over 90 percent on repeated JSON arrays and log lines, with little saving on prose. Compression runs locally, and it is on PyPI and npm as headroom-ai.
Added
Mem0
Mem0 is an open-source memory layer for AI agents that extracts facts from conversations in a single add-only pass, links entities across memories and retrieves them in later sessions, with an Apache-2.0 SDK and a managed platform.
Added
Context7
MCP server and platform that feeds coding agents up-to-date, version-specific library documentation.
Added
PrivateGPT
PrivateGPT is an Apache-2.0 API layer that turns local models into private AI applications: it speaks a Claude-style messages API and adds file ingestion, retrieval with citations and agentic RAG, built-in tools (web search, web fetch, code execution), custom tools, MCP connectors and structured access such as text-to-SQL. It does not run models itself; it connects to any OpenAI-compatible inference server (Ollama, llama.cpp, vLLM and others) and ships a workbench UI at /ui for testing.
Added
LlamaIndex
LlamaIndex is an MIT-licensed Python framework for building agents and RAG pipelines over your own documents and data, with connectors, indexes, query engines and agent workflows. The company now focuses on document parsing and extraction: LlamaParse is its hosted platform for agentic OCR, parsing, extraction and indexing, and LiteParse is a free, fast open-source parser.
Added
AstrBot
AstrBot is an AGPL-3.0, all-in-one agent chatbot platform that connects LLMs to messaging apps such as QQ, WeChat Work, Feishu, DingTalk, WeChat Official Accounts, Telegram and Slack. It supports multimodal chat, agents, MCP, skills, knowledge bases, personas and automatic context compression, integrates with Dify, Alibaba Cloud Bailian and Coze, offers an agent sandbox, and has 1,000+ one-click plugins for building personal assistants, support bots or team knowledge bots.
Added
MindsHub
MindsDB's agent workspace for research, analysis, documents and coding, with a model router, a scoped vault for connected data and swappable open-source agent harnesses.
Added
DSPy
DSPy (Declarative Self-improving Python) is Stanford NLP's MIT-licensed framework for programming rather than prompting language models. You write modular Python components (signatures and modules) for classifiers, RAG pipelines or agent loops, and DSPy's optimizers tune the prompts and, optionally, the model weights against your metric, so the pipeline improves without hand-editing brittle prompts. Install it with pip install dspy; docs live at dspy.ai.
Added
ChatDev
ChatDev is an Apache-2.0 multi-agent platform from OpenBMB and Tsinghua. ChatDev 2.0 (DevAll) is a zero-code system: you define agents, workflows and tasks in configuration and it orchestrates them for jobs such as data visualization, 3D generation and deep research. The original ChatDev 1.0, kept as a legacy mode, simulates a virtual software company where CEO, CTO, programmer and tester agents design, code, test and document an app through structured chats.
Added
ScrapeGraphAI
ScrapeGraphAI is an MIT-licensed Python library for LLM-driven web scraping. You describe the data you want in plain language and it builds a graph pipeline that fetches a page, website or document (HTML, XML, JSON or Markdown) and returns structured output, with ready graphs for single pages, multi-page search and scripted scrapers. It works with hosted models such as OpenAI or with local ones through Ollama. The same team runs a hosted API for scraping at scale.
Added
Serena
MCP toolkit that gives coding agents semantic code retrieval and editing, like IDE features.
Added
Mastra
TypeScript framework for agents, workflows and RAG.
Added
Haystack
Open-source orchestration framework for building production LLM apps, RAG and agents.
Added
Opik
Opik is Comet's Apache-2.0 platform for LLM observability and evaluation: it traces LLM calls, RAG pipelines and agent runs, scores them with built-in and custom metrics (including LLM-as-judge), runs experiments on datasets, manages prompts and monitors production traffic with dashboards. SDKs and integrations cover Python, TypeScript, OpenAI, LangChain, LlamaIndex and other frameworks. The full platform is free to self-host, or you can use Comet's hosted cloud.
Added
Docmost
Docmost is an open-source collaborative wiki and documentation software. It is an open-source alternative to Confluence and Notion
Added
Agent Zero
Agent Zero is an open-source AI agent that gets its own Linux computer: inside a Docker sandbox it uses a terminal, a browser and desktop apps to research, write and run code, and create and edit documents, building its own tools and correcting itself as it goes. You watch and can step in through a web UI, connect local folders when needed, and choose the models it uses. It is actively developed, with v2.16 released in November 2026.
Added
RocketRide
RocketRide is an MIT-licensed open-source AI meta-harness with a C++ runtime for building, testing and publishing durable agents. The README still documents its pipeline builder. On-prem is marked free; RocketRide Cloud is marked live. GitHub listed 20,008 stars on 20 Nov 2026.
Added
llmware
Framework for building private, local RAG and agent applications with small specialized models on AI PCs, edge and self-hosted setups.
Added
txtai
All-in-one Python framework for semantic search, LLM orchestration and agents built on an embeddings database of vector, graph and relational indexes.
Added
Kami
Kami is a document design system that coding agents use when a page or a report has to look finished. It supplies layout rules and templates for one-pagers, letters, portfolios, resumes, reports and slides. The site says an agent can export PDF, PNG or an editable PowerPoint file. Each page uses one typeface, a paper-colored canvas and a single accent. A release titled Cleaner Reports was published on 29 Oct 2026. GitHub recorded MIT, 12,695 stars and 594 forks on 2 Dec 2026.
Added
Ipollowork
Enterprise-grade, local-first Agent Workbench for people and agent teams. A unified multi-engine workspace for Codex Harness, DeepSeek Harness, and OpenCode, with unified plugins and Skills, multi-agent projects and tasks, and editable code, documents, presentations, design, and video.
Added
Ruoyi AI
Enterprise-grade AI agent framework with multi-provider LLM management, secure knowledge bases and high-precision RAG, visual workflow orchestration, and multi-agent coordination
Added
RLinf
RLinf is an Apache-2.0 reinforcement-learning infrastructure for embodied and agentic AI that scales PPO and GRPO training across GPUs for vision-language-action robot policies and LLM agents, with recent support for OpenPI pi0.5 fine-tuning, GenieSim, SO-101 arms and humanoid simulators; documentation is on Read the Docs.
Added
UltraRAG
Low-code MCP-based framework from OpenBMB for building and debugging complex RAG pipelines with visible reasoning logic.
Added
Kiln
Free desktop app and open-source library for building AI systems with evals, RAG, agents, fine-tuning and synthetic data in one workbench.
Added
DocETL
System for agentic, LLM-powered document processing and ETL pipelines from UC Berkeley.
Added
SimpleMem
Research-backed lifelong memory library for LLM agents that stores, compresses and retrieves text and multimodal memories, usable over MCP.
Added
Cortex
Cortex is an MCP server that gives agents a way to handle generates interactive API documentation, typed SDKs, and MCP servers from OpenAPI, AsyncAPI.
Added
Agentero
Agentero is a research workspace for reading papers with an agent. Papers, notes, and the conversation stay on your machine. While you read a PDF you can send a selected passage, a figure, or a note to the agent and ask it to work from that text. The project is aimed at the gap between a reference library and the chat where you actually think. The repository is MIT. GitHub recorded 3,086 stars and 205 forks on 3 Dec 2026. No dollar price was listed in the README sections checked that day.
Added
Papersgpt For Zotero
Papersgpt For Zotero is an MCP server that gives agents a way to handle professional AI research tool for Zotero: chat with PDFs, whole-library search, Literature.
Added
Neuron AI
PHP framework for creating and orchestrating AI agents with LLMs, tools, vector stores and memory.
Added
CyberVerse
CyberVerse is a GPL-3.0, self-hosted framework for real-time digital-human agents: it builds voice-first AI agents over WebRTC with persona memory, tools and RAG, and can add a talking digital-human video generated from a single photo. It suits teams that want a JARVIS-style assistant or avatar agent they run on their own infrastructure.
Added
Langchain.rb
Langchain.rb is an MIT-licensed Ruby gem for building LLM-powered applications: a unified interface across providers such as OpenAI, Anthropic, Google Gemini, AWS Bedrock, Mistral and Ollama, plus prompt management, output parsers, retrieval-augmented generation over vector stores, tool-using Assistants and evaluations. A companion langchainrb_rails gem adds deep Rails integration.
Added
SAG-Wiki
SAG-Wiki is an MIT desktop knowledge base for macOS and Windows that indexes and searches your local files without LLM calls, then answers questions with citations you can trace to the source. PDFs become searchable before background OCR and table extraction finish, Office and RTF files are indexed too, and an agent skill lets Claude Code and other agents query the same library.
Added
Pixeltable
Multimodal data layer that combines storage, transforms, indexing and retrieval in one Python library for building agents over images, video and documents.
Added
Inno Agent
An open-source personal learning agent with three-layer memory (learner profile / wiki knowledge base / cross-conversation recall), a proactive scheduler, personal IM channels, and a workspace-scoped Practice Lab — built on the Pi SDK.
Added
BaseAI
Web AI framework from Langbase for building AI agents with memory (RAG) and deploying them serverless.
Added
Moss
Moss is an open-source agent project that helps builders handle retrieval layer for production AI systems.
Added
Knowledge Agent Template
Knowledge Agent Template is an open-source agent project that helps builders handle file-system and knowledge based agent template.
Added
Dynamiq
Python orchestration framework for building agentic and RAG applications from reusable nodes and workflows.
Added
Waggle
Waggle shows which files an AI agent actually opened before it answered. Instead of pasting whole documents between agents, it hands over short references that can be traced back to the source, so you can check whether an answer was grounded in what you gave the agent and send it back when it skipped the reading. It plugs into agent harnesses over MCP.
Added
Lattice
Lattice is an open-source agent project that helps builders handle local-first, agent-first LaTeX writing app for macOS: live PDF, annotations, papers.
Added
ESG Hub MCP Server
ESG knowledge base for AI agents: hybrid search, glossary, frameworks, industries, graph traversal.
Added
AIPPT.org
AIPPT is a free-to-try PowerPoint toolkit that merges and compresses decks in your browser without uploading files, turns PDFs into editable slides, and uses AI to draft a native PowerPoint file from a topic, pasted text, Markdown or a PDF. Paid credits or a Pro plan unlock a download of the full deck.
Added
GameAnalytics Documentation
Search GameAnalytics docs: Unity, Unreal, iOS, Android SDK and API guides for mobile game analytics.
Added
Metabind Docs
Search and read the Metabind documentation: MCP Apps, BindJS, the SDKs, the CLI, and the APIs.
Added
GitHub repos (43)
| Repo | GitHub stars | Licence | Last push |
|---|---|---|---|
| 81,387 | Apache License 2.0 | 2026-12-02 | |
| 69,957 | Apache License 2.0 | 2026-11-27 | |
| 65,796 | MIT | 2026-12-02 | |
| 57,669 | Apache License 2.0 | 2026-11-26 | |
| 53,110 | MIT | 2026-12-02 | |
| 47,869 | GNU Affero General Public License v3.0 | 2026-12-02 | |
| 39,909 | MIT | 2026-10-23 | |
| 39,350 | MIT | 2026-12-02 | |
| 34,918 | Apache License 2.0 | 2026-10-30 | |
| 33,036 | MIT | 2026-10-06 | |
| 31,913 | GPL-3.0-or-later for the Serena application; MIT for SolidLSP | 2026-11-27 | |
| 29,973 | Apache License 2.0, except ee/ directories (separate licence) | 2026-12-02 | |
| 27,154 | Apache License 2.0 | 2026-12-02 | |
| 23,550 | Apache License 2.0 | 2026-12-02 | |
| 22,494 | AGPL-3.0 | 2026-12-02 |
Top 15 of 43 by stars. Stars and licence come from each repo, checked when the listing was last verified.
FAQ
What are the best AI tools for building AI agents focused on RAG and documents?
We list 46. The first three by GitHub stars and featured status are Headroom: Headroom is an Apache-2.0 library, proxy and MCP server that compresses what an AI agent reads, including tool outputs, logs, files, RAG chunks and chat history, before it reaches the model, so you send fewer input tokens for the same answers. The project's own measurements show 21 to 57 percent fewer input tokens across four agent scenarios and over 90 percent on repeated JSON arrays and log lines, with little saving on prose. Compression runs locally, and it is on PyPI and npm as headroom-ai.; Mem0: Mem0 is an open-source memory layer for AI agents that extracts facts from conversations in a single add-only pass, links entities across memories and retrieves them in later sessions, with an Apache-2.0 SDK and a managed platform.; Context7: MCP server and platform that feeds coding agents up-to-date, version-specific library documentation.
Are there free or open-source options?
Yes: 38 open source, 1 source-available, 2 free or freemium, 5 pricing on the maker's site. Pricing is as each maker states it.
More from building AI agents
Tools are grouped by what each says it does. Missing one? Submit it free.