mlflowmcpserver
mcp server for mlflow
Documentation
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:
1. MLflow MCP Server (`mlflow_server.py`): Connects to your MLflow tracking server and exposes MLflow functionality through the Model Context Protocol (MCP).
2. 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
Installing via Smithery
To install MLflow Natural Language Interface Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @iRahulPandey/mlflowMCPServer --client claudeManual Installation
1. Clone this repository:
git clone https://github.com/iRahulPandey/mlflowMCPServer.git
cd mlflowMCPServer2. Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate3. Install the required packages:
pip install mcp[cli] langchain-mcp-adapters langchain-openai langgraph mlflow4. Set your OpenAI API key:
export OPENAI_API_KEY=your_key_here5. (Optional) Configure the MLflow tracking server URI:
export MLFLOW_TRACKING_URI=http://localhost:8080Usage
Starting the MCP Server
First, start the MLflow MCP server:
python mlflow_server.pyThe 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 key
- `MODEL_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 registry
- `list_experiments`: Lists all experiments in the MLflow tracking server
- `get_model_details`: Gets detailed information about a specific registered model
- `get_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
Frequently asked questions
What is mlflowmcpserver?
mlflowmcpserver is mcp server for mlflow
How do I install mlflowmcpserver?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mlflowmcpserver open source?
Yes — it is hosted on GitHub at https://github.com/iRahulPandey/mlflowMCPServer and has 10 stars.
Related MCP tools
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
🔥 MaxKB is an open-source platform for building enterprise-grade agents. MaxKB 是强大易用的开源企业级智能体平台。 for the Model Context Protocol. Enhance AI assistants with po
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP