# RAG for your documents MCP server

> Enables AI clients to search local document folders and verify answers against the indexed content using offline TF-IDF embedding.

- Repository: https://github.com/DevilsDev/rag-pipeline-utils
- Page: https://hostedmcp.org/servers/devilsdev/rag-mcp-server
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 3.9.1

## Install

### Claude Code

```sh
claude mcp add rag-mcp-server -- npx -y @devilsdev/rag-mcp-server
```

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

```json
{
  "mcpServers": {
    "rag-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@devilsdev/rag-mcp-server"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "rag-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@devilsdev/rag-mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "rag-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@devilsdev/rag-mcp-server"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.rag-mcp-server]
command = "npx"
args = ["-y", "@devilsdev/rag-mcp-server"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "rag-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@devilsdev/rag-mcp-server"
      ]
    }
  }
}
```

## Tools (4)

- `query`
- `answer`
- `question`
- `sources`

## FAQ

### Does this server require an internet connection or API keys?

No, it works entirely offline with no API key or database required.

### How does the answer checking work?

The check is lexical and does not make model calls, meaning it compares text directly rather than using an LLM to judge.

### What are the system requirements?

You must have Node.js version 22 or later installed.
