Skip to content
MCP Retrieval
Install guide · Cursor

Install MCP Retrieval for Cursor

Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

  1. Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.

  2. Paste the JSON config below.

  3. Replace placeholder secrets, then restart the client if it does not reload on its own.

~/.cursor/mcp.json
{  "mcpServers": {    "role1776-mcp-retrieval": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "ghcr.io/role1776/mcp-retrieval:0.1.10"      ],      "env": {        "MCP_TRANSPORT": "stdio",        "MCP_NAME": "mcp-retrieval",        "MCP_PATH": "/mcp",        "SERVER_PORT": "8080",        "SERVER_READ_TIMEOUT": "60s",        "SERVER_WRITE_TIMEOUT": "60s",        "LOG_MODE": "local",        "MAX_IDLE_CONNS_PER_HOST": "100",        "MAX_QUERIES": "10",        "DEFAULT_RESULTS": "5",        "MAX_RESULTS": "20",        "DEFAULT_IMAGES": "5",        "MAX_IMAGES": "10",        "DEFAULT_TIMEOUT_MS": "5000",        "MIN_TIMEOUT_MS": "1000",        "MAX_TIMEOUT_MS": "10000",        "DEFAULT_DOCUMENT_CHARS": "20000",        "MAX_DOCUMENT_CHARS": "20000",        "PROXY_SCHEME": "",        "PROXY_HOST": "",        "PROXY_PORT": "",        "PROXY_LOGIN": "YOUR_PROXY_LOGIN",        "PROXY_PASSWORD": "YOUR_PROXY_PASSWORD"      }    }  }}

Where the config lives

SystemPath
macOS~/.cursor/mcp.json
Windows%USERPROFILE%\.cursor\mcp.json
Linux~/.cursor/mcp.json