- Explore MCP Servers
- opik-mcp
Opik MCP Server
What is Opik MCP Server
Opik MCP Server is an open-source implementation of the Model Context Protocol designed for the Opik platform. It serves as a unified interface for interacting with various capabilities of the Opik ecosystem, and supports multiple transport mechanisms, allowing for flexible integration in different environments.
Use cases
Opik MCP Server can be utilized for IDE integration, offering seamless access to Opik’s functionalities directly within development environments like Cursor. It also provides a standardized API for accessing all Opik features and facilitates management of prompts, projects, traces, and metrics through a consistent interface, enhancing organizational efficiency.
How to use
To get started with Opik MCP Server, clone the repository, install dependencies, and configure your environment using a .env file. You can start the server using commands for either stdio transport (default) or the experimental SSE transport. Integration with IDEs like Cursor involves creating a specific configuration file that sets command arguments and environment variables related to API access.
Key features
Key features of Opik MCP Server include prompts management for creating and updating prompt data, project and workspace organization capabilities, trace tracking for analyzing data flows, and metrics gathering to query operational data. These features foster better management practices for LLM applications.
Where to use
Opik MCP Server is ideal for local development environments, particularly when utilizing standard input/output transports. It is also suited for remote access scenarios via Server-Sent Events, enabling support for multiple clients over HTTP in experimental setups that require enhanced accessibility.
Overview
What is Opik MCP Server
Opik MCP Server is an open-source implementation of the Model Context Protocol designed for the Opik platform. It serves as a unified interface for interacting with various capabilities of the Opik ecosystem, and supports multiple transport mechanisms, allowing for flexible integration in different environments.
Use cases
Opik MCP Server can be utilized for IDE integration, offering seamless access to Opik’s functionalities directly within development environments like Cursor. It also provides a standardized API for accessing all Opik features and facilitates management of prompts, projects, traces, and metrics through a consistent interface, enhancing organizational efficiency.
How to use
To get started with Opik MCP Server, clone the repository, install dependencies, and configure your environment using a .env file. You can start the server using commands for either stdio transport (default) or the experimental SSE transport. Integration with IDEs like Cursor involves creating a specific configuration file that sets command arguments and environment variables related to API access.
Key features
Key features of Opik MCP Server include prompts management for creating and updating prompt data, project and workspace organization capabilities, trace tracking for analyzing data flows, and metrics gathering to query operational data. These features foster better management practices for LLM applications.
Where to use
Opik MCP Server is ideal for local development environments, particularly when utilizing standard input/output transports. It is also suited for remote access scenarios via Server-Sent Events, enabling support for multiple clients over HTTP in experimental setups that require enhanced accessibility.
Content
(Model Context Protocol)
A Model Context Protocol (MCP) implementation for the Opik platform with support for multiple transport mechanisms, enabling seamless integration with IDEs and providing a unified interface for Opik's capabilities.
Website • Slack community • Twitter • Documentation
⚠️ Notice: SSE (Server-Sent Events) transport support is currently experimental and untested. For production use, we recommend using the direct process execution approach shown in the IDE integration examples.
🚀 What is Opik MCP Server?
Opik MCP Server is an open-source implementation of the Model Context Protocol for the Opik platform. It provides a unified interface for interacting with Opik’s capabilities, supporting multiple transport mechanisms for flexible integration into various environments.
You can use Opik MCP Server for:
-
IDE Integration:
- Seamlessly integrate with Cursor and other compatible IDEs
- Provide direct access to Opik’s capabilities from your development environment
-
Unified API Access:
- Access all Opik features through a standardized protocol
- Leverage multiple transport options (stdio, SSE) for different integration scenarios
-
Platform Management:
- Manage prompts, projects, traces, and metrics through a consistent interface
- Organize and monitor your LLM applications efficiently
Features
- Prompts Management: Create, list, update, and delete prompts
- Projects/Workspaces Management: Organize and manage projects
- Traces: Track and analyze trace data
- Metrics: Gather and query metrics data
Quick Start
Installation
Manual Installation
# 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
Configuration
Create a .env
file based on the example:
cp .env.example .env
# Edit .env with your specific configuration
Starting the Server
# Start with stdio transport (default)
npm run start:stdio
# Start with SSE transport for network access (experimental)
npm run start:sse
IDE Integration
Cursor Integration
To integrate with Cursor IDE, create a .cursor/mcp.json
file in your project directory with the following configuration:
Replace /path/to/node
with the path to your Node.js executable and /path/to/opik-mcp
with the path to your opik-mcp installation. Also replace YOUR_API_KEY
with your actual Opik API key.
Available Commands
The project includes a Makefile for common operations:
# Display all available commands
make help
# Run tests
make test
# Run transport-specific tests
make test-transport
# Start the server with SSE transport (experimental)
make start-sse
# Start the server with stdio transport
make start-stdio
Transport Options
Standard Input/Output
Ideal for local integration where the client and server run on the same machine.
make start-stdio
Server-Sent Events (SSE)
Enables remote access and multiple simultaneous clients over HTTP. Note that this transport option is experimental.
make start-sse
For detailed information about the SSE transport, see docs/sse-transport.md.
Development
Testing
# Run all tests
npm test
# Run specific test suite
npm test -- tests/transports/sse-transport.test.ts
Pre-commit Hooks
This project uses pre-commit hooks to ensure code quality:
# Run pre-commit checks manually
make precommit
Documentation
- SSE Transport - Details on using the SSE transport
- API Reference - Complete API documentation
- Configuration - Advanced configuration options
- IDE Integration - Integration with Cursor IDE
Citation
If you use this project in your research, please cite it as follows:
Comet ML, Inc, Koc, V., & Boiko, Y. (2025). Opik MCP Server. Github. https://doi.org/10.5281/zenodo.15411156
Or use the following BibTeX entry:
@software{CometML_Opik_MCP_Server_2025, author = {{Comet ML, Inc} and Koc, V. and Boiko, Y.}, title = {{Opik MCP Server}}, year = {2025}, publisher = {GitHub}, url = {https://doi.org/10.5281/zenodo.15411156}, doi = {10.5281/zenodo.15411156} }
You can also find citation information in the CITATION.cff
file in this repository.
License
Apache 2.0