Skip to content
Cursor

Opik MCP Server for Cursor

io.github.comet-ml/opik-mcp

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

client:Cursor transport:stdio runtime:npm

Install Opik MCP Server in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "opik-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "opik-mcp"
      ],
      "env": {
        "OPIK_API_KEY": "<OPIK_API_KEY>",
        "OPIK_API_BASE_URL": "<OPIK_API_BASE_URL>",
        "OPIK_WORKSPACE_NAME": "<OPIK_WORKSPACE_NAME>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Opik MCP Server in other clients