ApeRAG

A production-ready GraphRAG platform with hybrid retrieval, multimodal parsing and MCP-capable AI agents for enterprise knowledge bases.

Source repo
apecloud/ApeRAG
Stars
★ 1.3k
Last updated
1mo ago
FARS reviewed
Nov 29, 2026
License
Apache-2.0
Primary language
Python

At a glance

How it runs
Self-hosted serviceWeb appMCP server
Works with
Portable with changesOpenAI API (Partial support)
Cost
Free software; you pay for model usage
Setup effort
High · needs real infrastructure
You'll need
DockerDocker ComposeKubernetes cluster (v1.20+)Helm v3+PostgreSQLRedisQdrantElasticsearchNeo4jShell / CLINetwork accessLocal filesystemMCP Server
Typical use
An internal knowledge management team needs a self-hosted base that answers with semantic, keyword and relational retrieval while keeping audit logs.
Not a fit if
  • Individuals who want a quick trial without running several databases
Website
apemind.ai ↗ set on GitHub
Maintenance
Commits in the last 6 monthslast commit 2026-10-29

What does this agent do, and when should you use it?

ApeRAG is a self-hosted Retrieval-Augmented Generation platform that unifies Graph RAG, vector search, full-text search, summary retrieval and vision search into one hybrid retrieval engine. Its graph layer is a deeply modified LightRAG implementation extended with entity normalization (entity merging) for cleaner knowledge graphs. Document ingestion is multimodal, with an optional MinerU-based parsing service called doc-ray (including GPU acceleration) for complex tables and formulas. Built-in AI agents speak MCP, can identify relevant collections, run searches and use web search when answering. It ships a FastAPI backend, a React frontend, Celery-based async task processing, a Docker Compose quickstart path and a Helm + KubeBlocks path for production Kubernetes deployments.

ApeRAG ingests uploaded documents through a multimodal parsing pipeline that extracts text, images and structured content; the optional doc-ray (MinerU) service improves parsing of tables, formulas and scientific layout. Parsed content is written into five index types — Vector, Full-text, Graph, Summary and Vision. The graph index runs a modified LightRAG that extracts entities and then merges normalized duplicates into a knowledge graph. At query time the hybrid retrieval engine fans out across those indexes, and an embedded AI agent consumes the results, using MCP tools to pick relevant collections, run searches and invoke web search. External surfaces include the FastAPI reference at http://localhost:8000/docs, an MCP endpoint at http://localhost:8000/mcp/, and a React admin UI at http://localhost:3000/web/ offering graph visualization, document management, audit logs and LLM model management.

  1. An internal knowledge management team needs a self-hosted base that answers with semantic, keyword and relational retrieval while keeping audit logs.
  2. Researchers or legal staff working with table- and formula-heavy PDFs want MinerU-enhanced parsing before building a queryable graph.
  3. Developers want to point an existing MCP client at their own knowledge base instead of writing retrieval glue code.
  4. Teams whose documents include charts and screenshots need vision indexing so non-text content is searchable too.
  5. Platform teams already running Kubernetes with KubeBlocks want a Helm-delivered, production-grade RAG service.
  6. AI application builders want a ready FastAPI backend and agent framework to customize rather than assembling a retrieval stack from scratch.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Ports
3000 · 8000
Environment variables
DOCRAY_HOST APERAG_API_KEY
Config files
.env deploy/aperag/values.yaml
Install notes cover
Docker

How do you install or deploy this agent?

Minimum requirements are 2 CPU cores, 4 GiB RAM, and Docker plus Docker Compose.

git clone https://github.com/apecloud/ApeRAG.git
cd ApeRAG
cp envs/env.template .env
docker-compose up -d --pull always

Then open the web interface at http://localhost:3000/web/ and the API docs at http://localhost:8000/docs.

For MinerU-backed parsing (optional; the GPU profile needs suitable hardware):

DOCRAY_HOST=http://aperag-docray:8639 docker compose --profile docray up -d
DOCRAY_HOST=http://aperag-docray-gpu:8639 docker compose --profile docray-gpu up -d

