Overview
Features
Basic Libvirt MCP Server
Experimental MCP server enabling LLM-driven control of libvirt to manage VMs (create, destroy, list).
LLM to Libvirt integration
Enables language models to issue libvirt operations through the MCP workflow.
Ollama and Granite model integration
Uses Ollama as provider and Granite as the model for responses.
Configurable via server_config.json
Configure server path and settings through server_config.json.
Dependency management with uv sync
Installs required dependencies by running uv sync in the libvirt-mcp directory.
System and Python dependencies
Requires libvirt-devel and python3-devel, plus uv for Python-based tooling.
Run script to launch
Run run.sh to start the MCP server using Ollama provider and Granite model.
Debugging workflow with mcp
Optional debugging by installing mcp and running mcp dev setup.py.
Who Is This For?
- Developers:Set up and run MCP server to control libvirt with LLMs.
- DevOps engineers:Use MCP to automate VM lifecycle operations via LLMs in production.
- AI researchers:Experiment with natural language prompts to manage libvirt VMs programmatically.




