Opik by Comet MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Opik by Comet MCP or direct API to inspect traces, analyze spans, review evaluations, and monitor LLM applications through natural language.

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

Try Opik by Comet now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Opik by Comet
Try asking
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

SETUP GUIDE

Connect Opik by Comet MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["opik"],
  mcp: true,
});
Create a session scoped to Opik by Comet and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Find failed traces from yesterday in my Opik project and summarize the main errors.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Opik by Comet request
SETUP GUIDE

Connect Opik by Comet API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["opik"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Opik by Comet
3

Run Opik by Comet tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Find failed traces from yesterday in my Opik project and summarize the main errors." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Opik by Comet tool calls through the session, and print the final answer

Why Use Composio?

AI Native Opik by Comet Integration

  • Supports both Opik by Comet MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable trace and evaluation tool execution
  • Rich coverage for reading, searching, and analyzing your Opik by Comet projects, traces, and spans

Secure API Key Auth

  • Connect Opik by Comet with your API key without writing custom authentication code
  • Central place to store, scope, and rotate Opik by Comet credentials
  • Per user and per environment credentials instead of hard-coded keys

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what ran, when, and on whose behalf

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Opik by Comet
  • Scoped, least privilege access to Opik by Comet resources
  • Full audit trail of agent actions to support review and compliance
FRAMEWORKS

Use Opik by Comet with any AI Agent Framework

Choose a Framework you want to connect Opik by Comet with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
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