Skip to content
VS Code

rag-mcp for VS Code

io.github.masihmoafi/rag-mcp

Scoped hybrid search (BM25, embeddings, reranking) and grounded answers over local files and folders

client:VS Code transport:stdio runtime:pypi

Install rag-mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "openrouter-api-key",
      "description": "OPENROUTER_API_KEY",
      "password": true
    }
  ],
  "servers": {
    "rag-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ragmcp-cli"
      ],
      "env": {
        "OPENROUTER_API_KEY": "${input:openrouter-api-key}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

rag-mcp in other clients