OpenBMB/UltraRAG
MCP-based RAG framework for building and testing multi-step pipelines in YAML
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
UltraRAG separates pipeline control flow from retrieval and generation. The MCP client runs sequences, branches, and loops defined in YAML and invokes functions exposed as MCP tools by independent servers. Extensions register at the function level, so a team can replace a component without rewriting the workflow. The repository separates servers/, src/, ui/, and examples/; the Python package targets 3.11–3.12 and includes Pydantic, PyYAML, Flask, and HTTPX among its dependencies.
The CLI commands build, run, and show ui accept --no-mcp. The local and default MCP modes share YAML and parameter files, but local mode executes registered tools and prompts without starting local MCP server processes. Local scripts need to register through UltraRAG_MCP_Server; switching modes does not preserve FastMCP-specific Context injection, authentication, middleware, or resources. A local pipeline that calls a remote MCP server still needs the mcp extra.
Key Capabilities & Differentiators
The main engineering benefit is that an iterative RAG flow can be inspected and modified at the pipeline level: a retrieval step can feed a conditional branch or repeat in a loop without embedding the control flow in the retriever. Standardized evaluation workflows bring benchmarks, metrics, and baselines together, while the Case Study view shows intermediate outputs so teams can distinguish poor retrieval from later reasoning or state-handling failures.
The UI synchronizes its canvas with code, supports parameter and prompt editing and knowledge-base management, and can expose a pipeline as a chat interface. v0.3.0.3 adds Qdrant vector search, a dedicated LiteLLM generation backend, and jieba tokenization; Milvus is another documented deployment option. v0.3.0.1 adds .doc and .wps parsing plus DOCX and Markdown chat exports. The Deep Research example pairs multi-step retrieval with AgentCPM-Report for long-form report generation.
Trade-offs & Limitations
Compared with wiring a vector store and an LLM API directly into an application, UltraRAG gives teams explicit, reusable workflow control, an evaluation path, and a visual editor. That pays off when workflows branch, loop, or change frequently. For a fixed retrieve-then-generate endpoint, the YAML and parameter files, tool registration, and runtime setup add maintenance that a small application may not need.
Local mode removes the need to manage local MCP server processes, but it is not a drop-in substitute for FastMCP lifecycle and integration features; plan to keep MCP mode if you depend on its Context, middleware, authentication, or resources. Local model serving keeps inference under your control at the cost of model and GPU operations. Remote serving reduces that burden but introduces network latency, service costs, and data-handling decisions. Apache-2.0 covers UltraRAG itself, not the terms of model weights, datasets, or external services.
Hardware & Deployment Guide
For a source install, start with Python 3.11 or 3.12 and uv sync for local execution. Use uv sync --extra mcp for default MCP execution or uv sync --all-extras for the full stack. The primary Dockerfile builds the frontend with Node.js 22 and uses a CUDA 12.9.1 Ubuntu 24.04 base with Python 3.12. The CPU base image needs no NVIDIA runtime and the UI listens on port 5050. Both base image variants include the MCP extra but may need retrieval or generation extras for local backends.
The full GPU container needs the NVIDIA Container Toolkit; the Linux GPU dependency set is locked to CUDA 12.9, including the vLLM cu129 wheel. Size the serving tier for the chosen model, context length, and concurrency rather than the UI alone. External inference can reduce local compute needs but does not make a deployment offline. Pin a Docker image digest rather than relying on moving tags. When upgrading, test memory and access behavior: v0.3.0.2 adds persistent user memory, project memory retrieval, and SQLite-backed demo authentication; v0.3.0.3 makes legacy knowledge bases private by default.
--no-mcp local modes reuse pipeline and parameter files; local mode skips local server processes.Research and platform teams that need to compare RAG backends, inspect failures in iterative workflows, and turn tested pipelines into self-hosted demos.
You only need a fixed retrieval-and-generation endpoint, or you expect the bundled UI to eliminate the work of operating model services, storage, and access controls.
Quick Start & Installation
## Direct installation python -m pip install --upgrade "pip>=26.2.2" "uv==0.13.7" ## Download curl -LsSf https://astral.sh/uv/0.12.0/install.sh | sh
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| UltraRAG ★ | 5.8k | +7 | Python | Apache-2.0 | MCP-based RAG framework for building and testing multi-step pipelines in YAML |
| auto-ontology | 19.1k | +3.7k | Python | Apache-2.0 | An ontology framework that grounds agent-generated SQL in reviewed business defi |
| llama_index | 53.1k | +104 | Python | MIT | A modular Python SDK for document ingestion, indexing, and RAG |
| langextract | 39.5k | +85 | Python | Apache-2.0 | Python SDK for extracting structured data with traceable source spans |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/OpenBMB/UltraRAG.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about UltraRAG
Can an existing Python application run a pipeline without starting local MCP server processes?
initialize(..., no_mcp=True) or PipelineCall(..., no_mcp=True) to run the same pipeline YAML and parameter files in local mode. Local scripts must register through UltraRAG_MCP_Server. FastMCP Context injection, authentication, middleware, and resources require MCP mode; mixing remote MCP servers into a local pipeline still requires the mcp extra.Does a self-hosted deployment need a GPU, and how should I size VRAM?
Can we use and modify UltraRAG commercially while keeping documents on premises?
When should I choose UltraRAG over calling a vector store and model API directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy