# PinRAG

> PinRAG is an open-source MCP server. MCP RAG: index PDFs, repos, YouTube, Discord, text; optional YouTube vision; query with citations. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/ndjordjevic/pinrag
- **MCP Registry name:** io.github.ndjordjevic/pinrag
- **Listing updated:** 2026-11-13

## About

MCP RAG: index PDFs, repos, YouTube, Discord, text; optional YouTube vision; query with citations.

## Install

### Claude Code (Terminal)

```sh
claude mcp add pinrag --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- uvx pinrag
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pinrag": {
      "command": "uvx",
      "args": [
        "pinrag"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pinrag": {
      "command": "uvx",
      "args": [
        "pinrag"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "pinrag": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "pinrag"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "pinrag": {
      "command": "uvx",
      "args": [
        "pinrag"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "pinrag": {
      "command": "uvx",
      "args": [
        "pinrag"
      ],
      "env": {
        "OPENROUTER_API_KEY": "<OPENROUTER_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is PinRAG free?

Yes. PinRAG is open source, so you can use and self-host it for free.

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

Run this command in your terminal: claude mcp add pinrag --env OPENROUTER_API_KEY='<OPENROUTER_API_KEY>' -- uvx pinrag

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

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