Opik

v3.0.13
io.github.comet-ml/opik-mcp Checked 9 hours ago Published 5 days ago

Read and score Opik traces, experiments, datasets and prompts from your AI assistant.

Values you need

VariableWhat it is
OPIK_API_KEYoptional secret Opik API key, for Opik Cloud and self-hosted Comet. Leave unset for open-source Opik.
OPIK_WORKSPACEoptional Workspace name: the segment after comet.com/opik/ in your Opik URL. Leave unset for open-source Opik.
OPIK_URLoptional Opik REST API base, for open-source Opik.
COMET_URL_OVERRIDEoptional Base URL of a self-hosted Comet platform; Opik's API is <url>/opik/api.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add opik-mcp -- uvx opik-mcp==3.0.13
Add to claude_desktop_config.json
{
  "mcpServers": {
    "opik-mcp": {
      "args": [
        "opik-mcp==3.0.13"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "opik-mcp": {
      "args": [
        "opik-mcp==3.0.13"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "opik-mcp": {
      "args": [
        "opik-mcp==3.0.13"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.opik-mcp]
command = "uvx"
args = ["opik-mcp==3.0.13"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http opik-mcp https://www.comet.com/opik/api/v1/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "opik-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://www.comet.com/opik/api/v1/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "opik-mcp": {
      "url": "https://www.comet.com/opik/api/v1/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "opik-mcp": {
      "type": "http",
      "url": "https://www.comet.com/opik/api/v1/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.opik-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://www.comet.com/opik/api/v1/mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: read, list, write, schema, read_skill, send_feedback.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json