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
| Name | What it is | Required |
|---|---|---|
OPIK_API_KEY | Opik API key, for Opik Cloud and self-hosted Comet. Leave unset for open-source Opik. | No |
OPIK_WORKSPACE | Workspace name: the segment after comet.com/opik/ in your Opik URL. Leave unset for open-source Opik. | No |
OPIK_URL | Opik REST API base, for open-source Opik. | No |
COMET_URL_OVERRIDE | Base 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 projectwrite: 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
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
langsmith-observabilityHelps your agent trace, test and monitor LLM apps with LangSmith, so you can see each model call, score outputs and find where things go wrong.google-agents-cli-evalHelps your agent evaluate an AI agent with test datasets and scoring, then find out why answers fail.opik-external-integrationsGuides your agent to build an Opik integration in a separate project, such as a standalone plugin or a third-party tool.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.