/cmf:cmf-mcpfrom cmf
Sets up the CMF MCP server so AI coding assistants can query CMF metadata using natural language. Covers Docker deployment and configuration for Claude Code, GitHub Copilot, Cursor, and Codex.
Ships in cmf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
First check: is the CMF MCP server already running? Check for an existing .mcp.json in the project. If yes, skip to Using CMF MCP from your coding agent.
../cmf-server/SKILL.md)cd mcp/
cp example.env .env
Edit .env:
CMF_BASE_URL=http://<your-cmf-server-host>:80
# Optional second/third/fourth server:
# CMF2_BASE_URL=http://staging-server:80
# CMF3_BASE_URL=http://another-server:80
docker compose up -d
curl http://localhost:8000/health # → {"status": "ok"}
.mcp.json (project root){
"mcpServers": {
"cmf": { "url": "http://localhost:8000/mcp", "transport": "http" }
}
}
Restart Claude Code or run /mcp to reload.
{
"github.copilot.chat.mcpServers": {
"cmf": { "url": "http://localhost:8000/mcp", "transport": "http" }
}
}
Add to .vscode/settings.json or VS Code user settings. Reload the window.
~/.cursor/mcp.json{
"mcpServers": {
"cmf": { "url": "http://localhost:8000/mcp", "transport": "http" }
}
}
~/.codex/config.json{
"mcpServers": {
"cmf": { "url": "http://localhost:8000/mcp", "transport": "http" }
}
}
Once connected, query CMF metadata in natural language:
What pipelines are tracked in CMF?
Show all executions for the Train stage in my_pipeline.
What datasets produced models/rf.pkl?
Show the model card for model ID 7.
What were the evaluation metrics for the latest run?
Check available tools — in Claude Code run /mcp; in Cursor/Copilot type @cmf in agent chat.
End-to-end workflow:
cmf metadata push -p my_pipeline → ask the agent natural language questionsSee references/mcp-tools.md for the full tool reference.
Connection refused on port 8000 — run docker compose up -d in mcp/curl http://<cmf-server>:80/api/pipelines.mcp.jsoncmf metadata push -p <name>Docs: MCP Server overview · Quick Start · Configuration · Tools Reference
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub hewlettpackard/cmf --plugin cmf7 skills in this plugin
/cmfUse when working with the Common Metadata Framework (CMF) — initializing CMF in a project, instrumenting ML pipeline code, syncing metadata and artifacts with a CMF Server, querying lineage and artifacts, or setting up the CMF MCP server for AI assistant integration. Routes to the appropriate specialized skill based on the task.
/cmf-initUse when setting up CMF in a new or existing project. Covers creating a Python environment (conda, uv, or venv), installing cmflib (requires Python 3.9–3.11, recommended 3.10), running `cmf init` to configure a storage backend (local, S3, MinIO, SSH, or OSDF), and verifying the setup. Linux only — cmflib does not support macOS.
/cmf-instrumentUse when adding CMF metadata tracking to existing Python ML pipeline code, or writing new CMF-instrumented pipeline stages from scratch. Covers the Cmf() API: create_context, create_execution, log_dataset, log_model, log_metric, commit_metrics, log_execution_metrics, and finalize(). Includes copy-paste templates for common ML pipeline stages.
/cmf-queryUse when querying CMF metadata programmatically — listing pipelines, stages, executions, artifacts; tracing lineage; comparing hyperparameters across runs; or exporting metadata for analysis. Uses the CmfQuery Python API or CLI listing commands.
/cmf-serverUse when deploying the CMF Server locally with Docker Compose, or connecting to an existing shared CMF Server. Covers creating the .env file, starting the container stack, verifying the web UI, and pointing cmflib clients at the server. If a server is already running and credentials are available, skip to the connection section.
/cmf-syncUse when pushing or pulling CMF metadata and artifacts between a local environment and a CMF Server or central artifact repository (S3, MinIO, SSH, OSDF, local). Covers `cmf metadata push/pull`, `cmf artifact push/pull`, `cmf repo push/pull`, and collaborative team workflows. Assumes `cmf init` has been run.
Other plugins' skills for the same job