# How to connect Opik with ChatGPT

```json
{
  "title": "How to connect Opik with ChatGPT",
  "toolkit": "Opik MCP",
  "toolkit_slug": "opik_mcp",
  "framework": "ChatGPT",
  "framework_slug": "chatgpt",
  "url": "https://composio.dev/toolkits/opik_mcp/framework/chatgpt",
  "markdown_url": "https://composio.dev/toolkits/opik_mcp/framework/chatgpt.md",
  "updated_at": "2026-12-03T05:52:38.792Z"
}
```

## Introduction

### How to connect Opik MCP with ChatGPT
[ChatGPT](https://chatgpt.com/) can take action across your apps and files, stay with a project for hours, and turn a goal into finished materials like sheets, slides, and docs, not just answers.
In this guide, I will explain the easiest and most secure way to connect your Opik account to ChatGPT via Composio Connect, so it can read traces, inspect spans, manage datasets, review experiments, and update prompts through natural language commands without ever putting your account credentials at risk.
For exact tool slugs and parameter tables, see the [tool catalog in the Composio docs](https://docs.composio.dev/toolkits/opik_mcp).

## Also integrate Opik MCP with

- [Claude Cowork](https://composio.dev/toolkits/opik_mcp/framework/claude-cowork)

## TL;DR

### Why use Composio over default connectors?
- Apps with read and write access. Default connectors mostly can read your data. Composio's Opik integration lets ChatGPT take actions like creating drafts, sending updates, labeling records, and more.
- 2,000+ SaaS toolkits out of the box. Composio gives you instant access to a vast catalog of pre-built connectors, from Gmail and Slack to Notion, Linear, and Salesforce.
- One MCP server for every app. Connect any of your applications on demand through a single endpoint, rather than juggling a separate server for each app.
- Smart, context-aware tool loading. Unlike traditional MCP servers that dump every available tool into the LLM context window, Composio searches for and loads only the tools relevant to the task at hand.
- Cross-app automation. Chain actions across multiple apps in a single run - fetch a thread, summarize it in Notion, and post highlights to Slack without leaving the conversation.

## Connect Opik MCP to ChatGPT

### Prerequisites
- A ChatGPT account. We will use the [ChatGPT desktop app](https://openai.com/chatgpt/download/), and the steps are the same on the web.
- Access to the Opik workspace you want to connect.
- [Composio plugin](https://dashboard.composio.dev/login?cta_placement=toolkit-framework-chatgpt-composio-connect&next=%2F~%2Forg%2Fconnect%2Fclients%2Fchatgpt).
Note: Composio connects through OAuth. You will be asked to sign in and approve specific permissions. Review the permission screen carefully if you are using a work account.
### Step-by-step: Connect Opik to ChatGPT
### 1. Install the Composio plugin
Click the button. ChatGPT opens the Composio plugin page. Click Install plugin.
[Install in ChatGPT](https://chatgpt.com/plugins/plugin_asdk_app_6a58503580c08191b78cc5bdaf4eba6e)
You can also find it inside ChatGPT: go to Settings, open Plugins, search the marketplace for Composio, and click Install plugin.
### 2. Authenticate
After you install, ChatGPT asks you to authenticate with Composio. Log in and click Allow access to authorize ChatGPT to use your Composio account.
### 3. Start using Composio
That is it. Composio tools are now available in ChatGPT. Type @Composio followed by your request, for example @Composio find unread Opik messages and summarize them, and it will run the actions you authorize. On first use it asks you to authorize Opik.
### Option 2: Add Composio as an MCP server
If you cannot use the plugin marketplace, add Composio as a custom MCP server instead.
### 1. Open the MCP settings
In ChatGPT, go to Settings and open the Plugins section. Inside the Plugins page, click the MCP tab.
### 2. Add the server
Click Add server. In the Name field enter Composio, for Type select Streamable HTTP, and in the URL field paste the Composio MCP server URL:

```bash
https://connect.composio.dev/mcp
```

## What is the Opik MCP server, and what's possible with it?

The Opik 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 account. It provides structured and secure access to your LLM observability data and Opik agent skills, so your agent can find and review observability records, create and update monitoring data, annotate results, load Opik skills, and check supported data formats on your behalf.
- Explore observability data: Have your agent list and read traces, spans, threads, datasets, experiments, prompts, scores, and annotation queues using relevant filters.
- Manage monitoring records: Let the agent create or update datasets, experiments, prompts, scores, annotation queues, and other supported Opik data.
- Annotate evaluation results: Direct your agent to add feedback and annotations to help review and improve LLM outputs.
- Load Opik agent skills: Instruct your agent to read an Opik skill and use its guidance for coding and observability tasks.
- Work with supported formats: Have your agent check the schema and validated example for a supported write or filtered list operation before preparing data.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `OPIK_MCP_LIST` | List | List Opik entities with optional filters and pagination. Output is a pipe-delimited table with id, name, and a few entity-specific columns, plus a pagination footer when more pages exist. When filters apply, the first line echoes what was applied. Use read() to get full details on any specific item. Project-scoped types require their parent: - trace: project_id or project_name - span: project_id or project_name (searches spans across the project) - thread: project_id or project_name - agent_insights_issue: project_id or project_name (Diagnostics issues, open ones by default; columns: severity, status, total_occurrences, latest_count, last_seen) - score_name: project_id or project_name (the project's feedback score names — trace, span and thread scores together, paged, no id) - online_rule: project_id or project_name (the automation rules scoring this project's traces) - annotation_queue: project_id or project_name; takes `name`, `filters`, `sort` - project_metric: project_id or project_name, plus metric_type — one metric over time. Rows are time buckets, so page/size/sort are refused. - dataset_item: dataset_id, or experiment_ids to compare runs case by case. Filter the dataset's own cases on data., full_data, tags, source, trace_id (no sort); read('dataset_item', id) is one case whole - prompt_version: prompt_id Workspace-wide types (project, experiment, prompt, dataset) accept an optional `name` substring filter. trace, span, thread, experiment and dataset_item accept an OQL `filters` string; all but dataset_item also take a `sort`, and trace, span, thread take a `since`/`until` window and free-text `search`. |
| `OPIK_MCP_READ` | Read | Read any Opik entity by ID, name, or opik:// URI. A UUID `id` costs one API call. A name also works for project, experiment, prompt, dataset and annotation_queue: two calls, and a name several records share returns them as candidates to retry by id. Special shapes: - project: returns {project, summary, vocabulary, contains, url} — the week's figures against the 7 days before (SDK traffic only, as the Logs cards show, though the UI opens on 30 days), the score names and usage keys to filter on, and the freshest experiment / dataset / prompt version / run. `since`/`until` move the summary's window; the rest is current. - trace: returns {trace, spans, spansTruncated} with up to 200 spans inlined, their bodies slim, and spanBodies saying what the cut took. - prompt: returns {prompt, versions, versionsTruncated} with up to 100 versions. - annotation_queue: annotator_view.html comes back as html_chars, with the fields=['annotator_view.html'] call that returns it whole. - thread: returns {thread, messages, messagesTruncated, messageBodies} — each message is one turn's trace input/output + a trace_id to read('trace', id). Bodies are slim, the thread's own first/last message included, since those are copies of the first and last turn. Needs project scope: pass a thread link/URI, or project_id/project_name. - An inlined collection longer than what fits sets its …Truncated flag and adds moreSpans / moreMessages / moreVersions: the count, and the exact list(...) call that continues from where the inlined part stopped. - agent_insights_issue: returns {issue, example_trace_ids, details, url, trace_url_template} — the Diagnostics issue with cause and suggested fix, the deduped ids of traces that exhibit it (open one with read('trace', id)), the per-day breakdown, the issue's Diagnostics page link, and a template for linking any example trace (both links omitted when the Opik URL or the session's workspace is unknown). Needs project scope like thread. - All others: the flat record from /v1/private/{entity}/{id}. Output is a one-line `[read: …]` header (entity_type, id, size in tokens) followed by the record as compact JSON. The record you asked for is never truncated: a large answer is large, and narrowing is done by asking a narrower question — `fields` to name the paths you want back, a span rather than its trace, a filtered `list` rather than a composite read. A `fields` answer says in its header that it was projected. The children a composite read inlines are the exception. Their bodies come back slim: a field over ~10 KB is cut and base64 images are replaced with "[image]", which is what keeps one attachment from costing more than the other 199 spans together. The read says so in `spanBodies` / `messageBodies`, and the named child is whole again through its own read('span', id) or read('trace', trace_id). |
| `OPIK_MCP_READ_SKILL` | Read skill | Load one Opik agent skill — the same skills Opik publishes for coding agents. Use it when the skill you need is not already in your context. WHEN TO CALL: before instrumenting, evaluating, or debugging with Opik — no local copy in the project, nothing fetched earlier this session. Match the user's task to a skill: - opik: "why aren't my traces showing up", "how do I add metadata to a span", "how do I version a prompt" — any SDK lookup. To instrument, use opik-instrument. - opik-annotate: "build a custom annotator view", "set up an annotation queue". - opik-compare: "did my fix work", "compare against the baseline", "run the regression suite", "why did quality drop", "which cases regressed", "compare these two experiments". - opik-diagnose: "what is broken in production", "which traces need attention", "find failing or slow traces", "triage my agent". - opik-evaluate: "evaluate my agent", "measure quality", "build an eval", "write an LLM judge", "how good is my RAG" — a first experiment with scores. - opik-explain: "why did this trace fail", "explain this trace", "debug this trace", "why is my agent slow or wrong". - opik-instrument: "instrument my code", "add opik tracing", "add observability", "trace my agent". - opik-online-eval: "score production traces", "monitor hallucinations in prod", "take this judge live", "set up an online evaluation rule". - opik-optimize: "optimize this prompt", "improve my system prompt", "tune the prompt against my dataset", "run the prompt optimizer". - opik-test: "turn this into a test", "add a regression case for this trace", "make sure this doesn't happen again", "capture this failure". - opik-verify: "is this safe to ship", "can I merge this", "go/no-go on this change", "gate this release" — a ship/hold verdict against a release policy. `skill_name` accepts any of these forms: - `opik` — the skill itself - `/references/.md` — one document inside a skill; a SKILL.md ends with the list of its references |
| `OPIK_MCP_SCHEMA` | Schema | Return the JSON Schema, OAuth scope, and one validated example for a write operation's `data` payload, or — for `list.trace` / `list.span` / `list.thread` / `list.experiment` — the list tool's filterable fields with their operators and its sortable fields. Pure lookup — no backend call. |
| `OPIK_MCP_SEND_FEEDBACK` | Send feedback | Send feedback about this MCP server (opik-mcp) to the Opik team at Comet. It is not for the user's Opik data. Call it when an opik-mcp tool failed, gave a wrong or confusing result, or cannot do what the user needs, or when the user asks to send feedback. Do not call it when the task went well, to report progress, or as a test. Send at most one report per task. Describe the problem in general terms: no trace content, names, IDs or secrets from the user's data. The report carries the workspace name and the user's Comet login. |
| `OPIK_MCP_WRITE` | Write | Create, update, or annotate Opik entities. The `operation` field selects which entity/verb pair to invoke; `data` carries the payload for that operation (single object, or array up to 1000 for batch). Operations: - trace.create: Log a single trace (or a batch). Sets up the parent for spans/scores/comments. (batch ok) - trace.update: Finalize or amend an existing trace by id. (batch ok) - span.create: Log a single span on an existing trace (or a batch).; required: trace_id (batch ok) - score.create: Attach a numeric feedback score to a trace, span, or thread.; required: target, target_id (batch ok) - comment.create: Attach a free-text comment to a trace, span, or thread.; required: target, target_id - prompt_version.save: Save a new prompt version. Creates the prompt by name if missing; BE auto-assigns the commit when omitted. - dataset.create: Create a dataset. Pass type='test_suite' for an evaluation suite (items carry assertions and run as tests); default is a plain dataset. - dataset_item.upsert: Upsert items into a dataset or test suite; data is the envelope {dataset_name\|dataset_id, items: [...]}.; required: dataset_name, dataset_id - experiment.create: Create an experiment scoped to a dataset or test suite.; required: dataset_name, dataset_id - experiment_item.create: Attach trace + dataset_item rows to an experiment. Always the array envelope.; required: experiment_id, dataset_item_id, trace_id (batch ok) - thread.close: Close a thread (mark it inactive/done). Pass thread_id + project (project_name or project_id). - thread.open: Reopen a previously closed thread (mark it active). Pass thread_id + project (project_name or project_id). - agent_insights_issue.resolve: Mark a Diagnostics (Agent Insights) issue resolved — the failure it groups has been dealt with. It leaves the default issue list and shows under status='resolved'. Pass issue_id + project_id or project_name. Do this only when the user asks: whether a failure is fixed is their call, not an inference from the traces. - agent_insights_issue.close: Mark a Diagnostics (Agent Insights) issue closed — not worth acting on, as opposed to fixed. It leaves the default issue list and shows under status='closed'. Pass issue_id + project_id or project_name. Do this only when the user asks. - agent_insights_issue.reopen: Put a resolved or closed Diagnostics (Agent Insights) issue back on the open list, for a failure that came back or was closed too early. Pass issue_id + project_id or project_name. - agent_insights_job.enable: Turn Diagnostics (Agent Insights) on for a project: it then scans daily and groups recurring failures into issues you can read with list('agent_insights_issue', …). Pass project_id or project_name. Idempotent — an existing job is switched back on. Pair it with agent_insights_job.trigger to scan now instead of waiting for the nightly run. Refused when the deployment has no Diagnostics. - agent_insights_job.trigger: Run a Diagnostics (Agent Insights) scan for a project now, over the last 24 hours, instead of waiting for the nightly run. Fire and forget: the response says where to watch it, and issues appear in list('agent_insights_issue', …) once the run finishes (minutes). Needs Diagnostics enabled for the project — see agent_insights_job.enable. - annotation_queue.create: Create a project's annotation queue of traces or threads to review; annotator_view sets a custom HTML view, read_skill('opik-annotate') first. - annotation_queue.update: Change an annotation queue by id; only the fields passed change. clear_annotator_view removes its custom view. Notes: - `data` shape: object for single, array for batch (where supported). Always-envelope ops (dataset_item.upsert, experiment_item.create) take their list inside the envelope, not at the top level. - `dry_run=true`: validate + check authorization without calling the backend. Returns {dry_run, would_call: {method, path, body_size}}. - A schema mismatch returns `validation_failed` with the issues and one corrected example; `schema(operation)` returns the JSON Schema. |

## Supported Triggers

None listed.

## Creating MCP Server - Stand-alone vs Composio SDK

Once connected, ChatGPT can access the Opik MCP server via Composio to run actions that you authorize, directly in your workspace.

## Complete Code

None listed.

## How to build Opik MCP Agent with another framework

- [Claude Cowork](https://composio.dev/toolkits/opik_mcp/framework/claude-cowork)

## Related Toolkits

- [Composio](https://composio.dev/toolkits/composio) - Composio is an integration platform that connects AI agents with hundreds of business tools. It streamlines authentication and lets you trigger actions across services—no custom code needed.
- [Perplexityai](https://composio.dev/toolkits/perplexityai) - Perplexityai delivers natural, conversational AI models for generating human-like text. Instantly get context-aware, high-quality responses for chat, search, or complex workflows.
- [Ai ml api](https://composio.dev/toolkits/ai_ml_api) - Ai ml api is a suite of AI/ML models for natural language and image tasks. It provides fast, scalable access to advanced AI capabilities for your apps and workflows.
- [AI/ML API MCP](https://composio.dev/toolkits/ai_ml_api_mcp) - AI/ML API MCP is a unified gateway to hundreds of AI models and generation APIs. It gives teams one place to compare models, run multimodal jobs, and track usage.
- [Aivoov](https://composio.dev/toolkits/aivoov) - Aivoov is an AI-powered text-to-speech platform offering 1,000+ voices in over 150 languages. Instantly turn written content into natural, human-like audio for any application.
- [All images ai](https://composio.dev/toolkits/all_images_ai) - All-Images.ai is an AI-powered image generation and management platform. It helps you create, search, and organize images effortlessly with advanced AI capabilities.
- [AllModels](https://composio.dev/toolkits/allmodels) - AllModels is a unified API for text-to-speech, speech-to-text, realtime voice, and voice cloning across AI providers. It gives developers one consistent way to build and manage voice features.
- [AltText.ai MCP](https://composio.dev/toolkits/alttext_ai_mcp) - AltText.ai MCP is a hosted image alt text service for generating, translating, and managing accessible image descriptions. It helps teams improve image accessibility and SEO without building custom AI workflows.
- [AltTextLab](https://composio.dev/toolkits/alt_text_lab) - AltTextLab is an AI service that generates accessible, SEO-aware alt text for images. It helps teams make image content easier to understand, index, and publish.
- [Anam MCP](https://composio.dev/toolkits/anam_mcp) - Anam MCP is Anam's hosted interface for building and managing real-time AI avatar personas. It brings avatars, voices, LLMs, knowledge, tools, meetings, and analytics together in one integration.
- [Anthropic administrator](https://composio.dev/toolkits/anthropic_administrator) - Anthropic administrator is an API for managing Anthropic organizational resources like members, workspaces, and API keys. It helps you automate admin tasks and streamline resource management across your Anthropic organization.
- [Api labz](https://composio.dev/toolkits/api_labz) - Api labz is a platform offering a suite of AI-driven APIs and workflow tools. It helps developers automate tasks and build smarter, more efficient applications.
- [Apiframe](https://composio.dev/toolkits/apiframe) - Apiframe is an API platform for generating and managing AI images, videos, music, uploads, assets, jobs, and custom LoRAs. It gives developers one clean API for creative AI workflows without juggling multiple model providers.
- [Apipie ai](https://composio.dev/toolkits/apipie_ai) - Apipie ai is an AI model aggregator offering a single API for accessing top AI models from multiple providers. It helps developers build cost-efficient, latency-optimized AI solutions without juggling multiple integrations.
- [Arize AX](https://composio.dev/toolkits/arize_ax) - Arize AX is an AI engineering platform for tracing, evaluating, and improving AI applications. Use it to debug LLM behavior, compare experiments, and improve production AI quality.
- [Artificial Analysis](https://composio.dev/toolkits/artificial_analysis) - Artificial Analysis is an independent benchmarking platform for AI models and API providers. Use it to compare model intelligence, coding, math, pricing, latency, throughput, and arena rankings.
- [AssemblyAI](https://composio.dev/toolkits/assemblyai) - AssemblyAI is a speech-to-text and audio intelligence API for uploaded or hosted media. Use it to turn audio and video into accurate transcripts, summaries, and insights.
- [AssemblyAI MCP](https://composio.dev/toolkits/assemblyai_mcp) - AssemblyAI MCP is a hosted speech-to-text and audio intelligence service for transcribing and analyzing media. It helps teams turn audio and video into searchable, translated, actionable transcripts.
- [Astica ai](https://composio.dev/toolkits/astica_ai) - Astica ai provides APIs for computer vision, NLP, and voice synthesis. Integrate advanced AI features into your app with a single API key.
- [Avoma](https://composio.dev/toolkits/avoma) - Avoma is an AI meeting assistant for recording, transcribing, analyzing, and managing meetings, calls, notes, scorecards, and conversation intelligence. It helps teams turn conversations into searchable notes, follow-ups, coaching insights, and revenue intelligence.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Opik MCP?

With a standalone Opik MCP server, the agents and LLMs can only access a fixed set of Opik tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Opik and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with ChatGPT?

Yes, you can. ChatGPT fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Opik tools.

### Can I manage the permissions and scopes for Opik while using Tool Router?

Yes, absolutely. You can configure which Opik scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Opik data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
