MCP Connector

Analyze ClearML Experiments with AI Assistants

An MCP server giving AI assistants 14 tools to query ClearML experiments, models, projects, and metrics.

Works with clearml

90
Spark score
out of 100
Updated last month
Version 0.3.0
Models
universal

Add to Favorites

Why it matters

Empower AI assistants to deeply understand and analyze your ClearML experiments, models, and projects. Gain comprehensive context for ML development and performance evaluation.

Outcomes

What it gets done

01

Retrieve detailed information about ClearML tasks, parameters, and metrics.

02

Search and filter experiments, models, and projects based on various criteria.

03

Compare performance metrics across different tasks and models.

04

Access and manage experiment artifacts and model files.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-clearml-mcp | bash

Capabilities

Tools your agent gets

get_task_info

Get detailed task information, parameters, and status

list_tasks

List tasks with advanced filtering by project, status, tags, and user

get_task_parameters

Get hyperparameters and configuration for a task

get_task_metrics

Access training metrics, scalars, and plots for a task

get_task_artifacts

Get artifacts, model files, and outputs from a task

get_model_info

Get model metadata and configuration details

list_models

View available models with filtering options

get_model_artifacts

Access model files and download URLs

+6 tools

Overview

ClearML MCP Server

A ClearML MCP server exposing 14 tools across task, model, project, and analysis operations, letting an AI assistant query ML experiment metrics, hyperparameters, and artifacts directly. Use when an AI assistant needs to discover, analyze, or compare ClearML-tracked ML experiments without leaving the conversation.

What it does

ClearML MCP Server is a lightweight Model Context Protocol server that lets AI assistants interact with ClearML experiments, models, and projects, bringing ML experiment context and analysis directly into AI conversations.

When to use - and when NOT to

Use this when an AI assistant needs to discover, analyze, or compare ML experiments tracked in ClearML - metrics, hyperparameters, artifacts, or project statistics - rather than manually digging through the ClearML web UI.

Capabilities

14 tools across four categories: task operations (get_task_info for detailed task info, parameters, and status, list_tasks with filtering by project, status, tags, or user, get_task_parameters for hyperparameters, get_task_metrics for training scalars and plots, get_task_artifacts for model files and outputs), model operations (get_model_info, list_models, get_model_artifacts), project operations (list_projects, get_project_stats, find_project_by_pattern, find_experiment_in_project), and analysis tools (compare_tasks to compare multiple tasks by specific metrics, search_tasks for advanced search by name, tags, or comments). Typical queries include asking to see the latest experiments in a named project, compare accuracy metrics between two specific tasks, retrieve the hyperparameters for the best-performing model, find all failed experiments from the last week, or pull training curves for a recent fine-tuning run.

How to install

Requires uv, for the uvx command, and a ClearML account with credentials configured in ~/.clearml/clearml.conf, including api_server, web_server, files_server, and an access_key/secret_key pair from ClearML Settings. Install via:

uvx clearml-mcp

or pip install clearml-mcp. Add to Claude Desktop's config (claude_desktop_config.json) as an mcpServers entry running uvx clearml-mcp, with a pip-based alternative running python -m clearml_mcp.clearml_mcp; the same JSON block works for Cursor, Continue, Cody, and any other MCP-compatible assistant, including Zed Editor, OpenHands, and Roo-Cline. The server can be tested directly via npx @modelcontextprotocol/inspector uvx clearml-mcp. Common issues: "No ClearML projects accessible" usually means bad credentials in the conf file or a network access problem; module-not-found errors can often be worked around with bunx clearml-mcp or running the module directly with Python; and large or slow queries should be narrowed with project_name/task_status filters, such as completed, running, or failed, or by requesting specific metrics via compare_tasks rather than pulling all metrics for a task.

Who it's for

ML engineers and researchers who want their AI assistant to answer questions about ClearML experiment data - metrics, hyperparameters, artifacts, and comparisons - directly in conversation, built with UV, Ruff, and Pytest at 69% test coverage and released under the MIT license.

Source README

ClearML MCP Server

ClearML MCP

PyPI version
Python 3.10+
License: MIT

A lightweight Model Context Protocol (MCP) server that enables AI assistants to interact with ClearML experiments, models, and projects. Get comprehensive ML experiment context and analysis directly in your AI conversations.

โœจ Features

  • ๐Ÿ” Experiment Discovery: Find and analyze ML experiments across projects
  • ๐Ÿ“Š Performance Analysis: Compare model metrics and training progress
  • ๐Ÿ“ˆ Real-time Metrics: Access training scalars, validation curves, and convergence analysis
  • ๐Ÿท๏ธ Smart Search: Filter tasks by name, tags, status, and custom queries
  • ๐Ÿ“ฆ Artifact Management: Retrieve model files, datasets, and experiment outputs
  • ๐ŸŒ Cross-platform: Works with all major AI assistants and code editors

๐Ÿ“‹ Requirements

  • uv (installation guide) for uvx command
  • ClearML account with valid API credentials in ~/.clearml/clearml.conf

๐Ÿš€ Quick Start

Prerequisites

You need a configured ClearML environment with your credentials in ~/.clearml/clearml.conf:

[api]
api_server = https://api.clear.ml
web_server = https://app.clear.ml
files_server = https://files.clear.ml
credentials {
    "access_key": "your-access-key",
    "secret_key": "your-secret-key"
}

