MCP server for AI assistants
Let Claude and other MCP clients list data, train, deploy and predict with the hosted mlflow MCP server.
The Model Context Protocol (MCP) is an open standard that lets an AI assistant use tools. The mlflow MCP server gives an assistant such as Claude a set of tools for your mlflow workspace. You can then ask in plain language: "List my datasets, profile churn.csv with target churned, compare models with stratified 5-fold cross-validation and show me the leaderboard."
What it does
The server finds and uploads datasets, trains and compares models, registers and deploys the best one, requests predictions and reads drift reports.
Every tool call is an ordinary REST call made with your API key, so everything the platform enforces still applies: workspace roles, key scopes and plan limits. The server stores no credentials of its own.
Tools
| Tool | What it does | Scope needed |
|---|---|---|
list_projects | Lists workspaces and their projects | read |
list_datasets | Lists the datasets of a workspace: rows, columns, whether they can be used for training | read |
describe_dataset | Profiles a dataset: types, missing values, quality, leakage, suggested task | read |
upload_dataset | Creates a dataset from a URL or from CSV text | write |
start_training_run | Creates an experiment and starts a compare run: task, target, algorithms, fold strategy | write |
get_run_status | Shows the status of a run and the progress of each trial | read |
get_leaderboard | Shows the ranked trials with their cross-validation metrics, and the best trial | read |
register_model | Registers a trial (the best one by default) as a model version | write (the preview needs read) |
deploy_model | Creates an online endpoint for a registered pipeline | write (the preview needs read; the public access mode also needs the workspace administrator role) |
predict | Scores up to 1000 rows against an endpoint | predict or write |
get_drift_report | Shows the latest drift report and the score history of a deployment | read |
There are no tools that delete anything.
Connect your assistant
First create an API key: open the user menu in the app, select API keys, and create a key. See API keys and scopes. Choose the narrowest scope that does the job:
- a key with only
readcan explore and monitor; readwithpredictcan also score data;- only a key with
write(or default access) can upload, train, register or deploy.
Connect from Claude Code
mlflow hosts the MCP server for you. There is nothing to install: you only point your client at the endpoint and send your API key.
- Address:
https://app.mlflow.es/mcp(on a self-hosted installation:https://<your-domain>/mcp) - Transport: Streamable HTTP
- Authentication: the header
Authorization: Bearer <API key>
claude mcp add --transport http mlflow https://app.mlflow.es/mcp --header "Authorization: Bearer pck_..."Or commit a project file .mcp.json that reads the key from each developer's environment, so that no key is stored in the repository:
{
"mcpServers": {
"mlflow": {
"type": "http",
"url": "https://app.mlflow.es/mcp",
"headers": { "Authorization": "Bearer ${MLFLOW_API_KEY}" }
}
}
}Other clients
Any MCP client that supports Streamable HTTP and custom headers works the same way: give it the URL and the Authorization header. In Claude Desktop, add a custom connector with the URL where your plan offers it; for clients configured with a JSON file, use url and headers as in the example above.
The server answers 401 when a request has no bearer key. Send your API key (it starts with pck_) and never share it in a chat or a repository.
Confirmations and scopes
Three tools can change things or cost money: start_training_run, register_model and deploy_model. They do nothing unless they are called with confirm: true. Without it they return a preview of what would happen; the deploy preview also checks that the pipeline exists and that the endpoint name is free. That gives you a chance to approve before the assistant acts.
Confirm is a convenience, not a security control
confirm is an ordinary tool argument. It asks the assistant to show you the consequence first, but an assistant or a client can send confirm: true on the first call. What a caller can really do is decided by the platform on every call: the key's scopes (a read-only key cannot train, register or deploy), the workspace role (only administrators can create public endpoints) and the plan limits.
Good practice:
- Give the assistant the least privileged key that does the job, for example
readfor exploring, and create a separate key if you want it to train. - Keep your client's approval prompts for tool calls switched on, especially for the three tools above.
- Revoke the key when you stop using it. See API keys and scopes.
Each tool also declares the scope it needs, and the API enforces it. A missing scope comes back to the assistant as an error that quotes the API's 403 message.
Security notes
- Uploading a file from your own computer is not available through MCP: give the assistant a URL, or upload the file in the web app.
- When you upload from a URL, the server downloads the file, without your credentials. It follows at most three redirects, accepts only public internet addresses, ignores proxy settings, refuses files over 200 MB and stops slow downloads.
- A deployment with access mode
publiccan be called by anyone. The preview warns about this, and only workspace administrators can create one.
Related
Updated 2026-11-22