Skip to content
VS Code

Opik MCP Server for VS Code

io.github.comet-ml/opik-mcp

Interact with Opik prompts, traces, datasets and metrics through the Model Context Protocol.

client:VS Code transport:stdio runtime:npm

Install Opik MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "opik-api-key",
      "description": "OPIK_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "opik-api-base-url",
      "description": "OPIK_API_BASE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "opik-workspace-name",
      "description": "OPIK_WORKSPACE_NAME",
      "password": true
    }
  ],
  "servers": {
    "opik-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "opik-mcp"
      ],
      "env": {
        "OPIK_API_KEY": "${input:opik-api-key}",
        "OPIK_API_BASE_URL": "${input:opik-api-base-url}",
        "OPIK_WORKSPACE_NAME": "${input:opik-workspace-name}"
      }
    }
  }
}

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

Opik MCP Server in other clients