R

Retrieval MCP

by hcarrillo001 · io.github.hcarrillo001/retrieval-mcp

Scores AI outputs for faithfulness, relevancy, and hallucination inside any MCP client, with custom metrics, golden sets, and run history with dashboards.

oci Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-hcarrillo001-retrieval-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "ANTHROPIC_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_BACKEND=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_MODEL=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_BUDGET_USD=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "JEV_MODEL=<YOUR_VALUE>",
        "-e",
        "JEV_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "SUPABASE_URL=<YOUR_VALUE>",
        "-e",
        "JEV_MAX_WORKERS=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_TOKEN=<YOUR_VALUE>",
        "-e",
        "TYPESAFE_API_KEY=<YOUR_VALUE>",
        "-e",
        "OPENROUTER_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_OUT=<YOUR_VALUE>",
        "-e",
        "SUPABASE_SERVICE_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_ALLOW_LOCAL_IMAGES=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_DECOMPOSER_BACKEND=<YOUR_VALUE>",
        "ghcr.io/hcarrillo001/retrieval-mcp:1.0.0"
      ]
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-hcarrillo001-retrieval-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "ANTHROPIC_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_BACKEND=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_MODEL=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_BUDGET_USD=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "JEV_MODEL=<YOUR_VALUE>",
        "-e",
        "JEV_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "SUPABASE_URL=<YOUR_VALUE>",
        "-e",
        "JEV_MAX_WORKERS=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_TOKEN=<YOUR_VALUE>",
        "-e",
        "TYPESAFE_API_KEY=<YOUR_VALUE>",
        "-e",
        "OPENROUTER_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_OUT=<YOUR_VALUE>",
        "-e",
        "SUPABASE_SERVICE_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_ALLOW_LOCAL_IMAGES=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_DECOMPOSER_BACKEND=<YOUR_VALUE>",
        "ghcr.io/hcarrillo001/retrieval-mcp:1.0.0"
      ]
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-hcarrillo001-retrieval-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "ANTHROPIC_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_BACKEND=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_MODEL=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_BUDGET_USD=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "JEV_MODEL=<YOUR_VALUE>",
        "-e",
        "JEV_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "SUPABASE_URL=<YOUR_VALUE>",
        "-e",
        "JEV_MAX_WORKERS=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_TOKEN=<YOUR_VALUE>",
        "-e",
        "TYPESAFE_API_KEY=<YOUR_VALUE>",
        "-e",
        "OPENROUTER_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_OUT=<YOUR_VALUE>",
        "-e",
        "SUPABASE_SERVICE_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_ALLOW_LOCAL_IMAGES=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_DECOMPOSER_BACKEND=<YOUR_VALUE>",
        "ghcr.io/hcarrillo001/retrieval-mcp:1.0.0"
      ]
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-hcarrillo001-retrieval-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "ANTHROPIC_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_BACKEND=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_MODEL=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_BUDGET_USD=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "JEV_MODEL=<YOUR_VALUE>",
        "-e",
        "JEV_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "SUPABASE_URL=<YOUR_VALUE>",
        "-e",
        "JEV_MAX_WORKERS=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_TOKEN=<YOUR_VALUE>",
        "-e",
        "TYPESAFE_API_KEY=<YOUR_VALUE>",
        "-e",
        "OPENROUTER_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_OUT=<YOUR_VALUE>",
        "-e",
        "SUPABASE_SERVICE_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_ALLOW_LOCAL_IMAGES=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_DECOMPOSER_BACKEND=<YOUR_VALUE>",
        "ghcr.io/hcarrillo001/retrieval-mcp:1.0.0"
      ]
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-hcarrillo001-retrieval-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "ANTHROPIC_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_BACKEND=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_MODEL=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_BUDGET_USD=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "JEV_MODEL=<YOUR_VALUE>",
        "-e",
        "JEV_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "SUPABASE_URL=<YOUR_VALUE>",
        "-e",
        "JEV_MAX_WORKERS=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_TOKEN=<YOUR_VALUE>",
        "-e",
        "TYPESAFE_API_KEY=<YOUR_VALUE>",
        "-e",
        "OPENROUTER_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_OUT=<YOUR_VALUE>",
        "-e",
        "SUPABASE_SERVICE_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_ALLOW_LOCAL_IMAGES=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_DECOMPOSER_BACKEND=<YOUR_VALUE>",
        "ghcr.io/hcarrillo001/retrieval-mcp:1.0.0"
      ]
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-hcarrillo001-retrieval-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "-e",
        "ANTHROPIC_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_BACKEND=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_JUDGE_MODEL=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_BUDGET_USD=<YOUR_VALUE>",
        "-e",
        "PORT=<YOUR_VALUE>",
        "-e",
        "JEV_MODEL=<YOUR_VALUE>",
        "-e",
        "JEV_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "SUPABASE_URL=<YOUR_VALUE>",
        "-e",
        "JEV_MAX_WORKERS=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_TOKEN=<YOUR_VALUE>",
        "-e",
        "TYPESAFE_API_KEY=<YOUR_VALUE>",
        "-e",
        "OPENROUTER_API_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_IN=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_PRICE_OUT=<YOUR_VALUE>",
        "-e",
        "SUPABASE_SERVICE_KEY=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_ALLOW_LOCAL_IMAGES=<YOUR_VALUE>",
        "-e",
        "RETRIEVAL_DECOMPOSER_BACKEND=<YOUR_VALUE>",
        "ghcr.io/hcarrillo001/retrieval-mcp:1.0.0"
      ]
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
ANTHROPIC_API_KEY secret No API key for the Anthropic judge backend, used by default.
RETRIEVAL_JUDGE_BACKEND No Judge backend to use: anthropic (default), ollama, or jev. Default: anthropic
RETRIEVAL_JUDGE_MODEL No Judge model to use, e.g. claude-sonnet-4-6 or deepseek-r1:70b.
RETRIEVAL_BUDGET_USD No Hard cap on judge spend in USD; 0 or unset means unlimited. Default: 0
PORT No Port for the HTTP server. Default: 8000
JEV_MODEL No Jev model name. Default: jev-latest
JEV_PRICE_IN No Jev input token price in $/1M tokens. Default: 0.042
SUPABASE_URL No Supabase project URL for shared run-history storage.
JEV_MAX_WORKERS No Maximum parallel Jev workers. Default: 8
RETRIEVAL_TOKEN No Bearer token required for a public HTTP endpoint.
TYPESAFE_API_KEY No TypeSafe API key for the Jev judge backend.
OPENROUTER_API_KEY No OpenRouter API key, needed for the Nemotron/OpenRouter vision judge.
RETRIEVAL_PRICE_IN No Override input token price in $/1M tokens for spend metering.
RETRIEVAL_PRICE_OUT No Override output token price in $/1M tokens for spend metering.
SUPABASE_SERVICE_KEY No Supabase service key for shared run-history storage.
RETRIEVAL_ALLOW_LOCAL_IMAGES No Set to 0 on a shared hosted server to prevent callers from reading local image files.
RETRIEVAL_DECOMPOSER_BACKEND No LLM backend used by Jev to split claims: anthropic, ollama, or openai.

Similar servers