Back to catalog

libvirt-mcp MCP Server

Experimental MCP server for libvirt that enables LLMs to interact with libvirt to create, delete, or list virtual machines on the system.

Get this MCP server

Experimental MCP server for libvirt that enables LLMs to interact with libvirt to create, delete, or list virtual machines on the system.

Installation

From source code with dependencies

# Install mcp-cli
git clone https://github.com/chrishayuk/mcp-cli
pip3.11 install -e ".[cli,dev]"

# Install ollama
curl -fsSL https://ollama.com/install.sh | sh
ollama serve >/dev/null 2>&1 &
ollama pull granite3.2:8b-instruct-q8_0

# Install uv
pip install uv

# Install python bindings
dnf install -y libvirt-devel python3-devel

# In libvirt-mcp directory
uv sync

Features

  • Create virtual machines through libvirt
  • Delete virtual machines through libvirt
  • List virtual machines on the system
  • Integration with ollama and granite models
  • Compatibility with mcp-cli

Notes

Requires editing server_config.json to set the correct path to the libvirt-mcp server. Execution is done through the run.sh script, which uses ollama as the provider and granite as the model. For debugging, install mcp via npm and run 'mcp dev setup.py'. Includes a demo GIF with Claude integration.

Comments (0)

Sign In Sign in to leave a comment.

Spark Drops

Weekly picks: best new AI tools, agents & prompts

Venture Crew
Terms of Service

© 2026, Venture Crew