# Darwin RAG [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Brightdotdev/DARWIN  
**GitHub Stars:** 3  
**Views:** 3  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/darwin-rag

## Description
Local-first RAG engine with MCP server for AI agent integration.

## Tools
Capabilities this server exposes over MCP:

- **search_darwin** — Query the knowledge base with hybrid/semantic/keyword search
- **search_lists** — Search structured data (CSVs, JSON arrays) by field values
- **get_search_results** — List saved search results
- **get_search_result_by_id** — Load a saved search result by filename
- **get_schema** — Inspect schemas for structured files (keys, types, record counts)
- **run_pipeline** — Ingest + index documents from a path or URL
- **purge_artifacts** — Delete pipeline artifacts for specific files
- **create_store** — Create a new isolated data store
- **list_files** — List all tracked files with pipeline status
- **file_status** — Detailed status for a single file across all stages
- **get_logs** — Query session logs (oldest first, INFO excluded)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "darwin-rag": {
    "command": "uvx",
    "args": ["darwin-rag"]
  }
}
```

## Documentation

## What Darwin RAG does

The Darwin RAG MCP server gives AI agents access to a locally managed retrieval system. It can ingest PDFs, Markdown, HTML, images through OCR, CSV files, Excel workbooks, ODS files, and URLs. Ingested content is processed into searchable indexes rather than being sent to a hosted knowledge-base service.

Darwin RAG supports separate data stores, which can be used to keep project or tenant data apart. It also provides pipeline and file-status operations, so an agent can inspect whether files have been processed, indexed, or otherwise completed.

## How it works

The Darwin RAG MCP server combines BM25 keyword retrieval with dense embedding search. Queries can use hybrid, semantic, or keyword retrieval, with support for reranking, diversity reranking, and structural penalties. The system can also synthesize answers through LiteLLM when a configured provider is available, including OpenAI, Anthropic, Gemini, and other providers listed by the project.

Processing and search can run locally and remain usable offline after the required models have been installed. Structured files have additional support through schema inspection and field-based searches. Session logs are retained in structured form and can be queried through MCP, with informational log entries excluded from the log query described by the project.

## Setup and configuration

The `required` preset installs the embedding model only; the recommended preset also includes reranking and OCR models. Setup validation and logging configuration are available through the administrative CLI.

Start a local subprocess transport with `darwin mcp`. For network access, use HTTP or SSE flags and provide the resulting endpoint to an MCP client. The README specifically documents configuration for Claude Desktop and Cursor, and the CLI can generate client configuration files. `DARWIN_BASE_DIR` can override the default data directory. At least one LLM provider key is needed for generated answers, but search and indexing work without a provider key.

## Tools and capabilities

Available MCP operations include:

- `search_darwin` for hybrid, semantic, or keyword knowledge-base queries.
- `search_lists` for searching structured data by field values.
- `get_search_results` and `get_search_result_by_id` for reviewing saved result sets.
- `get_schema` for inspecting structured-file keys, types, and record counts.
- `run_pipeline` for ingesting and indexing a path or URL.
- `purge_artifacts` for removing pipeline artifacts for selected files.
- `create_store` for creating an isolated data store.
- `list_files` and `file_status` for tracking pipeline state.
- `get_logs` for querying session history.

The package also includes command-line administration and a Python API for applications that need to use Darwin outside MCP.

## Limitations and notes

Generated answer synthesis depends on a configured LLM provider and its corresponding API key. Local setup also requires downloading or selecting the models needed for the chosen features. Search and indexing do not require an LLM provider key, but reranking, OCR, embeddings, and answer generation depend on the models selected during setup.

The project supports stdio, SSE, and streamable HTTP transports. The license is MIT with Attribution, as specified by the repository.

_Full upstream README: https://allmcps.com/mcp/darwin-rag/readme_

