libvirt-mcp

by MatiasVara

11 stars
225 downloads
Not rated
GitHub

About

An experimental MCP server for libvirt, designed to be used with mcp-cli and ollama. It allows interaction with libvirt virtual machines through the MCP protocol.

Details

Author
MatiasVara
GitHub stars
11
Downloads
225
Categories
Other

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name libvirt-mcp
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies (libvirt-devel, python3-devel, uv, ollama), clone the repository, run uv sync, edit server_config.json to set the correct path, then execute run.sh. For debugging, use mcp dev setup.py.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "libvirt-mcp": {
            "libvirt-mcp": {
                "command": "uv",
                "args": [
                    "sync"
                ]
            }
        }
    }
}

McpServers

{
    "libvirt-mcp": {
        "command": "uv",
        "args": [
            "sync"
        ]
    }
}

libvirt-mcp

This is an experimental mcp server for libvirt. The following lines explain how to use it with mcp-cli and ollama. First, install mcp-cli:
git clone https://github.com/chrishayuk/mcp-cli
pip3.11 install -e ".[cli,dev]"
Then, install ollama:
curl -fsSL https://ollama.com/install.sh | sh
ollama serve >/dev/null 2>&1  &
ollama pull granite3.2:8b-instruct-q8_0
You need also uv:
pip install uv
You need the following python bindings:
dnf install -y libvirt-devel python3-devel
Then, in the libvirt-mcp directory, first install the dependencies by running:
uv sync
Then, edit server_config.json and set up the correct path to the libvirt-mcp server. Finally, execute run.sh, that uses ollama as provider and granite as model.

Demo

For debugging, you can install mcp:

dnf install -y npm
pip install mcp

And then, run:
mcp dev setup.py

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.