How to connect Opik by Comet to Claude

Connect Claude Web, Desktop and Cowork to Opik by Comet MCP. Find failed traces from yesterday, compare evaluation scores across recent runs, and more using natural language, with authentication handled for you.

Opik by Comet logoOpik by Comet
Api Key

Opik is Comet's open-source platform for tracing, evaluating, and monitoring LLM applications and AI agents. It helps teams find failures, measure quality, and improve production AI systems.

210 Tools

Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.

This guide walks you through the easiest and most secure way to connect your Opik by Comet account to Claude via Composio Connect, enabling it to find failed traces from yesterday, compare evaluation scores across recent runs, inspect slow spans in production traces, and more such actions on your behalf without compromising your account security.

Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Opik by Comet with

Connecting Opik by Comet to Claude Web, Desktop, and Cowork

Two ways to add the Composio connector. Pick whichever you prefer.

1. Add with one click

Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.

Add to Claude

Add manually

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

2. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Web, Desktop, and Cowork

3. Connect your Opik by Comet account

Back in Claude, ask it to connect to Opik by Comet or give it any Opik by Comet-related task.

For example, ask Claude to:

  • "Find failed traces from yesterday"
  • "Compare evaluation scores across recent runs"
  • "Inspect slow spans in production traces"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Claude, and your Opik by Comet account is ready to use.

What is the Opik by Comet Claude Connector, and what's possible with it?

The Opik by Comet MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Opik by Comet account. It provides structured and secure access to agent insights, evaluation workflows, alerts, annotation queues, and optimizer configurations, so your agent can investigate issues, manage evaluations, organize human review, and update agent configuration on your behalf.

  • Agent insights and issue tracking: Have your agent find issues affecting your AI projects, review their daily breakdowns, update their status, and trigger new insight reports.
  • Evaluation and automation management: Let the agent find project evaluators, create or update automation rules, inspect evaluator logs, and store assertion results for traces or spans.
  • Human annotation workflows: Direct your agent to create annotation queues, add traces or threads for review, search queue items, manage locks, and update queue settings.
  • Alert monitoring: Instruct your agent to find alerts, retrieve alert details, and access webhook payload examples for supported alert events.
  • Agent configuration and blueprints: Have your agent create and update optimizer configurations, retrieve blueprint details and history, map environments to blueprints, and apply configuration changes.

Troubleshooting

1. Why does Claude not use the Composio connector for Opik by Comet?

The connector can show as connected, but Claude must use it in each Opik by Comet conversation.

  • Click + at the lower left of the chat, or type /.
  • Hover Connectors.
  • Turn on Composio.
  • Ask Claude to connect to Opik by Comet again.

2. Why does Claude show an MCP server error before Opik by Comet connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Opik by Comet.

  • Check that the connector URL is https://connect.composio.dev/mcp.
  • Connectors run from Anthropic's cloud, so your device network is usually not the problem.
  • Add the connector again from Customize > Connectors, then ask Claude to connect Opik by Comet.
  • If it fails again, send the error and the ofid_ reference id to support@composio.dev.

3. Why does the Opik by Comet authorization link not work?

The Composio connector is one server. Your Opik by Comet account connects separately when Claude asks for it.

  • If the browser does not open, or the link expires, ask Claude to retry the Opik by Comet connection.
  • Composio creates a fresh Opik by Comet authorization link.
  • Open that link in your browser and finish the Opik by Comet sign-in.

4. Why do Opik by Comet actions fail after they worked before?

The Opik by Comet connection can expire or lose permission.

  • Ask Claude to inspect the Opik by Comet connection.
  • If the connection is unhealthy, disconnect it when Claude prompts you.
  • Reconnect the Opik by Comet account and retry the action.
  • If Claude shows a permission prompt, approve it before Claude changes data in Opik by Comet.
  • If the action still fails with a permission error, check that the connected account has that permission in Opik by Comet itself.

5. How do I switch to a different Opik by Comet account?

Claude can manage the Opik by Comet connection for you.

  • Ask Claude to disconnect or delete the current Opik by Comet account.
  • Ask Claude to connect Opik by Comet again.
  • Open the new Composio authorization link for Opik by Comet.
  • Sign in with the other Opik by Comet account in the browser.
  • After the account connects, ask Claude to retry the Opik by Comet task.

6. Why is my Opik by Comet connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your Opik by Comet connection works in Claude Web, Desktop, and Cowork.

  • In Claude Desktop, open Customize > Connectors.
  • Next to Composio, click ⋮ and click Clear cache.
  • If Opik by Comet tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
  • On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Opik by Comet.
TOOLS

Supported Tools

Every Opik by Comet action and event your agent gets out of the box.

Create optimizer config with initial blueprint

Creates a new optimizer config with initial blueprint.

Create blueprint from mask

Creates a new blueprint by applying a mask's changes on top of the latest blueprint for the project.

Create or update environments

Creates or updates environment-to-blueprint mappings

Retrieve blueprint by environment

Retrieves the blueprint associated with a specific environment

Retrieve blueprint by ID

Retrieves a specific blueprint by its ID

Retrieve blueprint by name

Retrieves a specific blueprint by its name within a project

Get blueprint history

Retrieves paginated blueprint history for a project

Retrieve delta by blueprint ID

Retrieves only the changes (delta) introduced in a specific blueprint

Retrieve latest blueprint

Retrieves the latest blueprint for a project

Set environment by blueprint name

Sets an environment to point to a blueprint identified by name

Add blueprint to existing config

Adds a new blueprint to an existing optimizer config.

Create Agent Insights job

Creates the Agent Insights job for a project, disabled: the daily schedule stays off until the job is enabled with PATCH.

Find agent insights issues

Returns a paginated list of issues that have at least one detail row within the requested time window, with metrics aggregated over the window

Get agent insights issue by id

Returns the issue together with its per-day breakdown within the requested time window

Get Agent Insights job

Returns the Agent Insights job for the (workspace, project), or 404 if none exists.

Trigger Agent Insights job

Triggers an immediate report run for an existing job (over the last 24h).

Update agent insights issue status

Moves an issue through its lifecycle: open, resolved or closed.

Update Agent Insights project guidance

Saves the project guidance sent to every Agent Insights run, creating the job (disabled) if the project has none.

Update Agent Insights job

