mcp-mlx-launcher
mcp-mlx-launcher is an MCP server that lets AI agents autonomously manage local LLM instances powered by mlx-lm on Apple Silicon Macs.
Check system environment: Diagnose available unified memory and confirm Apple Silicon architecture readiness.
Search MLX models: Search Hugging Face for MLX-format models by keyword, with results including download counts and model IDs.
Download a model: Pre-download and cache a specific MLX model from Hugging Face locally before launching.
Launch an LLM server: Start an
mlx_lm.serversubprocess in the background for a given model and port, with an optional memory requirement guard.Restart an LLM server: Gracefully stop and restart a server on a given port, optionally switching to a different model.
Shutdown an LLM server: Safely terminate a running LLM server process on a specified port to free resources.
Check server status: Verify whether a server is currently running and listening on a specified port.
List running servers: Get all background LLM server processes with their ports and loaded models.
Auto-cleanup: Automatically shuts down all managed LLM processes when the MCP server disconnects.
Allows searching Hugging Face for available MLX models and downloading them locally to cache before launching.
mcp-mlx-launcher
An MCP (Model Context Protocol) server designed to autonomously manage, launch, and shutdown local mlx-lm instances on Apple Silicon (Mac) environments.
This tool empowers AI agents (like Cline, Claude Desktop, etc.) to start local LLM servers on demand, check their status, prepare environments, and gracefully shut them down when no longer needed, saving system resources.
💡 Proven in Production: This server was extracted as a general-purpose, reusable module from the cingulater project, where it is actively used and running in production.
Features
System Environment Check: Verify system memory and architecture (Apple Silicon) to ensure readiness.
Model Search & Download: Search Hugging Face for available MLX models and download them locally to cache before launching.
Launch & Manage Local LLMs: Start, stop, and restart an
mlx-lmserver with any supported model in the background.Status Check: Verify if a specific port is currently active and listening.
Apple Silicon Optimized: Built specifically to manage MLX-based local models.
Auto Cleanup: Automatically cleans up and shuts down all managed LLM processes when the MCP server disconnects or shuts down, preventing resource leaks.
Related MCP server: Local AI MCP
Prerequisites
macOS (Apple Silicon M1/M2/M3/M4)
Python 3.10 or higher
mlx-lminstalled in your environment (pip install mlx-lm)
Installation
# Clone the repository
git clone [https://github.com/YOUR_USERNAME/mcp-mlx-launcher.git](https://github.com/YOUR_USERNAME/mcp-mlx-launcher.git)
cd mcp-mlx-launcher
# Install dependencies
pip install -e .Usage (MCP Configuration)
To use this server with your MCP client (e.g., Claude Desktop or Cline), add the following to your MCP configuration file:
{
"mcpServers": {
"mcp-mlx-launcher": {
"command": "python",
"args": [
"-m",
"mcp_mlx_launcher.server"
]
}
}
}Available Tools
Once connected, the MCP server provides the following tools to the AI agent:
check_system_environment(): Diagnoses the current system environment, returning available unified memory (GB) and architecture details.check_llm_status(port: int): Returnstrueif a server is currently running on the specified port.list_running_servers(): Retrieves a list of all local LLM servers (ports and models) currently running in the background.search_mlx_models(search_query: str = "", limit: int = 10): Searches Hugging Face for available MLX format models and lists their details (like download count and model ID).download_model(model_name: str): Pre-downloads a specified MLX model from Hugging Face and caches it locally. Useful for preparing large models before launching.launch_llm_server(model_name: str, port: int, memory_requirement_gb: float = 4.0): Launches anmlx_lm.serverinstance in the background. Includes an optional memory requirement check to prevent out-of-memory errors.restart_llm_server(port: int, model_name: str = None, memory_requirement_gb: float = 4.0): Gracefully stops the running server on the given port and restarts it. Ifmodel_nameis omitted, it restarts with the currently loaded model.shutdown_llm_server(port: int): Gracefully terminates the running LLM server on the given port.
Available Tools
8 toolscheck_llm_statusB
指定されたポートでサーバーがリッスンしているか(稼働中か)を確認します。
Inputs: port (required).
check_system_environmentA
現在のシステム環境(Apple Siliconか、空きメモリが何GBあるかなど)を診断します。
Inputs: no named parameters.
download_modelA
Hugging Faceから指定されたMLXモデルを事前にダウンロードし、ローカルにキャッシュします。大きなモデルの起動前の準備に利用します。
Inputs: model_name (required).
launch_llm_serverB
mlx_lm.server をサブプロセスとしてバックグラウンドで起動します。空きメモリが少ない場合は起動が拒否されます。
Inputs: model_name (required), port (required), memory_requirement_gb.
list_running_serversA
現在バックグラウンドで稼働しているすべてのローカルLLMサーバー(ポート番号とモデル名)の一覧を取得します。
Inputs: no named parameters.
restart_llm_serverB
指定されたポートで稼働しているサーバーを一度停止し、再起動します。モデルの切り替えなどにも使用できます。
Inputs: port (required), model_name, memory_requirement_gb.
search_mlx_modelsC
Hugging Faceからダウンロード可能なMLXフォーマットのLLMモデルを検索・リストアップします。
Inputs: search_query, limit.
shutdown_llm_serverA
指定されたポートで稼働しているローカル LLM サーバープロセスを安全に終了させます。
Inputs: port (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct operation: system check, model download, server launch, list, restart, search, shutdown, and status check. No two tools have overlapping purposes.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., check_llm_status, launch_llm_server, shutdown_llm_server). No mixing of conventions.
8 tools is well-scoped for an LLM server launcher covering environment check, model management, and server lifecycle. Neither too few nor too many.
Covers the full lifecycle: system check, model search/download, launch, list, restart, shutdown. Minor gap in lacking detailed server logs or configuration updates, but core operations are complete.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for AI dialogue using various LLM models via AceDataCloud
Remote MCP server for supportsheep: run AI interviews and manage support content for your blog.
Related MCP Servers
- FlicenseAqualityDmaintenanceLocal multimodal MCP server for vision, document, audio, video, and GUI automation, all processed locally on Apple Silicon for privacy and security.9-

Local AI MCPofficial
AlicenseAqualityBmaintenanceUnified MCP server for managing local model runtimes (Ollama, LM Studio, etc.), enabling provider-agnostic discovery, lifecycle management, hardware-fit checks, and delegated inference.22118 npmCreative Commons Attribution Non Commercial No Derivatives 4.0 International- AlicenseNot gradedqualityDmaintenanceText-to-speech MCP server using the Kokoro-82M model accelerated with MLX on Apple Silicon, enabling local Claude and Codex clients to speak text aloud and convert text to audio.4MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that enables local Apple on-device Foundation Model access via any MCP client, supporting text generation, structured output, and multi-turn chat on macOS.2MIT