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
In this repository4 other files it gives its agents.
- .cursor/rules/ci-cd-philosophy.mdcCursor rule
- .cursor/rules/linting-philosophy.mdcCursor rule
- .cursor/rules/test-coverage-improvement.mdcCursor rule
- .cursor/rules/testing-philosophy.mdcCursor rule
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
- Distinctive: line 11
Search and filter projects and tasks
- Distinctive: line 74
Add to Claude Desktop configuration:
- Distinctive: line 118
No credentials stored in code
≈ “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.
Files
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 statuslist_tasks(project_name, status, tags)- List ClearML tasks with filtersget_task_parameters(task_id)- Get task hyperparameters and configurationget_task_metrics(task_id)- Get task training metrics and scalarsget_task_artifacts(task_id)- Get task artifacts and outputs
Model Operations
get_model_info(task_id)- Get model metadata and configurationlist_models(project_name)- List available models with filteringget_model_artifacts(task_id)- Get model files and download URLs
Project Operations
list_projects()- List available ClearML projectsget_project_stats(project_name)- Get project statistics and task counts
Analysis Tools
compare_tasks(task_ids, metrics)- Compare multiple tasks by metricssearch_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-keyRunning the Server
# Using uvx (no installation needed)
uvx clearml-mcp
# Verify clearml.conf works first
clearml-task --helpClaude 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 publishImplementation 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
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
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.