For production, use Helm. Prerequisites are Kubernetes v1.20+, kubectl and Helm v3+:

cd deploy/databases/
bash ./01-prepare.sh
bash ./02-install-database.sh
cd ../../
helm install aperag ./deploy/aperag --namespace default --create-namespace

If you already run PostgreSQL, Redis, Qdrant and Elasticsearch, skip the database scripts, edit the connection details in deploy/aperag/values.yaml, and run helm install directly.

How do you use this agent?

Create a collection and upload documents in the web UI at http://localhost:3000/web/, configure your LLM model and API key in settings, then run queries against the collection.

To expose the knowledge base to an external AI assistant over MCP, first generate an API key in ApeRAG settings:

{
  "mcpServers": {
    "aperag-mcp": {
      "url": "http://localhost:8000/mcp/",
      "headers": {
        "Authorization": "Bearer your-api-key-here"
      }
    }
  }
}

Authentication reads the HTTP Authorization header first and falls back to the APERAG_API_KEY environment variable. The MCP server exposes collection browsing, hybrid search and natural-language querying. For Kubernetes deployments, reach the services via port forwarding:

kubectl port-forward svc/aperag-frontend 3000:3000 -n default
kubectl port-forward svc/aperag-api 8000:8000 -n default

The HTTP API surface is documented at http://localhost:8000/docs.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

Outbound network access

Makes outbound requests; verify telemetry settings and model data routing on private repos.

External MCP tool bridge

Inherits capabilities of connected MCP servers; audit third-party servers before enabling.

What are this agent's strengths and limitations?

Pros
  • Five index types (Vector, Full-text, Graph, Summary, Vision) make hybrid retrieval broader than vector-only stacks.
  • A modified LightRAG core with entity normalization produces cleaner, merged knowledge graphs.
  • Native MCP endpoint at http://localhost:8000/mcp/ plugs into compatible AI assistants without custom glue.
  • Helm charts plus KubeBlocks database scripts give a documented production Kubernetes path.
  • Enterprise features are built in: audit logging, LLM model management and graph visualization.
Limitations
  • Requires several database services — PostgreSQL, Redis, Qdrant, Elasticsearch and Neo4j in the graph path — which raises operational burden.
  • The default doc-ray service needs 4+ CPU cores and 8GB+ RAM; GPU-accelerated parsing needs additional hardware.
  • The README does not enumerate supported LLM providers, so model wiring must be figured out in settings.
  • Graph retrieval rests on a deeply forked LightRAG, creating ongoing cost to track upstream changes.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
ApeRAG This agent 43 · Major gaps Self-hosted serviceFree + model costs ★ 1.3k 1mo ago Python —
M-flow Cognitive Memory Engine 57 · Major gaps CLIFree + model costs ★ 4.5k 3mo ago Python OpenAI API · Claude API
SimpleMem: Efficient Lifelong Memory for LLM Agents 47 · Major gaps Library / SDKFree + model costs ★ 3.9k 4mo ago Python ChatGPT · Claude Code
Mnemosyne 71 · Some gaps CLIFree ★ 3.7k 1d ago Python Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Major gaps
43/ 100 5-point scale 2.2 / 5
Trust 11/29
Reliability 5/14
Adaptability 9/18
Convention 8/18
Effectiveness 7/13
Verifiability 3/8
Why each dimension lost points
Trust11 / 29 · 1.9/5

Evidence shows API endpoints generally use required_user auth, publish enforces ADMIN role, and MCP tools call internal APIs with a Bearer key, giving basic access control; however MCP tools enable all indexes and rerank by default with no per-call user confirmation, API_BASE_URL is hardcoded to localhost:8000, data flows (documents, images, queries to external LLM/embedding services) are undocumented in README, the dependency list is large with no lockfile hashes or vulnerability audit, and rollback is only mentioned via KubeBlocks uninstall scripts with no application-level rollback, so each scores 1. source_attribution scores 2 because README explicitly credits LightRAG with paper, authors, MIT license and a modification changelog.

Reliability5 / 14 · 1.8/5

