qemu-mcp-server

qemu-mcp-server

An MCP server that gives AI agents direct control over QEMU virtual machines.

Category
Visit Server

README

qemu-mcp-server

npm

An MCP server that gives AI agents direct control over QEMU virtual machines.

Create, boot, snapshot, inspect, and destroy VMs through standard MCP tool calls. The server manages QEMU processes and communicates through QMP (QEMU Machine Protocol).

Quick start

1. Install QEMU

# Ubuntu/Debian
sudo apt install qemu-system-arm qemu-system-x86

# Fedora
sudo dnf install qemu-system-aarch64 qemu-system-x86

# macOS
brew install qemu

# Windows -- use WSL (see "Windows support" below)

2. Install the server

npm install -g qemu-mcp-server

Or run without installing:

npx qemu-mcp-server

Or from source:

git clone https://github.com/Abdalla-Eldoumani/qemu-mcp-server
cd qemu-mcp-server
npm install && npm run build

The server checks for QEMU on startup and tells you exactly what to install if anything is missing.

3. Connect your AI client

Claude Desktop -- add to your MCP config:

{
  "mcpServers": {
    "qemu": {
      "command": "qemu-mcp-server"
    }
  }
}

Cursor -- add to .cursor/mcp.json:

{
  "mcpServers": {
    "qemu": {
      "command": "npx",
      "args": ["qemu-mcp-server"]
    }
  }
}

Claude Code:

claude mcp add qemu -- npx qemu-mcp-server

4. Try it

Ask your AI agent:

"Create an aarch64 VM with 128MB of memory and tell me what you see on the console."

The agent will call create_vm, wait for output, read the console, and report back.

What agents can do

Create and manage VMs

  • create_vm -- Start a VM with specified architecture, memory, and disk/kernel
  • destroy_vm -- Stop and clean up a VM
  • list_vms -- See all running VMs

Control execution

  • pause_vm, resume_vm, reset_vm, shutdown_vm

Snapshots (requires a qcow2 disk image)

  • save_snapshot, load_snapshot, delete_snapshot, list_snapshots

Inspect state

  • get_vm_status, get_vm_info, read_console, dump_memory

Run commands

  • send_console_input -- Type into the serial console
  • wait_for_console_output -- Wait for expected text in output

Example: booting a Linux kernel

If you have a Linux kernel image and root filesystem:

"Create an x86_64 VM with 512MB memory, disk image /path/to/rootfs.qcow2, and kernel /path/to/bzImage with kernel args 'console=ttyS0 root=/dev/vda'."

The agent can then interact with the Linux system through the serial console using send_console_input and wait_for_console_output.

Windows support

This server uses Unix sockets for QMP communication, so it does not run natively on Windows. Use WSL instead:

  1. Install WSL: wsl --install in PowerShell
  2. Install QEMU inside WSL: sudo apt install qemu-system-arm qemu-system-x86
  3. Install Node.js inside WSL
  4. Run the server inside WSL

For Claude Desktop or Cursor on Windows, configure the MCP server to run through WSL:

{
  "mcpServers": {
    "qemu": {
      "command": "wsl",
      "args": ["node", "/path/in/wsl/to/qemu-mcp-server/dist/index.js"]
    }
  }
}

Configuration

All optional. Set via environment variables:

Variable Default What it does
TRANSPORT stdio "stdio" or "http"
HTTP_PORT 3000 Port for HTTP transport
QEMU_BINARY_DIR (empty) Custom path to QEMU binaries
VM_TEMP_DIR os.tmpdir() Where to store sockets and temp files
MAX_VMS 10 Max concurrent VMs
QMP_TIMEOUT_MS 30000 Command timeout (ms)
CONSOLE_BUFFER_LINES 1000 Console output buffer size per VM
LOG_LEVEL info debug, info, warn, error

Supported architectures

  • aarch64 (ARM64)
  • x86_64

Requirements

  • Node.js 18+ (20+ recommended)
  • QEMU installed and on PATH
  • Linux, macOS, or Windows with WSL

License

MIT

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured