# Ragmir MCP server

> Provides local, cited retrieval of code and documents to give coding agents precise project context via MCP.

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

## Install

### Claude Code

```sh
claude mcp add jcode-ragmir -- npx -y @jcode.labs/ragmir
```

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

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

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

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

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

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

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

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

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

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

## FAQ

### Is Ragmir private?

Yes, it is private by default with no account, telemetry, or hosted storage required.

### What kind of files can Ragmir index?

It can index code, specifications, and office documents, including scanned PDFs via optional local OCR.

### How does Ragmir handle citations?

Citations point to specific source lines, PDF pages, slides, sheet cells, or EPUB sections.
