mlx-mcp-server
Allows using Ollama as a backend for local LLM inference, supporting chat and diagnostic tools.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mlx-mcp-serverask my local model to summarize this article"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mlx-mcp-server
MCP server bridging Claude Code and Claude Desktop to a locally-running LLM. Optimized for MLX LM on Apple Silicon, with support for any OpenAI-compatible backend (Ollama, LM Studio, etc.).
Install
pip install mlx-mcp-serverSetup
1. Start your local LLM
# Apple Silicon — MLX LM
mlx_lm.server --model mlx-community/Mistral-7B-Instruct-v0.3-4bit
# Intel Mac / Linux — Ollama
ollama serve && ollama pull mistral2. Add to Claude Desktop
# MLX (Apple Silicon)
mlx-mcp-server install
# Ollama
mlx-mcp-server install --base-url http://localhost:11434 --model mistral
# Preview before writing
mlx-mcp-server install --dry-run3. Add to Claude Code
mlx-mcp-server install --claude-codeRestart Claude Desktop / Claude Code after installing.
Tools
Tool | Description |
| Send a message to your local model |
| Run a diagnostic: |
| Check if the backend is reachable |
| List available models on the backend |
Configuration
Set via environment variables (or the install command sets them automatically):
Variable | Default | Description |
|
| Backend URL |
|
| Model name — required for Ollama |
|
| API key for secured backends |
|
| Request timeout in seconds |
Manual Claude Desktop config
If you prefer to edit the config file directly (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"mlx": {
"command": "mlx-mcp-server",
"env": {
"MLX_BASE_URL": "http://localhost:8080",
"MLX_DEFAULT_MODEL": ""
}
}
}
}Requirements
Python 3.11+
A running OpenAI-compatible LLM backend:
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/deresolution20/mlx-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server