Get your credentials from ClearML Settings.

Installation

# Install from PyPI
pip install clearml-mcp

# Or run directly with uvx (no installation needed)
uvx clearml-mcp

๐Ÿ”Œ Integrations

๐Ÿค– Claude Desktop

Add to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "clearml": {
      "command": "uvx",
      "args": ["clearml-mcp"]
    }
  }
}

Alternative with pip installation:

{
  "mcpServers": {
    "clearml": {
      "command": "python",
      "args": ["-m", "clearml_mcp.clearml_mcp"]
    }
  }
}
โšก Cursor

Add to your Cursor settings (Ctrl/Cmd + , โ†’ Search "MCP"):

{
  "mcp.servers": {
    "clearml": {
      "command": "uvx",
      "args": ["clearml-mcp"]
    }
  }
}

Or add to .cursorrules in your project:

When analyzing ML experiments or asking about model performance, use the clearml MCP server to access experiment data, metrics, and artifacts.
๐Ÿ”ฅ Continue

Add to your Continue configuration (~/.continue/config.json):

{
  "mcpServers": {
    "clearml": {
      "command": "uvx",
      "args": ["clearml-mcp"]
    }
  }
}
๐Ÿฆพ Cody

Add to your Cody settings:

{
  "cody.experimental.mcp": {
    "servers": {
      "clearml": {
        "command": "uvx",
        "args": ["clearml-mcp"]
      }
    }
  }
}
๐Ÿง  Other AI Assistants

For any MCP-compatible AI assistant, use this configuration:

{
  "mcpServers": {
    "clearml": {
      "command": "uvx",
      "args": ["clearml-mcp"]
    }
  }
}

Compatible with:

  • Zed Editor
  • OpenHands
  • Roo-Cline
  • Any MCP-enabled application

๐Ÿ› ๏ธ Available Tools

The ClearML MCP server provides 14 comprehensive tools for ML experiment analysis:

๐Ÿ“Š Task Operations

  • get_task_info - Get detailed task information, parameters, and status
  • list_tasks - List tasks with advanced filtering (project, status, tags, user)
  • get_task_parameters - Retrieve hyperparameters and configuration
  • get_task_metrics - Access training metrics, scalars, and plots
  • get_task_artifacts - Get artifacts, model files, and outputs

๐Ÿค– Model Operations

  • get_model_info - Get model metadata and configuration details
  • list_models - Browse available models with filtering
  • get_model_artifacts - Access model files and download URLs

๐Ÿ“ Project Operations

  • list_projects - Discover available ClearML projects
  • get_project_stats - Get project statistics and task summaries
  • find_project_by_pattern - Find projects matching name patterns
  • find_experiment_in_project - Find specific experiments within projects

๐Ÿ” Analysis Tools

  • compare_tasks - Compare multiple tasks by specific metrics
  • search_tasks - Advanced search by name, tags, comments, and more

๐Ÿ’ก Usage Examples

Demo

asciicast

Once configured, you can ask your AI assistant questions like:

  • "Show me the latest experiments in the 'computer-vision' project"
  • "Compare the accuracy metrics between tasks task-123 and task-456"
  • "What are the hyperparameters for the best performing model?"
  • "Find all failed experiments from last week"
  • "Get the training curves for my latest BERT fine-tuning"

๐Ÿ—๏ธ Development

Setup

# Clone and setup with UV
git clone https://github.com/prassanna-ravishankar/clearml-mcp.git
cd clearml-mcp
uv sync

# Run locally
uv run python -m clearml_mcp.clearml_mcp

Available Commands

# Run tests with coverage
uv run task coverage

# Lint and format
uv run task lint
uv run task format

# Type checking
uv run task type

# Run examples
uv run task consolidated-debug  # Full ML debugging demo
uv run task example-simple      # Basic integration
uv run task find-experiments    # Discover real experiments

Testing with MCP Inspector

# Test the MCP server directly
npx @modelcontextprotocol/inspector uvx clearml-mcp

๐Ÿšจ Troubleshooting

Connection Issues

"No ClearML projects accessible"

  • Verify your ~/.clearml/clearml.conf credentials
  • Test with: python -c "from clearml import Task; print(Task.get_projects())"
  • Check network access to your ClearML server

Module not found errors

  • Try bunx clearml-mcp instead of uvx clearml-mcp
  • Or use direct Python: python -m clearml_mcp.clearml_mcp
Performance Issues

Large dataset queries

  • Use filters in list_tasks to limit results
  • Specify project_name to narrow scope
  • Use task_status filters (completed, running, failed)

Slow metric retrieval

  • Request specific metrics instead of all metrics
  • Use compare_tasks with metric names for focused analysis

๐Ÿค Contributing

Contributions welcome! This project uses:

  • UV for dependency management
  • Ruff for linting and formatting
  • Pytest for testing with 69% coverage
  • GitHub Actions for CI/CD

See our testing philosophy and linting approach for development guidelines.

๐Ÿ“„ License

MIT License - see LICENSE for details.

๐Ÿ”— Links


Created by Prass, The Nomadic Coder

FAQ

Common questions

Discussion

Questions & comments ยท 0

Sign In Sign in to leave a comment.