# synrag

> synrag is a freemium MCP server for mcp data access. CPU-only hybrid search and cited context for documents, served over MCP to AI agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Linux, CLI, API, Self-hosted
- **Website:** https://ai.synlabs.pro
- **Repository:** https://github.com/synlabs-ai/synrag
- **MCP Registry name:** io.github.Synlabs-ai/synrag
- **Categories:** [mcp data access](https://ai-powered.com/categories/mcp-data-access)
- **Listing updated:** 2026-11-27

## About

Synrag gives an AI agent a searchable copy of your files without a GPU, a vector database or an embedding API. It parses PDFs, Office documents, HTML, Markdown and similar formats, builds a keyword index alongside its own small embedding model, and returns the sentences that answer a question under a token budget, each marked with a citation to its source, section and page.

It ships as a single binary plus an MCP server that can index a folder on first start. Documents can be added or replaced while searches keep running, and every change is journaled so an interrupted process recovers cleanly. Writes to the knowledge base stay disabled unless explicitly allowed.

It suits teams that want retrieval over internal documentation on ordinary servers and developers who want their agent to answer from local files. Community use is free up to one million chunks per organization; larger deployments and access-control features require a license.

## Features

- **Hybrid document search:** Combines BM25 keyword scoring, CPU-run embeddings and an optional reranker in each query.
- **Cited context packing:** Selects answer sentences within a token budget and attaches numbered source citations.
- **Broad file parsing:** Reads PDF, DOCX, XLSX, PPTX, ODF, HTML, Markdown, CSV, JSON and ZIP archives.
- **Live crash-safe updates:** Adds or replaces documents while searches run, with a journal that survives abrupt shutdowns.
- **MCP server for agents:** Exposes search and context tools to Claude, Cursor and other MCP clients with one config entry.
- **Offline license checks:** Licenses are signed files verified locally with no activation server or telemetry.

## Good for

- Give a coding or support agent answers grounded in a company knowledge base
- Search policy, contract or manual folders from Claude Desktop or Cursor
- Add cited document retrieval to an internal app without GPU infrastructure
- Index multilingual document sets, including low-resource languages, on a CPU server

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add synrag -- uvx synrag-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "synrag": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add synrag -- uvx synrag-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.synrag]
command = "uvx"
args = ["synrag-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user synrag uvx -- synrag-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "synrag": {
      "command": "uvx",
      "args": [
        "synrag-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, all 3 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `search_documents` (name suggests: reads): Hybrid search across indexed documents.
- `get_context` (name suggests: reads): Returns compact answer context with citations.
- `list_collections` (name suggests: reads): Lists available document collections.

## FAQ

### Does synrag need a GPU or an embedding API?

No. Its bundled embedding model runs on a CPU and nothing is sent to an external service.

### Is synrag open source?

The engine is a free binary under a community license, not open source. The Python SDK and MCP server are published as readable source under Apache 2.0.

### What does the free tier include?

The Community edition covers up to 1,000,000 chunks per organization, including the search engine, parsers, MCP server, Python SDK and commercial use.

### Which platforms are supported?

Linux x86-64 with glibc 2.30 or newer. Windows works through WSL2; macOS and ARM builds are described as upcoming.

### How do I add synrag to Claude Code?

Run this command in your terminal: claude mcp add synrag -- uvx synrag-mcp

### What are the best alternatives to synrag?

The closest alternatives to synrag are Rag MCP, Tinysearch and Magpie Search.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Rag MCP](https://ai-powered.com/mcp/rag-mcp-2): Rag MCP is an open-source MCP server for knowledge and memory.
- [Tinysearch](https://ai-powered.com/mcp/tinysearch): Tinysearch is an open-source MCP server for web search and scraping.
- [Magpie Search](https://ai-powered.com/mcp/magpie-search): Magpie Search is an open-source MCP server for mcp data access.

---
Source: https://ai-powered.com/mcp/synrag
