oVirt MCP Server
Enables management of oVirt / Red Hat Virtualization environments via AI assistants, supporting VM lifecycle, power operations, snapshots, and infrastructure queries.
README
oVirt MCP Server
An MCP (Model Context Protocol) server for managing oVirt / Red Hat Virtualization (RHV) environments via AI assistants such as Claude.
Requirements
- Python 3.10+
- Access to an oVirt Engine or RHV Manager instance
- An account with sufficient permissions (read-only for queries; admin for power operations)
Installation
git clone https://github.com/your-org/ovirt-mcp-server.git
cd ovirt-mcp-server
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Configuration
Copy the example environment file and fill in your values:
cp env.example .env
| Variable | Description | Example |
|---|---|---|
OVIRT_HOST |
oVirt Engine hostname or IP | ovirt.domain.local |
OVIRT_USER |
Username (include domain) | admin@internal |
OVIRT_PASSWORD |
Password | |
OVIRT_INSECURE |
Skip SSL verification (True/False) |
True |
Set
OVIRT_INSECURE=Falsein production environments with a valid certificate.
Running the server
python ovirt_mcp_server.py
The server communicates over stdio (standard MCP transport).
Claude Code integration
Add the server to your Claude Code MCP configuration (~/.claude/settings.json):
{
"mcpServers": {
"ovirt": {
"command": "/path/to/ovirt-mcp-server/.venv/bin/python",
"args": ["/path/to/ovirt-mcp-server/ovirt_mcp_server.py"],
"env": {
"OVIRT_HOST": "ovirt.domain.local",
"OVIRT_USER": "admin@internal",
"OVIRT_PASSWORD": "your_password",
"OVIRT_INSECURE": "True"
}
}
}
}
Alternatively, use a .env file in the project directory instead of inlining credentials in the config.
Available tools
VM Management
| Tool | Description |
|---|---|
list_vms |
List VMs with optional oVirt search query |
get_vm_details |
Full details for a specific VM |
get_vm_nics |
Network interfaces for a VM |
get_vm_disks |
Disk information for a VM |
get_vm_statistics |
CPU, memory, and network stats |
get_vm_events |
Recent events for a VM |
get_vm_by_ip |
Find a VM by IP address |
search_vms |
Search VMs by query string |
generate_vm_report |
Summary report of all VMs |
get_vms_with_high_resource_usage |
VMs exceeding CPU/memory thresholds |
Power Operations
| Tool | Description |
|---|---|
power_on_vm |
Start a VM |
shutdown_vm |
Graceful shutdown |
power_off_vm |
Force power off (requires confirm=true) |
reboot_vm |
Reboot a VM |
suspend_vm |
Suspend a VM |
bulk_power_operations |
Power on/off/reboot multiple VMs |
VM Lifecycle
| Tool | Description |
|---|---|
migrate_vm |
Migrate VM to a different host |
delete_vm |
Delete a VM (requires confirm=true) |
modify_vm_resources |
Change CPU/memory allocation |
Snapshots
| Tool | Description |
|---|---|
list_vm_snapshots |
List snapshots for a VM |
create_vm_snapshot |
Create a snapshot |
delete_vm_snapshot |
Delete a snapshot (requires confirm=true) |
Infrastructure
| Tool | Description |
|---|---|
list_hosts |
List hypervisor hosts |
get_host_details |
Details for a specific host |
get_host_statistics |
CPU, memory, and network stats for a host |
list_clusters |
List clusters |
get_cluster_details |
Details for a specific cluster |
list_datacenters |
List datacenters |
list_storage_domains |
List storage domains |
get_storage_domain_details |
Details for a storage domain |
list_networks |
List networks |
list_templates |
List VM templates |
get_events |
Retrieve global oVirt events |
Notes
- Destructive operations (
delete_vm,power_off_vm,delete_vm_snapshot,bulk_power_operations) require an explicitconfirm=trueparameter. - All VM and host lookups accept oVirt UUIDs. Use
list_vmsorsearch_vmsto find IDs. - The oVirt REST API must be reachable from the machine running this server.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.