MCP Llama Swap MCP Server

Running local LLMs means choosing between a strong reasoning model and a fast coding model. You can't load both on a single machine. Manually

Local serverstdioPython

What is the MCP Llama Swap MCP Server?

Running local LLMs means choosing between a strong reasoning model and a fast coding model. You can't load both on a single machine. Manually swapping models kills

Configuration

  • macOS with launchctl, or Linux with systemd - llama-server (llama.cpp) installed - Model configurations as service files (launchd plists or systemd units) - Python 3.10+ - Claude Code CLI pointed at a LiteLLM proxy

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_modelsLists all configured models with load status and current mode
get_current_modelReturns the alias of the currently loaded model
swap_modelUnloads current model, loads the specified one, waits for health check
create_model_configGenerates a new launchd plist (macOS) or systemd unit (Linux) for a model

How to install the MCP Llama Swap MCP Server

{
  "mcpServers": {
    "llama-swap": {
      "command": "uvx",
      "args": [
        "mcp-llama-swap"
      ],
      "env": {
        "LLAMA_SWAP_CONFIG": "/path/to/config.json"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • macOS with launchctl, or Linux with systemd - llama-server (llama.cpp) installed - Model configurations as service files (launchd plists or systemd units) - Python 3.10+ - Claude Code CLI pointed at a LiteLLM proxy
VariableDescriptionRequired
LLAMA_SWAP_CONFIGDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use MCP Llama Swap to list models.”
  • “Use MCP Llama Swap to get current model.”
  • “Use MCP Llama Swap to swap model.”

Frequently asked questions

Running local LLMs means choosing between a strong reasoning model and a fast coding model. You can't load both on a single machine. Manually swapping models kills Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.