ddalcu/mlx-serve
Native LLM inference server for Apple Silicon. OpenAI + Anthropic API compatible. No Python. Zig backend, Swift frontend macOS app with chat, music, voice, video generation.
What it solves
mlx-serve provides a high-performance, local inference server for Apple Silicon Macs, eliminating the need for Python or cloud dependencies. It solves the problem of fragmented model formats and API compatibility by supporting both MLX and GGUF formats and exposing multiple industry-standard APIs (OpenAI, Anthropic, and Ollama) on a single port.
How it works
Built as a native Zig binary, the server integrates MLX and an embedded llama.cpp to run a wide variety of LLMs and multimodal models. It utilizes custom Metal kernels, continuous batching, and four types of speculative decoding (PLD, draft companions, Gemma 4 drafter, and Qwen MTP) to maximize decode speeds on Apple hardware. The project also includes a macOS menu-bar app (MLX Core) for model management, chat, and agent orchestration.
Who it’s for
Developers and AI enthusiasts using Apple Silicon Macs who want a fast, lightweight local LLM server that integrates seamlessly with existing coding agents (like Claude Code, Cursor, and Zed) and other AI tools.
Highlights
- Multi-Format Support: Runs any MLX-format model and any GGUF model from HuggingFace.
- Unified API: Single port supports OpenAI, Anthropic Messages, and Ollama APIs.
- Multimodal Capabilities: Native generation of images, video, music, speech (with voice cloning), and 3D models.
- High Performance: Outperforms LM Studio in decode speed using identical MLX weights.
- Agent-Ready: Built-in agent loop, MCP tool calling, and a sandboxed Linux VM for safe agent shell execution.
- Zero Python: Ships as a single, small Zig binary or a notarized macOS app.
- LAN Sharing: Allows using models hosted on another Mac over the network via Bonjour.
Related
- Project
- Project
- Project
- Project
- Project