MLflow MCP Server: Natural Language Interface for MLflow
A natural language interface for MLflow that allows users to query and manage their machine learning experiments and models using plain English through the Model Context Protocol.
iRahulPandey
README
MLflow MCP Server: Natural Language Interface for MLflow
This project provides a natural language interface to MLflow via the Model Context Protocol (MCP). It allows you to query your MLflow tracking server using plain English, making it easier to manage and explore your machine learning experiments and models.
Overview
MLflow MCP Agent consists of two main components:
-
MLflow MCP Server (
mlflow_server.py
): Connects to your MLflow tracking server and exposes MLflow functionality through the Model Context Protocol (MCP). -
MLflow MCP Client (
mlflow_client.py
): Provides a natural language interface to interact with the MLflow MCP Server using a conversational AI assistant.
Features
- Natural Language Queries: Ask questions about your MLflow tracking server in plain English
- Model Registry Exploration: Get information about your registered models
- Experiment Tracking: List and explore your experiments and runs
- System Information: Get status and metadata about your MLflow environment
Prerequisites
- Python 3.8+
- MLflow server running (default:
http://localhost:8080
) - OpenAI API key for the LLM
Installation
-
Clone this repository:
git clone https://github.com/iRahulPandey/mlflowMCPServer.git cd mlflowMCPServer
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required packages:
pip install mcp[cli] langchain-mcp-adapters langchain-openai langgraph mlflow
-
Set your OpenAI API key:
export OPENAI_API_KEY=your_key_here
-
(Optional) Configure the MLflow tracking server URI:
export MLFLOW_TRACKING_URI=http://localhost:8080
Usage
Starting the MCP Server
First, start the MLflow MCP server:
python mlflow_server.py
The server connects to your MLflow tracking server and exposes MLflow functionality via MCP.
Making Queries
Once the server is running, you can make natural language queries using the client:
python mlflow_client.py "What models do I have registered in MLflow?"
Example Queries:
- "Show me all registered models in MLflow"
- "List all my experiments"
- "Get details for the model named 'iris-classifier'"
- "What's the status of my MLflow server?"
Configuration
You can customize the behavior using environment variables:
MLFLOW_TRACKING_URI
: URI of your MLflow tracking server (default:http://localhost:8080
)OPENAI_API_KEY
: Your OpenAI API keyMODEL_NAME
: The OpenAI model to use (default:gpt-3.5-turbo-0125
)MLFLOW_SERVER_SCRIPT
: Path to the MLflow MCP server script (default:mlflow_server.py
)LOG_LEVEL
: Logging level (default:INFO
)
MLflow MCP Server (mlflow_server.py
)
The server connects to your MLflow tracking server and exposes the following tools via MCP:
list_models
: Lists all registered models in the MLflow model registrylist_experiments
: Lists all experiments in the MLflow tracking serverget_model_details
: Gets detailed information about a specific registered modelget_system_info
: Gets information about the MLflow tracking server and system
Limitations
- Currently only supports a subset of MLflow functionality
- The client requires internet access to use OpenAI models
- Error handling may be limited for complex MLflow operations
Future Improvements
- Add support for MLflow model predictions
- Improve the natural language understanding for more complex queries
- Add visualization capabilities for metrics and parameters
- Support for more MLflow operations like run management and artifact handling
Acknowledgments
- Model Context Protocol (MCP): For the protocol specification
- LangChain: For the agent framework
- MLflow: For the tracking and model registry functionality
Recommended Servers
Crypto Price & Market Analysis MCP Server
A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.
MCP PubMed Search
Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.
dbt Semantic Layer MCP Server
A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.
mixpanel
Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Nefino MCP Server
Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.
Vectorize
Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
Mathematica Documentation MCP server
A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.
kb-mcp-server
An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded
Research MCP Server
The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.