The Opik MCP Server is a Model Context Protocol implementation that provides a unified interface for managing Opik resources through various transport mechanisms:
Prompt Management: Create, list, update, delete prompts, and manage versions
Project/Workspace Management: Create, list, update, and delete projects
Trace Management: List traces, retrieve details, and access statistics
Metrics: Query metrics data with filtering options
Server Information: Retrieve configuration details
Contextual Help: Access help topics and examples
Used for configuration through environment variables in a .env file
Hosts the repository and provides licensing information
Provides a Makefile for common operations like testing and starting the server
Used as the runtime environment for the MCP server
Implements pre-commit hooks to ensure code quality
Provides community support through the linked Slack community
Provides TypeScript language support for the MCP server implementation
⚠️ 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
Related MCP server: OpenAI MCP Server
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
Cursor Integration
To integrate with Cursor IDE, open to the Cursor settings page and navigate
to the Features tab. If you scroll down to the MCP section you will see the
button + Add new MCP server that will allow you to add the Opik MCP server.
Once the New MCP server modal is open, select command as the server type and
enter the command: npx -y opik-mcp --apiKey YOUR_API_KEY.
Alternatively, you can create a .cursor/mcp.json in your project and add:
Note: If you are using the Open-Source version of Opik, you will need to specify
the apiBaseUrl parameter as http://localhost:5173/api.
Windsurf Installation
To install the MCP server in Windsurf, you will need to open the Windsurf settings
and navigate to the MCP section. From there, click on View raw config and update
the configuration object to be:
Note: If you are using the Open-Source version of Opik, you will need to specify
the apiBaseUrl parameter as http://localhost:5173/api.
Manual Installation
Configuration
Create a .env file based on the example:
Starting the Server
Transport Options
Standard Input/Output
Ideal for local integration where the client and server run on the same machine.
Server-Sent Events (SSE)
Enables remote access and multiple simultaneous clients over HTTP. Note that this transport option is experimental.
For detailed information about the SSE transport, see docs/sse-transport.md.
Development
Testing
Pre-commit Hooks
This project uses pre-commit hooks to ensure code quality:
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:
Or use the following BibTeX entry:
You can also find citation information in the CITATION.cff file in this repository.
License
Apache 2.0