llm-mcp
Click on "Deploy 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., "@llm-mcp ask Qwen to translate this into Korean: Good morning"
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.
llm-local
Run Qwen3.8-27B on an Apple Silicon Mac with MLX, and use it from:
Claude Code, through an MCP server (
llm-mcp)any program, through an OpenAI-compatible API on
http://127.0.0.1:<port>/v1a Mac app that starts and stops the server
The server listens only on 127.0.0.1. Nothing is exposed to the network, and there is no authentication.
Install
You need an Apple Silicon Mac and uv. The default model is the 4-bit mxfp4 build (about 15 GB of weights). With a 32K-token context it needs about 21 GB of free memory.
A second, optional model is Qwen3.6-35B-A3B, a mixture-of-experts model that uses about 3B parameters per token. It generates and reads prompts about six times faster than Qwen3.8-27B but is weaker at coding and reasoning, so it suits short tasks such as translation and summaries. It needs about 22 GB of free memory, so run one model at a time on a 32 GB Mac.
git clone https://github.com/phykn/llm-local.git && cd llm-local
uv sync
.venv/bin/llmctl pull qwen3.8-27b # downloads the weights into weight/ once
.venv/bin/llmctl pull qwen3.6-35b-a3b # optionalRelated MCP server: Ollama MCP Server
Use
.venv/bin/llmctl start qwen3.8-27b # uses only weights already in weight/
claude mcp add llm-local --scope user -- "$PWD/.venv/bin/llm-mcp"Start a new Claude Code session and ask, for example: "Use llm-local to translate this paragraph into Korean: ...".
As a Mac app: run
scripts/build-app.shonce, then openLLM-LOCAL.app, pick a model and press Start. Quitting the app, even with Force Quit, stops the server.Stop the model:
llmctl stop qwen3.8-27bCheck what is running:
llmctl status
MCP tools
ask: sends a prompt (and an optional system prompt) to the local model and returns the answer text. Thinking is off by default; pass
think: truefor harder problems. It is slower, and the reasoning itself is not returned.list_models: shows the registered models, whether each is running, and the command to start it.
HTTP API
With mlx-vlm, model must be the id of the loaded model: the entry with "loaded": true in curl -s http://127.0.0.1:8020/v1/models (its snapshot path under weight/).
curl http://127.0.0.1:8020/v1/chat/completions -H 'content-type: application/json' -d '{
"model": "<id of the loaded model>",
"messages": [{"role": "user", "content": "Hello"}],
"enable_thinking": false,
"max_tokens": 256
}'Qwen3.8 thinks before answering by default. Send "enable_thinking": false (mlx-vlm) or "chat_template_kwargs": {"enable_thinking": false} (mlx-lm) to turn it off. Any OpenAI client works with base_url="http://127.0.0.1:8020/v1".
Models
models.toml lists the models. llmctl, the MCP server and the app all read this file.
[models."qwen3.8-27b"]
server = "mlx-vlm" # mlx-vlm or mlx-lm
run = "mlx-community/Qwen3.8-27B-mxfp4@97ab0819817ab1c61d7d39f9169fc71999915641" # Hugging Face id@commit, or a local directory
port = 8020
memory_gb = 21 # llmctl warns when less memory than this is free
max_kv_size = 32768 # context limit in tokens (mlx-vlm only)
think = { temperature = 1.0, top_p = 0.95, top_k = 20 }
nothink = { temperature = 0.7, top_p = 0.8, top_k = 20, presence_penalty = 1.5 }To add a model, add an entry with its own port, then run llmctl pull <name>. Pin run to a commit so the weights do not change under you.
Layout
src/llm_local/: the Python package.registry.pyreadsmodels.toml,backends.pycalls a running server,ctl.pyisllmctlandmcp_server.pyisllm-mcp.app/: the Mac app in Swift.scripts/build-app.shbuilds it intoLLM-LOCAL.app.weight/: downloaded weights (HF_HOME).logs/: server logs and pid files.
Test
.venv/bin/pytest # uses a fake server
.venv/bin/pytest -m live # against a running modelLicense
MIT. Qwen3.8 weights are licensed separately under Apache-2.0.
Available Tools
2 toolsaskAskARead-only
Send one prompt to a local model and return its answer text.
system: optional system prompt. model: a name from list_models; omit for the default. think: let the model reason before answering. Better on hard problems, but often several times slower; the reasoning itself is not returned. max_tokens: upper bound on generated tokens, reasoning included. finish_reason "length" means the answer was cut off.
Inputs: prompt (required), model, think, system, +1 more. Returns: object
list_modelsList ModelsARead-only
The registered local models, which one is the default, and whether each is running (with its start command if not).
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools occupy entirely disjoint roles: list_models is a read-only discovery/inventory call, while ask performs inference. An agent can unambiguously pick between them, and all the optional knobs (system, model, think, max_tokens) are correctly folded into ask as parameters rather than separate tools.
list_models follows a clean verb_noun pattern, but ask is a bare verb with no noun, so the set is not fully uniform (ask_model or prompt_model would have matched). With only two tools this is a minor, still-readable deviation.
Two tools is thin for a server whose apparent scope is managing and using local models. The surface is defensible because most capability is expressed as ask parameters, but it sits at the borderline of feeling under-specified.
Discover models and send a single prompt covers the core inference loop, but there is no model lifecycle control (starting/stopping a model, despite list_models reporting start commands and running state), no multi-turn chat, no streaming, and no embeddings. These are notable gaps an agent will hit quickly.
Related MCP Connectors
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Use AI models for chat, image, and video generation from Claude Code and other MCP hosts.
Related MCP Servers
- AlicenseAqualityCmaintenanceA bridge that enables Claude Code to interact with local Ollama instances for text generation, multi-turn chat, and vision-based analysis. It supports model management tasks such as listing, pulling, and showing details, alongside generating text embeddings.61MIT
- AlicenseNot gradedqualityDmaintenanceExposes local Ollama instances as tools for Claude Code, allowing users to offload code generation, text drafting, and embedding tasks to local GPUs. It supports multi-turn conversations and model management through the Model Context Protocol.MIT
- AlicenseAqualityCmaintenanceLets Claude query and manage a local Ollama server — list models, inspect them, run generate/chat completions, pull or delete models.8MIT
- AlicenseNot gradedqualityDmaintenanceBridges LM Studio local models to Claude Code as MCP tools, enabling private and free AI-assisted subtasks. Includes respond and models tools with automatic model selection and structured output.1MIT