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
- FA score
- 43/100 · Major gaps
At a glance
- How it runs
- 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
- 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
- Source review
- 43/100 · Major gaps
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.
- An internal knowledge management team needs a self-hosted base that answers with semantic, keyword and relational retrieval while keeping audit logs.
- Researchers or legal staff working with table- and formula-heavy PDFs want MinerU-enhanced parsing before building a queryable graph.
- Developers want to point an existing MCP client at their own knowledge base instead of writing retrieval glue code.
- Teams whose documents include charts and screenshots need vision indexing so non-text content is searchable too.
- Platform teams already running Kubernetes with KubeBlocks want a Helm-delivered, production-grade RAG service.
- 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_HOSTAPERAG_API_KEY- Config files
.envdeploy/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 alwaysThen 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 -dFor 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-namespaceIf 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 defaultThe 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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- 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.
- 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?
Why each dimension lost points
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.
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.
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.
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.
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.
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.
- 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.
FAQ
Does ApeRAG itself cost anything?
Do I need Kubernetes to run it?
Can I reuse existing databases instead of the bundled ones?
How does an MCP client authenticate?
How do I reach the deployment from outside the cluster?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.