SuperAPI AI Directory

opik-mcp

Opik MCP Server is the official Model Context Protocol (MCP) server for Opik, the open-source LLM observability and evaluation platform built by Comet. It allows AI hosts such as Claude Code, Cursor, VS Code Copilot, Codex, opencode, or any MCP client to connect directly to an Opik workspace, read traces in chat, log scores, and save prompt versions. This tool is aimed at LLM engineers who already run Opik and want to drive Opik through the same AI assistant. It provides one-click installation commands, supports the Opik Cloud hosted server and self-hosted/open-source local servers, requires a uv environment, and does not require the Opik SDK.

Open website

About this tool

Opik MCP Server is the official Model Context Protocol (MCP) server for Opik. Opik is the open-source LLM observability and evaluation platform built by Comet. This server connects AI hosts (Claude Code, Cursor, VS Code Copilot, Codex, opencode, or any MCP client) directly to an Opik workspace, enabling users to read traces, log scores, and save prompt versions in chat. It is designed for LLM engineers who already run Opik and want to drive it with the same AI assistant.

Main capabilities:

  • Read traces
  • Log scores
  • Save prompt versions
  • Set up Opik in an AI client with a single command, including registering the MCP server, installing the Opik skill pack, and checking the connection.
  • Supports the Opik Cloud hosted server (no API key required, browser login) and self-hosted/open-source local servers (run via uvx, stdio communication).

Usage:

  • Quick start command:uvx opik-mcp@latest --help to view the complete steps.
  • Example installer command:uvx opik@latest mcp configure --ai-client claude-code --skills,--ai-client also accepts codex、cursor、vscode and opencode.
  • For Opik Cloud, the hosted server address is https://www.comet.com/opik/api/v1/mcp, and the client connects via HTTP and opens a browser login on first use.
  • For self-hosted/open-source Opik, the local server is started via uvx opik-mcp , and the client communicates via stdio. uv must be installed, and on first use it will fetch the package and Python 3.13 (if needed).
  • Environment variables are used to point to Opik:OPIK_URL、OPIK_API_KEY、OPIK_WORKSPACE , etc. The open-source version API is at /api, there is only one workspace default, and no OPIK_WORKSPACEis required. Self-hosted Comet has named workspaces, and OPIK_WORKSPACEmust be set.
  • Before registering, you can use --check to check the setup:OPIK_URL=http://localhost:5173/api uvx opik-mcp@latest --check.
  • Manual registration: Claude Code uses the claude mcp add command; Codex is configured in ~/.codex/config.toml ; Cursor is configured in ~/.cursor/mcp.json ; VS Code is configured in .vscode/mcp.json or the user mcp.json .
  • For scenarios where browser login cannot be completed, you can use an API key (from comet.com/api/my/settings/) with a local server pointing to Opik Cloud.

Use cases:

  • LLM engineers managing an Opik workspace directly in a coding assistant.
  • Reading traces, logging scores, and saving prompt versions through an AI assistant.
  • Integrating Opik in clients such as Claude Code, Cursor, VS Code Copilot, Codex, and opencode.

Limitations:

  • A uv environment is required.
  • Clients load the MCP server at session startup, so a new session must be started after installation.
  • Manual registration skips the Opik check and skill pack installation and is only suitable for clients not supported by the installer.
  • The MCP OAuth server is disabled by default for self-hosted Comet.
  • The server rejects placeholder workspaces such as <your-workspace> or ${input:OPIK_WORKSPACE}.
  • For detailed setup guides, troubleshooting, and FAQ, see comet.com/docs/opik/mcp-server。