Opik

v2.0.1Developer Toolsstable

An implementation of the Model Context Protocol for the Opik platform that provides a unified interface for accessing Opik's capabilities, supporting multiple transport mechanisms for flexible integration with IDEs and other environments.

generative-aimcp-servermodelcontextprotocoltypescript
Share:
204
Stars
0
Downloads
0
Weekly
0/5

What is Opik?

Opik is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to implementation of the model context protocol for the opik platform that provides a unified interface for accessing opik's capabilities, supporting multiple transport mechanisms for flexible integratio...

An implementation of the Model Context Protocol for the Opik platform that provides a unified interface for accessing Opik's capabilities, supporting multiple transport mechanisms for flexible integration with IDEs and other environments.

This server falls under the Developer Tools and Coding Agents categories on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • opik-integration-docs
  • get-prompts
  • create-prompt
  • get-prompt-version
  • save-prompt-version

Use Cases

Access Opik's LLM evaluation and monitoring capabilities.
Integrate AI evaluation tools into IDEs and coding environments.
Track generative AI model performance and quality metrics.
comet-ml

Maintainer

LicenseApache 2.0
Languagepython
Versionv2.0.1
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y opik-mcp

Manual Installation

npx -y opik-mcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Opik

The Opik MCP server connects AI coding assistants and IDEs to Comet's Opik platform for LLM evaluation, tracing, and monitoring, exposing six universal tools that let you read, list, and write Opik entities — including projects, traces, spans, experiments, prompts, and test suites — entirely through natural language. It supports both stdio and streamable-HTTP transports and works with Claude Code, Cursor, VS Code Copilot, and other MCP clients, making it easy to inspect evaluation results, log traces, and manage prompt versions without leaving your development environment.

Prerequisites

  • Python 3.13 or later
  • uv package manager installed (curl -LsSf https://astral.sh/uv/install.sh | sh)
  • A Comet/Opik account with an API key from comet.com/api/my/settings/
  • Your Opik workspace name (defaults to 'default' if omitted)
  • Claude Code, Cursor, or another MCP-compatible client
1

Install uv if not already available

uv is the recommended Python package runner for Opik MCP. Install it with the one-liner below.

curl -LsSf https://astral.sh/uv/install.sh | sh
2

Test the server manually

Run the server once from the command line to confirm your credentials work before connecting a client.

OPIK_API_KEY=your_api_key OPIK_WORKSPACE=your_workspace uvx opik-mcp@latest
3

Add to Claude Code via CLI

Register the Opik MCP server with Claude Code in one command, passing credentials as environment variables.

claude mcp add --transport stdio opik-mcp \
  --env OPIK_API_KEY=your_api_key \
  --env OPIK_WORKSPACE=your_workspace \
  -- uvx opik-mcp
4

Configure Claude Desktop

Add the server to claude_desktop_config.json (or ~/.claude.json for Claude Code) with the uvx command and your credentials in the env block.

{
  "mcpServers": {
    "opik-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": ["opik-mcp"],
      "env": {
        "OPIK_API_KEY": "your_api_key",
        "OPIK_WORKSPACE": "your_workspace"
      }
    }
  }
}
5

Restart your MCP client and verify

Restart Claude Desktop or your IDE. Ask the assistant to list your Opik projects or retrieve a recent trace to confirm the connection is working.

Opik Examples

Client configuration

claude_desktop_config.json / ~/.claude.json entry for Opik MCP using uvx with required credentials.

{
  "mcpServers": {
    "opik-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": ["opik-mcp"],
      "env": {
        "OPIK_API_KEY": "your_opik_api_key",
        "OPIK_WORKSPACE": "your_workspace_name"
      }
    }
  }
}

Prompts to try

Example prompts that exercise the six Opik MCP tools across reading, listing, and writing operations.

- "List all projects in my Opik workspace."
- "Show me the most recent 10 traces for project 'my-llm-app'."
- "Retrieve prompt version 3 of the 'summarization-prompt' prompt."
- "Create a new prompt version with the text: 'You are a concise summarizer. Summarize in 2 sentences.'"
- "What experiments have been run on test suite 'accuracy-v2'?"

Troubleshooting Opik

Server starts but returns 'Unauthorized' or '401' errors

Double-check OPIK_API_KEY by logging into comet.com/api/my/settings/ and regenerating a key if needed. Ensure OPIK_WORKSPACE matches exactly the workspace name shown in the Opik UI (case-sensitive).

ask_ollie or run_experiment tools are unavailable

These tools are only available on Comet Cloud (hosted Opik). Self-hosted Opik installations only support the read, list, write, and schema tools. Switch to the hosted service or use the other four tools directly.

Cursor times out on long ask_ollie calls

Cursor enforces a hard 60-second timeout per tool call. Use Claude Code instead, which has no documented timeout and keeps connections alive via heartbeats during long-running Opik operations.

Frequently Asked Questions about Opik

What is Opik?

Opik is a Model Context Protocol (MCP) server that implementation of the model context protocol for the opik platform that provides a unified interface for accessing opik's capabilities, supporting multiple transport mechanisms for flexible integration with ides and other environments. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Opik?

Install via npm with the command: npx -y opik-mcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Opik?

Opik works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Opik free to use?

Yes, Opik is open source and available under the Apache 2.0 license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "opik-mcp-server": { "command": "npx", "args": ["-y", "opik-mcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Opik?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides