Skip to content
Skillpedia
βœ“ Official Β· Comet● Free and open sourceπŸ’»β˜οΈ Local / RemoteπŸ”‘ Needs an API keyCloud and servers

Opik MCP Server

Lets your AI agent read and score Opik traces, experiments, datasets and prompts from your LLM observability workspace.

225 stars on GitHubby CometLicense Apache-2.0Updated 26 days ago

How to install

This MCP has two ways to run: local or remote.

Pick one below. Local runs on your computer; remote runs in the cloud and needs nothing installed.

Paste in the terminal:

claude mcp add opik -- uvx opik-mcp

What to fill in

NameWhat it isRequired
OPIK_API_KEYOpik API key, for Opik Cloud and self-hosted Comet. Leave unset for open-source Opik.No
OPIK_WORKSPACEWorkspace name: the segment after comet.com/opik/ in your Opik URL. Leave unset for open-source Opik.No
OPIK_URLOpik REST API base, for open-source Opik.No
COMET_URL_OVERRIDEBase URL of a self-hosted Comet platform; Opik's API is <url>/opik/api.No

Ready! Now test it

Restart the app and paste one of these requests in the chat:

Which traces in project demo failed today?
Score trace 7f2e with 0.9 on helpfulness and the reason great recovery.

What it is

Opik is an open-source platform for observing and evaluating LLM apps, built by Comet. This server connects your assistant to your Opik workspace so it can list failed traces, log scores and save prompt versions from chat. Opik Cloud uses a hosted server with browser sign-in.

What it can do

  • list: list traces and other entities for a project
  • write: log changes such as scores
  • Read traces, experiments, datasets and prompts
  • Save prompt versions

When to use

  • β€ΊWhen you want to ask which traces failed today
  • β€ΊWhen you want to score a trace with a reason from chat
  • β€ΊWhen you want to save a new prompt version without leaving your editor

What you need

An Opik workspace. Opik Cloud signs in through the browser; self-hosted setups use environment variables and sometimes an API key. The installer needs uv.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

Frequently asked questions

Is Opik open source?

Yes. The readme calls Opik an open-source platform.

Do I need an API key for Opik Cloud?

No. The hosted server signs you in through the browser.

How do I set it up?

Run uvx opik@latest mcp configure. It finds your Opik, registers the server and checks the connection.

Which clients are supported?

Claude Code, Codex, Cursor, VS Code Copilot and opencode.

Can I use a self-hosted Opik?

Yes, with the local server run by uvx opik-mcp and environment variables such as OPIK_URL.

How can I test my settings?

Run the server with your env vars and the --check flag.

If it does not work

  • β€ΊStart a new session after registering the server, because clients load MCP servers at start.
  • β€ΊFor Claude Code on Opik Cloud, sign in from /mcp and choose Authenticate.
  • β€ΊReplace every placeholder such as the workspace name and run uvx opik-mcp@latest --check.

5 new skills a week. 1 minute to read.