List all prompts in the workspace
Create a new prompt in the workspace
Update an existing prompt
Delete a prompt from the workspace
List all projects/workspaces
Track and analyze trace data
Gather and query metrics data
Comet Opik MCP provides a standardized interface to the Opik platform, enabling seamless integration with IDEs and development environments. It offers comprehensive management of prompts, projects, traces, and metrics for LLM applications through the Model Context Protocol (MCP). With support for multiple transport mechanisms including stdio and SSE, Opik MCP allows developers to access Opik's capabilities directly from their preferred development environment. This integration streamlines the workflow for organizing, monitoring, and optimizing LLM applications.
Comet Opik MCP Server provides a Model Context Protocol implementation for the Opik platform, allowing you to access Opik's capabilities directly from compatible IDEs and applications. This integration enables efficient management of prompts, projects, traces, and metrics for your LLM applications.
There are two main ways to install and use the Opik MCP Server:
Clone the repository:
git clone https://github.com/comet-ml/opik-mcp.git
cd opik-mcp
Install dependencies and build:
npm install
npm run build
Create a configuration file:
cp .env.example .env
Edit the .env
file with your specific configuration, including your Opik API key.
For direct integration with compatible IDEs like Cursor, you can configure the MCP server to run directly without manual installation.
The Opik MCP Server requires the following configuration parameters:
OPIK_API_BASE_URL
: The base URL for the Opik API (default: https://www.comet.com/opik/api)OPIK_API_KEY
: Your Opik API keyOPIK_WORKSPACE_NAME
: The workspace name to use (default: "default")DEBUG
: Set to "true" to enable debug logging (optional)You can start the server using one of the following transport mechanisms:
This is the recommended approach for local integration:
npm run start:stdio
Or using the Makefile:
make start-stdio
For remote access and multiple simultaneous clients:
npm run start:sse
Or using the Makefile:
make start-sse
To integrate with Cursor IDE, create a .cursor/mcp.json
file in your project directory with the following configuration:
{
"mcpServers": {
"opik": {
"command": "/path/to/node",
"args": [
"/path/to/opik-mcp/build/index.js",
"--apiUrl",
"https://www.comet.com/opik/api",
"--apiKey",
"YOUR_API_KEY",
"--workspace",
"default",
"--debug",
"true"
],
"env": {
"OPIK_API_BASE_URL": "https://www.comet.com/opik/api",
"OPIK_API_KEY": "YOUR_API_KEY",
"OPIK_WORKSPACE_NAME": "default"
}
}
}
}
Replace the following:
/path/to/node
with the path to your Node.js executable/path/to/opik-mcp
with the path to your opik-mcp installationYOUR_API_KEY
with your actual Opik API keyFor advanced configuration options, refer to the documentation in the repository:
If you encounter issues:
DEBUG=true
in your configurationFor persistent issues, visit the Comet Slack community for support.