agentleFS
prassanna-ravishankarprassanna-ravishankar/clearml-mcp/CLAUDE.md

clearml-mcp

CLAUDE.md16 starsChanged 17 months agoMITView on GitHub

This project implements a Model Context Protocol (MCP) server for ClearML, enabling AI agents to interact with ClearML experiments, models, and projects. The ClearML MCP server provides comprehensive tools for AI agents to: - Discover and analyze ML experiments - Compare model performance across tasks - Retrieve training metrics and artifacts - Search and filter projects and tasks - Get comprehensive model context and lineage

The file

We split this CLAUDE.md into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search and filter projects and tasks

    line 11
  2. Distinctive:

    Add to Claude Desktop configuration:

    line 74
  3. Distinctive:

    No credentials stored in code

    line 118

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

ClearML MCP Server

This project implements a Model Context Protocol (MCP) server for ClearML, enabling AI agents to interact with ClearML experiments, models, and projects.

Project Overview

The ClearML MCP server provides comprehensive tools for AI agents to:

  • Discover and analyze ML experiments
  • Compare model performance across tasks
  • Retrieve training metrics and artifacts
  • Search and filter projects and tasks
  • Get comprehensive model context and lineage

Available Tools

Task Operations

  • get_task_info(task_id) - Get ClearML task details, parameters, and status
  • list_tasks(project_name, status, tags) - List ClearML tasks with filters
  • get_task_parameters(task_id) - Get task hyperparameters and configuration
  • get_task_metrics(task_id) - Get task training metrics and scalars
  • get_task_artifacts(task_id) - Get task artifacts and outputs

Model Operations

  • get_model_info(task_id) - Get model metadata and configuration
  • list_models(project_name) - List available models with filtering
  • get_model_artifacts(task_id) - Get model files and download URLs

Project Operations

  • list_projects() - List available ClearML projects
  • get_project_stats(project_name) - Get project statistics and task counts

Analysis Tools

  • compare_tasks(task_ids, metrics) - Compare multiple tasks by metrics
  • search_tasks(query, project_name) - Search tasks by name, tags, or description

Technical Details

Dependencies

  • fastmcp>=0.1.0
  • clearml>=1.16.0
  • pydantic>=2.0.0

Architecture

  • Built with FastMCP framework
  • Uses stdio transport for Claude Desktop integration
  • Leverages existing ~/clearml.conf for authentication
  • Implements JSON-RPC 2.0 protocol

Entry Point

  • Main executable: clearml-mcp (via uvx)
  • Main module: src/clearml_mcp/clearml_mcp.py

Usage

Prerequisites

Users must have a configured ~/clearml.conf file with:

[api]
api_server = https://your-clearml-server.com
access_key = your-access-key
secret_key = your-secret-key

Running the Server

# Using uvx (no installation needed)
uvx clearml-mcp

# Verify clearml.conf works first
clearml-task --help

Claude Desktop Integration

Add to Claude Desktop configuration:

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

Development Commands

Testing

# Run tests (to be implemented)
pytest tests/

# Type checking (to be implemented)
mypy src/clearml_mcp/

Building

# Build package
hatch build

# Publish to PyPI
hatch publish

Implementation Status

  • Core MCP server with 12 tools
  • PyPI packaging
  • Claude Desktop integration
  • Documentation
  • Tests

Security Considerations

  • Validates task_id format before API calls
  • Uses existing clearml.conf for authentication
  • No credentials stored in code
  • Local-only usage (no remote server endpoints)

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.