Partially updates the Agent Insights job for a project (e.g.

Find alerts

Find alerts

Get Alert by id

Get Alert by id

Get webhook payload examples

Get webhook payload examples for all alert event types, optionally filtered by alert type

Add items to annotation queue

Add traces or threads to annotation queue

Create annotation queue

Create annotation queue for human annotation workflows

Create annotation queue batch

Create multiple annotation queues for human annotation workflows

Find annotation queues

Find annotation queues with filtering and sorting

Get all active locks for an annotation queue

Returns lock status for all actively locked items in the queue

Get annotation queue by id

Get annotation queue by id

Create or extend annotation queue item lock

Claim an annotation queue item for the current user, or extend an existing lock

Search annotation queue items

Returns queue membership metadata — how each item got into the queue — for the given item ids.

Update annotation queue

Update annotation queue by id

Batch ingestion of assertion results

Batch ingestion of assertion results for traces or spans

Attachments list for entity

Attachments list for entity

Create automation rule evaluator

Create automation rule evaluator

Get automation rule evaluator by id

Get automation rule by id

Get automation rule evaluator logs by id

Get automation rule evaluator logs by id

Update Automation Rule Evaluator by id

Update Automation Rule Evaluator by id

Find project Evaluators

Find project Evaluators

Create chat completions

Create chat completions

Check user access to workspace

Check user access to workspace

User's default workspace name

User's default workspace name

Create Dataset

Create a dataset or evaluation suite in the Default Project or a selected project.

Create Experiment

Create an experiment linked to a dataset and optionally to a project, dataset version, prompt versions, or optimization.

Create Feedback Definition

Create a numerical, categorical, or boolean feedback definition with type-specific details.

Create Project

Create a project in the connected Opik workspace.

Create Prompt

Create a prompt in the Default Project or a selected project, optionally with its initial template and metadata.

Create Prompt Version

Create an immutable version for a named prompt, creating the prompt when it does not already exist.

Create Spans

Create one or more Opik spans in a single batch.

Create Traces

Create one or more Opik traces in a single batch.

Create dashboard

Create a new dashboard in a workspace

Find dashboards

Find dashboards in a workspace

Get dashboard by id

Get dashboard by id

Run a saved widget query

Runs the query saved on an Ollie chart widget of this dashboard over the given date range and returns its rows.

Update dashboard

Update dashboard by id.

Batch update dataset items

Update multiple dataset items

Compare latest version with draft

Compare the latest committed dataset version with the current draft state.

Create dataset items from spans

Create dataset items from spans with enriched metadata

Create dataset items from traces

Create dataset items from traces with enriched metadata

Create version tag

Add a tag to a specific dataset version for easy reference (e.g., 'baseline', 'v1.0', 'production')

Expand dataset with synthetic samples

Generate synthetic dataset samples using LLM based on existing data patterns

Get dataset by id

Get dataset by id

Get dataset by name

Get dataset by name

Get experiment items stats for dataset

Get experiment items stats for dataset

Get dataset export job status

Retrieves the current status of a dataset export job

Get dataset item by id

Get dataset item by id

Get dataset items output columns

Get dataset items output columns

Get dataset version by hash

Get a specific version by its version hash

List dataset versions

Get paginated list of versions for a dataset, ordered by creation time (newest first)

Find dataset items with experiment items

Find dataset items with experiment items

Partially update dataset item by id

Partially update dataset item by id.

Restore dataset to a previous version

Restores the dataset to a previous version state by creating a new version with items copied from the specified version.

Retrieve dataset version by name

Get a specific version by its version name (e.g., 'v1', 'v373').

Start dataset CSV export

Initiates an asynchronous CSV export job for the dataset.

Update dataset by id

Update dataset by id

Update dataset version

Update a dataset version's change_description and/or add new tags

Create environment

Create environment

Find environments

Find environments for the workspace.

Get environment by id

Get environment by id

Update environment by id

Update environment by id

Batch update experiments

Update multiple experiments

Create experiment items

Create experiment items

Create and execute experiment

Creates experiments for each prompt variant and asynchronously processes all dataset items

Record experiment items in bulk

Record experiment items in bulk with traces, spans, and feedback scores.

Find experiment groups

Find experiments grouped by specified fields

Find experiment groups with aggregations

Find experiments grouped by specified fields with aggregation metrics

Find Feedback Score names

Find Feedback Score names

Get experiment by id

Get experiment by id

Get experiment item by id

Get experiment item by id

Update experiment by id

Update experiment by id

Export Dataset and Wait

Start an asynchronous CSV export of an Opik dataset and poll the strictly correlated job until it completes or fails.

Get feedback definition by id

Get feedback definition by id

Update feedback definition by id

Update feedback definition by id

Generate Report and Wait

Trigger report generation for an Opik project and wait for that exact report to complete.

Get Project

Return one project by its Opik project ID.

Retrieve project

Return one project by its exact name, optionally including project statistics.

Create insights view

Create a new insights view in a workspace

Find insights views

Find insights views in a workspace

Get insights view by id

Get insights view by id

Run a saved widget query

Runs the query saved on an Ollie chart widget of this insights view over the given date range and returns its rows.

Update insights view

Update insights view by id.

Get all dataset export jobs

Retrieves all export jobs for the workspace.

List Dataset Items

Return one page of items from a dataset, optionally at a version hash or tag.

List Datasets

Return one page of datasets, optionally filtered by name, project, prompt, or whether they have experiments or optimizations.

List Experiments

Return one page of experiments filtered by dataset, project, prompt, optimization, name, or deletion state.

List Feedback Definitions

Return one page of numerical, categorical, or boolean feedback definitions, optionally filtered by name or type.

Get LLM model profiles

Get the params each provider's unlisted models take, keyed by provider

Get LLM models

Get the list of supported LLM models grouped by provider

List Projects

Return one page of workspace projects, optionally filtered by a case-insensitive name match.

List Prompts

Return one page of workspace or project-scoped prompts, optionally filtered by name.

Get prompts by project

Get prompts scoped to a project

Get prompt versions

Get prompt versions

Get reports for a project

Returns a paginated list of reports, newest first.

List Spans

Return one page of spans for a project or trace, with optional type, text, and time filters.

List Traces

Return one page of traces for a project, with optional text, time, queue, and attachment-handling filters.

Get trace threads

Get trace threads

Get view versions

List the versions of a view, newest first

Get LLM Provider's ApiKey by id

Get non-secret metadata for a configured LLM provider key.

Find LLM Provider's ApiKeys

List non-secret metadata for configured LLM provider keys.

Manually evaluate spans

Manually trigger evaluation rules on selected spans.

Manually evaluate threads

Manually trigger evaluation rules on selected threads.

Manually evaluate traces

Manually trigger evaluation rules on selected traces.

Create optimization

Create an optimization.

Find optimizations

Find optimizations

Get optimization by id

Get optimization by id

Update optimization by id

Update optimization by id

Upsert optimization

Create or update an optimization.

Find alerts by project

Find alerts scoped to a project

Find dashboards by project

Find dashboards scoped to a project

Find datasets by project

Find datasets scoped to a project

Find experiments by project

Find experiments scoped to a project

Find optimizations by project

Find optimizations scoped to a project

Find Token Usage names

Find Token Usage names

Get Project KPI Cards

Gets KPI card metrics for a project

Get Project Metrics

Gets specified metrics for a project

Get Project Stats

Get Project Stats

Get recent activity for a project

Returns the most recent activity items across all entity types for a project, sorted by date descending.

Find Feedback Score names By Project Ids

Find Feedback Score names By Project Ids

Update project by id

Update project by id

Get prompt by commit

Get prompt by commit

Get prompt by id

Get prompt by id; when mask_id or environment is provided, requestedVersion is populated with the resolved version.

Get prompts by commits

Get prompts by prompt version commits

Get prompt version by id

Get prompt version by id

Get prompt version by sequential number

Get a prompt version by its sequential v number for the given prompt.

Restore prompt version

Restore a prompt version by creating a new version with the content from the specified version

Retrieve prompt version

Retrieve prompt version.

Retrieve prompt versions by ids

Retrieve a batch of prompt versions by their ids.

Set prompt version environment

Replace the prompt version's complete environments array.

Update prompt

Update prompt

Update prompt versions

Update one or more prompt versions.

List failures for a project

Returns failures for the given project id and type, most recent first.

Trigger report generation

Creates a pending report and triggers asynchronous generation via the orchestrator.

Get report preferences

Returns report preferences for a project, or null if none have been set.

Update report preferences

Enable or disable daily report generation for a project.

Create local runner job

Create a local runner job and enqueue it for execution

Get local runner job

Get a single local runner job's status and results

Get local runner job logs

Get log entries for a local runner job

Get local runner

Get a single local runner with its registered agents

List local runner jobs

List jobs for a local runner

List local runners

List local runners owned by the current user in the workspace

Get Service Toggles

Get Service Toggles

Add span comment

Add span comment

Add span feedback score

Add span feedback score

Batch update spans

Update multiple spans

Check whether a project has spans

Returns whether the project has at least one span matching the given scope.

Find Feedback Score names

Find Feedback Score names

Get span by id

Get span by id

Get span comment

Get span comment

Get span stats

Get span stats

Batch feedback scoring for spans

Batch feedback scoring for spans

Update span by id

Update span by id

Update span comment by id

Update span comment by id

Add thread comment

Add thread comment

Add trace comment

Add trace comment

Add trace feedback score

Add trace feedback score

Batch update threads

Update multiple threads

Batch update traces

Update multiple traces

Close trace thread(s)

Close one or multiple trace threads.

Check whether a project has traces

Returns whether the project has at least one trace matching the given scope.

Find Feedback Score names

Find Feedback Score names

Get thread comment

Get thread comment

Get trace by id

Get trace by id

Get trace comment

Get trace comment

Get trace stats

Get trace stats

Get trace thread

Get trace thread

Get trace thread stats

Get trace thread stats

Find Trace Threads Feedback Score names

Find Trace Threads Feedback Score names

Open trace thread

Open trace thread

Batch feedback scoring for threads

Batch feedback scoring for threads

Batch feedback scoring for traces

Batch feedback scoring for traces

Update thread

Update thread

Update thread comment by id

Update thread comment by id

Update trace by id

Update trace by id

Update trace comment by id

Update trace comment by id

Upsert Dataset Items

Create or update Opik dataset items, using each supplied item UUID as its stable upsert key.

Create view

Create a view with its first version

Create view version

Add a version to a view and make it current

Get view by id

Get a view with its current version

Get view version

Get one version of a view

Select view version

Make an existing version the one that renders.

Update view

Update the name and description of a view

Wait For Runner Job

Poll an existing Opik local runner job until it completes, fails, is cancelled, or times out.

Get workspace permissions for the authenticated user

Get workspace permissions for the authenticated user

Get costs summary

Get costs summary

Get cost daily data

Get cost daily data

Get metric daily data

Get metric daily data

Get workspace configuration

Get workspace configuration

Get workspace span metric

Gets a span metric time series aggregated across the workspace.

Get workspace token usage names

Gets the distinct span token usage key names aggregated across the workspace.

Get metrics summary

Get metrics summary

Upsert workspace configuration

Upsert workspace configuration

FRAMEWORKS

How to build Opik by Comet MCP Agent with another framework

FAQ

Frequently asked questions

Start with Opik by Comet.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Opik by Comet tool your agent needs.Free to start.

Start building