# Ragmir MCP server

> Cited local retrieval for agents: search code, PDFs, and Office files with exact citations.

- Repository: https://github.com/jcode-works/jcode-ragmir
- Page: https://hostedmcp.org/servers/jcode-works/ragmir
- Transport: stdio
- Stars: 6
- License: AGPL-3.0
- Latest version: 6.6.0

## Install

### Claude Code

```sh
claude mcp add --env RAGMIR_PROJECT_ROOT=<RAGMIR_PROJECT_ROOT> ragmir -- npx -y @jcode.labs/ragmir
```

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

```json
{
  "mcpServers": {
    "ragmir": {
      "command": "npx",
      "args": [
        "-y",
        "@jcode.labs/ragmir"
      ],
      "env": {
        "RAGMIR_PROJECT_ROOT": "<RAGMIR_PROJECT_ROOT>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "ragmir": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@jcode.labs/ragmir"
      ],
      "env": {
        "RAGMIR_PROJECT_ROOT": "<RAGMIR_PROJECT_ROOT>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "ragmir": {
      "command": "npx",
      "args": [
        "-y",
        "@jcode.labs/ragmir"
      ],
      "env": {
        "RAGMIR_PROJECT_ROOT": "<RAGMIR_PROJECT_ROOT>"
      }
    }
  }
}
```

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

```toml
[mcp_servers.ragmir]
command = "npx"
args = ["-y", "@jcode.labs/ragmir"]

[mcp_servers.ragmir.env]
RAGMIR_PROJECT_ROOT = "<RAGMIR_PROJECT_ROOT>"
```

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

```json
{
  "mcpServers": {
    "ragmir": {
      "command": "npx",
      "args": [
        "-y",
        "@jcode.labs/ragmir"
      ],
      "env": {
        "RAGMIR_PROJECT_ROOT": "<RAGMIR_PROJECT_ROOT>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `RAGMIR_PROJECT_ROOT` | yes | no | Absolute path of the project whose Ragmir base the server reads |
