Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Mlx Launcher

БесплатноНе проверен

An MCP server to autonomously launch, manage, and shutdown local mlx-lm instances on Apple Silicon.(Apple Silicon上でローカルLLM (mlx-lm) を自律的に起動・管理・停止するためのMCPサーバー。)

GitHubEmbed

Описание

An MCP server to autonomously launch, manage, and shutdown local mlx-lm instances on Apple Silicon.(Apple Silicon上でローカルLLM (mlx-lm) を自律的に起動・管理・停止するためのMCPサーバー。)

README

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-lm server 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.

Prerequisites

  • macOS (Apple Silicon M1/M2/M3/M4)
  • Python 3.10 or higher
  • mlx-lm installed 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:

  1. check_system_environment(): Diagnoses the current system environment, returning available unified memory (GB) and architecture details.
  2. check_llm_status(port: int): Returns true if a server is currently running on the specified port.
  3. list_running_servers(): Retrieves a list of all local LLM servers (ports and models) currently running in the background.
  4. 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).
  5. 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.
  6. launch_llm_server(model_name: str, port: int, memory_requirement_gb: float = 4.0): Launches an mlx_lm.server instance in the background. Includes an optional memory requirement check to prevent out-of-memory errors.
  7. 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. If model_name is omitted, it restarts with the currently loaded model.
  8. shutdown_llm_server(port: int): Gracefully terminates the running LLM server on the given port.

from github.com/globalpocket/mcp-mlx-launcher

Установить Mlx Launcher в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install mcp-mlx-launcher

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add mcp-mlx-launcher -- uvx --from git+https://github.com/globalpocket/mcp-mlx-launcher mcp-mlx-launcher

Пошаговые гайды: как установить Mlx Launcher

FAQ

Mlx Launcher MCP бесплатный?

Да, Mlx Launcher MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Mlx Launcher?

Нет, Mlx Launcher работает без API-ключей и переменных окружения.

Mlx Launcher — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Mlx Launcher в Claude Desktop, Claude Code или Cursor?

Открой Mlx Launcher на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Mlx Launcher with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai