by MatiasVara
Integrates Libvirt virtualization management with AI models via Ollama, allowing natural‑language interaction to control virtual machines.
Provides an experimental MCP server that connects Libvirt with large language models (e.g., Granite) through Ollama, enabling AI‑driven commands for virtual machine lifecycle management.
git clone https://github.com/chrishayuk/mcp-cli
pip3.11 install -e "[.][cli,dev]"
curl -fsSL https://ollama.com/install.sh | sh
ollama serve >/dev/null 2>&1 &
ollama pull granite3.2:8b-instruct-q8_0
pip install uv
dnf install -y libvirt-devel python3-devel
libvirt-mcp
directory, synchronize Python dependencies:
uv sync
server_config.json
to point to the correct libvirt‑mcp server path../run.sh
This script launches the MCP server using Ollama as the provider and Granite as the model.uv
for Python dependency management.server_config.json
.mcp
CLI tool.Q: Which model does the server use by default?
A: The example uses granite3.2:8b-instruct-q8_0
pulled from Ollama.
Q: Can I use a different LLM provider? A: Yes, as long as the provider is supported by Ollama and the model is available locally.
Q: Do I need root privileges to manage VMs? A: Libvirt operations typically require appropriate permissions; run the server with a user that has access to the libvirt socket.
Q: How do I debug issues?
A: Install the mcp
CLI (pip install mcp
) and run mcp dev setup.py
to inspect the server behavior.
Q: Is there a Windows support?
A: The instructions target Fedora/RHEL (dnf
). On Windows, use equivalent package managers and ensure Libvirt and Python bindings are installed.
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.
For debugging, you can install mcp:
dnf install -y npm
pip install mcp
And then, run:
mcp dev setup.py
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by Skyvern-AI
Skyvern automates browser-based workflows using LLMs and computer vision, offering a robust solution for repetitive online tasks.
by PipedreamHQ
Connect APIs quickly, run event‑driven automations, and execute custom code in Node.js, Python, Go, or Bash on a hosted platform.
by czlonkowski
Provides AI assistants with structured access to n8n node documentation, properties, and operations, enabling automated workflow creation, validation, and management.
by executeautomation
mcp-playwright is a Model Context Protocol (MCP) server that enables large language models (LLMs) to perform browser automation and web scraping tasks using Playwright.
by browserbase
Provides cloud browser automation capabilities for LLMs, enabling web navigation, interaction, screenshot capture, and data extraction through Browserbase and Stagehand.
by haris-musa
excel-mcp-server is a Python-based Model Context Protocol (MCP) server that enables AI agents to programmatically create, read, and modify Excel files without requiring Microsoft Excel to be installed.
by mobile-next
Mobile-mcp is a Model Context Protocol (MCP) server designed for scalable mobile automation, app scraping, and development across iOS and Android devices, including physical devices, simulators, and emulators.
by anaisbetts
mcp-installer is an MCP server designed to automate the installation of other MCP servers, simplifying the process for users.
by leonardsellem
An MCP server that enables AI assistants to interact with n8n workflows through natural language.