app.py registers global exception handlers and a health check, and flow tests cover cycle detection and reference validation, showing some self-consistency; but dependency ranges are wide (litellm>=v1.80.0, numpy>=2.1.3 unbounded), qdrant-client is conditionally pinned by Python version, the pyproject description mismatches the actual product (Text2SQL/KubeBlocks), and MCP tools return only string error/details without structured codes, so all score 1.

Adaptability9 / 18 · 2.5/5

README covers Docker Compose and Kubernetes/Helm deployment, optional GPU MinerU parsing, and MCP client config, with clear audiences (developers, operators), scoring 2; but capability boundaries (which indexes can be disabled, quotas, multi-tenant isolation) are thin, and MCP tool triggering relies on LLM choice without precise trigger rules, so capability_boundaries and trigger_precision score 1.

Convention8 / 18 · 2.2/5

README is well structured with quick start, K8s deployment, troubleshooting and acknowledgements, install notes are adequate, and LICENSE is full Apache-2.0, each scoring 2; but version 0.1.0 conflicts with the 'production-ready' claim, there is no CHANGELOG (only a LightRAG modification log), no FAQ, known limitations (resource requirements, docray enabled by default) are only scattered, maintenance responsibility points only to Discord/Feishu with no SLA or security disclosure channel, and publisher identity is unverified, so related items score 1.

Effectiveness7 / 13 · 2.7/5

MCP tools return structured SearchResult with asset_url construction pseudocode, usable directly by frontend and LLM, and hybrid retrieval plus multimodal indexing adds clear marginal value, scoring 2; but cost is high, requiring PostgreSQL, Redis, Qdrant, Elasticsearch, Neo4j and optional GPU parsing, with no cost estimate or lightweight alternative, so cost_benefit scores 1.

Verifiability3 / 8 · 1.9/5

Most README capability claims (five index types, entity normalization, audit logs) map to source modules (views, mcp/server.py, flow tests), giving some traceability; but there are no benchmarks, no performance or accuracy evidence, the test sample is a single flow validation file, cross-source corroboration is thin, and fact versus inference is not clearly separated in docs, so all score 1.

Risks and how to mitigate them
  • MCP tools enable all indexes and rerank by default with no per-call user confirmation; assess data egress scope before connecting external LLM clients.
  • API_BASE_URL is hardcoded to http://localhost:8000, so MCP tools may fail in non-local or containerized deployments; verify network and auth configuration.
  • The dependency list is large with wide version ranges and no lockfile hashes or vulnerability audit; run your own dependency security scan before production use.
  • README claims 'production-ready' but the version is 0.1.0, with no CHANGELOG, FAQ or security disclosure channel, and the publisher identity is unverified.
  • Deployment requires PostgreSQL, Redis, Qdrant, Elasticsearch, Neo4j and optional GPU parsing, with high resource cost and no cost estimate.
Evidence confidence: Low Reviewed Nov 29, 2026 Reviewed revision 8668010b5227
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/aperag.svg)](https://followagents.com/en/agents/aperag)
<a href="https://followagents.com/en/agents/aperag"><img src="https://followagents.com/badge/aperag.svg" alt="FARS review"></a>

FAQ

Does ApeRAG itself cost anything?
It is open source under Apache-2.0, so the software is free; you supply LLM model credentials and pay for usage.
Do I need Kubernetes to run it?
No. Docker Compose runs on a single machine with just 2 CPU cores and 4 GiB RAM; Kubernetes with Helm is the high-availability production option.
Can I reuse existing databases instead of the bundled ones?
Yes. Skip the KubeBlocks scripts, put your PostgreSQL, Redis, Qdrant and Elasticsearch connection details into deploy/aperag/values.yaml, and run helm install.
How does an MCP client authenticate?
It sends Authorization: Bearer <api-key>; if that header is absent, APERAG_API_KEY is used as a fallback. Keys are generated in ApeRAG settings.
How do I reach the deployment from outside the cluster?
Use kubectl port-forward for ports 3000 and 8000 locally, or configure Ingress in values.yaml for production exposure.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts