Best for
- LLM engineers already using Opik
- Developers who want to manage LLM observability directly from their coding environment
- Workflows needing deep integration with the Opik platform
Opik MCP Server is the official MCP server for Opik, designed for LLM observability and evaluation. It offers a comprehensive tool set and good client support, but some advanced features are limited, and security configuration requires attention.
Strongest · Maintenance 18/20 Weakest · Reliability 8/20
Static review · not runListed 2026-08-07
Read the FMRS scoring method →Runtime:Python 3.13+
OPIK_API_KEY
Required Opik API key for authenticating all reads/writes; get it from comet.com/api/my/settings/.
OPIK_WORKSPACE
Opik workspace name (optional, defaults to 'default'); cloud users with a named workspace should set it to the lowercase name from the URL.
COMET_WORKSPACE
Deprecated alias for OPIK_WORKSPACE; OPIK_WORKSPACE wins if both are set.
COMET_WORKSPACE_ID
Optional workspace UUID stamped into analytics events for stable BI joins.
COMET_URL_OVERRIDE
Self-hosted Comet host, defaults to https://www.comet.com.
OPIK_URL
Opik API base URL (derived from COMET_URL_OVERRIDE by default); set only if Opik lives elsewhere.
OPIK_DEFAULT_PROJECT_NAME
When set, instructs the LLM to pass this project_name on every tool call unless the user names another.
OPIK_MCP_TRANSPORT
Transport mode: stdio (default) or streamable-http.
OPIK_MCP_HOST
uvicorn bind host for HTTP mode, default 127.0.0.1.
OPIK_MCP_PORT
uvicorn bind port for HTTP mode, default 8080.
OPIK_MCP_RELOAD
Enables uvicorn --reload in dev, default false.
OPIK_MCP_AS_URL
OAuth Authorization Server URL, required for MCP hosts to bootstrap OAuth over HTTP transport.
OPIK_MCP_RESOURCE_URI
Canonical public URI of this server, advertised in protected-resource metadata.
OPIK_MCP_LOG_LEVEL
stderr log level, default INFO; set DEBUG to troubleshoot.
OPIK_MCP_AUTO_APPROVE
Whether Ollie's mid-stream writes auto-approve (default enabled); set disabled to require per-action confirmation.
OPIK_MCP_ELICIT_TIMEOUT_SECONDS
How long Ollie's confirmation prompt may wait, default 60 seconds.
OPIK_MCP_POD_READY_TIMEOUT_S
Ollie pod cold-start poll cap, default 120 seconds.
OPIK_MCP_POD_READY_INTERVAL_S
Cold-start poll interval, default 2 seconds.
OPIK_MCP_HEARTBEAT_INTERVAL_S
Heartbeat cadence, default 15 seconds, emitting progress notifications to keep host timeouts at bay.
OPIK_MCP_STREAM_IDLE_TIMEOUT_S
How long ask_ollie waits before aborting on pod silence, default 300 seconds.
OPIK_MCP_ANALYTICS_ENABLED
Anonymous telemetry switch, default true; set false to opt out.
OPIK_MCP_ANALYTICS_URL
Telemetry endpoint, default https://stats.comet.com/notify/event/.
OPIK_MCP_ANALYTICS_ENVIRONMENT
Environment tag (prod/staging/dev), default prod.
OPIK_MCP_ANALYTICS_SOURCE
Event source label, default comet.com; on-prem installs should override to empty string.
OPIK_MCP_ANALYTICS_CONNECT_TIMEOUT_S
Telemetry HTTP connect timeout, default 5 seconds.
OPIK_MCP_ANALYTICS_TOTAL_TIMEOUT_S
Telemetry HTTP total timeout, default 10 seconds.
curl -LsSf https://astral.sh/uv/install.sh | sh)OPIK_API_KEY from your Opik workspace; optionally set OPIK_WORKSPACE (defaults to default)uvx opik-mcp and set environment variables as shown{
"mcpServers": {
"opik-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["opik-mcp"],
"env": {
"OPIK_API_KEY": "<your-key>",
"OPIK_WORKSPACE": "<your-workspace>"
}
}
}
}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"opik-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"opik-mcp"
],
"env": {
"OPIK_API_KEY": "<your-key>",
"OPIK_WORKSPACE": "<your-workspace>"
}
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add opik-mcp -e 'OPIK_API_KEY=<your-key>' -e 'OPIK_WORKSPACE=<your-workspace>' -- uvx opik-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
After restarting the host, run /mcp in Claude Code — opik-mcp should appear as connected. Then ask "list my Opik projects" in chat; Claude should call the list tool and return your workspace's projects.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
Opik MCP Server is the official Model Context Protocol (MCP) server for Opik, the open-source LLM observability and evaluation platform built by Comet. It enables AI hosts like Claude Code, Cursor, and VS Code Copilot to interact with your Opik workspace, allowing you to read traces, log scores, save prompt versions, and ask Ollie, Opik's in-product AI assistant, investigative questions. The server provides six tools—read, list, write, ask_ollie, schema, and run_experiment—covering the full lifecycle from reading and annotating to curating, authoring, and iterating.
Upstash's official server providing up-to-date third-party library docs for AI coding assistants
AI-powered NPM package analysis MCP server
An independent control layer that gives AI coding agents budgets, brakes, and receipts
GitHub's official MCP server for managing repos, issues, PRs, and workflows via natural language
Source revision e73758164ca2 Data synced 2026-10-12 Read the FMRS scoring method