MLflow MCP Server
Published · Updated
At a glance
- Category
- AI & web search
- GitHub repository
- mlflow/mlflow
- Watch out for
- The docs mark the MCP server as experimental, so tools and behaviour may change between releases.
MLflow ships its own MCP server inside the main mlflow Python package, under the mlflow.mcp module, rather than as a separate project. You start it with the mlflow mcp run command, and it connects an agent to whatever tracking server MLFLOW_TRACKING_URI points at: a local server, a remote one, or Databricks.
The server is aimed mainly at GenAI work. Its documented tools read and edit traces and the assessments attached to them, so a coding assistant can search production traces, open a specific one, and record feedback or expectations against it. It needs MLflow 3.5.1 or newer, installed with the mcp extra.
The docs label the feature experimental. The client config runs it as a local subprocess launched through uv, and the source builds its tools from MLflow's existing CLI commands, grouped into categories you can switch on with an environment variable.
How it connects
Your AI app
An assistant or agent that supports MCP
MLflow MCP Server
Runs as
- Python (uv / pip)
Gives the agent
- Trace search
- Trace tagging and cleanup
- Feedback and expectations
- Assessment management
- Tool categories
MLflow
Signs in with
- Token
What it can do
- Trace search
- search_traces finds traces in an experiment, and get_trace returns the full detail of one trace for inspection.
- Trace tagging and cleanup
- set_trace_tag and delete_trace_tag label traces, and delete_traces removes them.
- Feedback and expectations
- log_feedback and log_expectation attach assessments to a trace, such as a quality judgement or the expected answer.
- Assessment management
- get_assessment, update_assessment and delete_assessment read and change assessments that were already logged.
- Tool categories
- MLFLOW_MCP_TOOLS picks which groups are exposed: genai (the default, covering traces, scorers, experiments and runs), ml, all, or a comma-separated list of categories.
Setting it up
Install MLflow with the MCP extra using pip install 'mlflow[mcp]>=3.5.1'. For Claude Code the docs recommend claude mcp add mlflow-mcp -e MLFLOW_TRACKING_URI=<MLFLOW_TRACKING_URI> -- uv run --with "mlflow[mcp]>=3.5.1" mlflow mcp run. For Cursor, add an mlflow-mcp entry under mcpServers in .cursor/mcp.json with command uv and args run, --with, mlflow[mcp]>=3.5.1, mlflow, mcp, run, plus MLFLOW_TRACKING_URI in its env block; VS Code with Copilot takes the same entry in the workspace-root .mcp.json under mcpServers. Optionally set MLFLOW_EXPERIMENT_ID for a default experiment and MLFLOW_MCP_TOOLS to change the tool set. For Databricks, set the tracking URI to databricks and provide DATABRICKS_HOST and DATABRICKS_TOKEN or another supported auth method.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Search recent traces from a GenAI app for errors and open the worst one to see which step failed.
- Tag a batch of traces from a bad deploy so the team can filter them later.
- Log human feedback or an expected answer against a trace while reviewing agent output.
- Fix a mislabelled assessment with update_assessment instead of editing it by hand in the UI.
Limitations and things to watch
- The docs mark the MCP server as experimental, so tools and behaviour may change between releases.
- It requires MLflow 3.5.1 or newer with the mcp extra installed.
- delete_traces and delete_assessment remove data, so give the agent a tracking URI and credentials you are comfortable with it changing.
- Databricks users must configure authentication separately following Databricks' own auth guide.
Sources
Written from the project's own documentation, checked November 2026.
- mlflow.org /docs/latest/genai/mcp
- github.com /mlflow/mlflow/blob/master/mlflow/mcp/server.py
- github.com /mlflow/mlflow/blob/master/mlflow/mcp/cli.py
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.