EM

Experimental MCP server for libvirt.

Created 3 months ago

Experimental MCP server for libvirt.

development documentation public

What is Experimental MCP server for libvirt.?

libvirt-mcp is an experimental MCP server for libvirt. It provides instructions on how to use it with mcp-cli and ollama, including installation steps and configuration.

Documentation

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

Server Config

{
  "mcpServers": {
    "experimental-mcp-server-for-libvirt.-server": {
      "command": "npx",
      "args": [
        "experimental-mcp-server-for-libvirt."
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: No
Official: No

Project Info

Hosted Featured
Created At: Aug 08, 2025
Updated At: Aug 08, 2025
Author: Matias Vara
Category: experimental
License: MIT
Tags:
development documentation public