# Qemu MCP

> Qemu MCP is a free MCP server for developer tools. Boot and drive QEMU virtual machines headless: keys, screenshots and serial output. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, Linux, macOS, Windows
- **Repository:** https://github.com/0xmortuex/qemu-mcp
- **MCP Registry name:** io.github.0xmortuex/qemu-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

qemu-mcp targets the boot-test loop of operating-system and kernel developers: edit, build, boot, look at the screen, type something, read serial output, repeat. It needs nothing inside the guest, so there is no SSH, guest agent or network. A 40 KB hobby kernel, an installer ISO or a BIOS menu can all be driven the same way.

A boot call accepts an ISO, a direct kernel with append and initrd arguments, or a disk, for any architecture QEMU supports, with options for machine, CPU model, acceleration, CPU topology and port forwarding. Serial output is logged continuously, and a wait tool blocks until a marker such as a login prompt or a panic string appears. Snapshots, pause and resume, media changes, and a raw QMP escape hatch are included, and several named VMs can run at once.

It needs Python 3.10 or newer and QEMU on the PATH. Tools carry MCP behaviour hints, and boot and list are marked destructive because they clean up exited VMs and their serial logs.

## Features

- **Guest-free control:** Works without SSH, a guest agent or networking.
- **Framebuffer screenshots:** Captures a PNG of the VM display headless.
- **Serial wait:** Blocks until a boot marker or panic text appears.
- **Keyboard and mouse:** Types text, presses chords, moves and clicks the pointer.
- **Snapshots:** Save, load, list and delete snapshots on a qcow2 disk.
- **Raw QMP access:** Run any QEMU Machine Protocol command.

## Good for

- Boot-test a hobby kernel after each build
- See a triple fault on screen
- Drive an installer ISO or BIOS menu
- Wait for a login prompt before sending commands
- Snapshot a VM before a risky step

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add qemu-mcp -- uvx qemu-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add qemu-mcp -- uvx qemu-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.qemu-mcp]
command = "uvx"
args = ["qemu-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user qemu-mcp uvx -- qemu-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "qemu-mcp": {
      "command": "uvx",
      "args": [
        "qemu-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 23 tools deletes data and 3 change data; 17 names don't say. From the server's own tool labels and tool names; not verified by us.

- `qemu_boot`: Boot a VM headless from an ISO, kernel or disk
- `qemu_version`: Report the installed QEMU version
- `qemu_machines`: List valid machine values for an architecture
- `qemu_cpu_models`: List valid CPU models for an architecture
- `qemu_disk_create` (name suggests: changes): Create a disk image with qemu-img
- `qemu_screenshot`: PNG of the guest display
- `qemu_type`: Type text as keyboard input
- `qemu_key`: Press a key or chord
- `qemu_mouse`: Move the pointer, click or scroll
- `qemu_pause`: Pause VM execution
- `qemu_resume`: Resume a paused VM
- `qemu_snapshot_save`: Save a RAM and device snapshot
- `qemu_snapshot_load`: Restore a saved snapshot
- `qemu_snapshot_delete` (name suggests: deletes): Delete a snapshot
- `qemu_snapshot_list` (name suggests: reads): List snapshots on the qcow2 disk
- `qemu_change_media`: Swap the medium in a removable drive
- `qemu_serial`: Tail serial console output
- `qemu_serial_send` (name suggests: changes): Write text to the serial console
- `qemu_wait_serial`: Block until given text appears on serial
- `qemu_wait_screen`: Block until the display stops changing
- `qemu_list` (name suggests: reads): List managed VMs with state
- `qemu_stop` (name suggests: changes): Graceful powerdown or force kill
- `qemu_qmp`: Run any raw QMP command

## FAQ

### What do I need installed?

Python 3.10+ and QEMU on your PATH.

### Does the guest need an agent?

No, it works with no cooperation from the guest.

### How do I add Qemu MCP to Claude Code?

Run claude mcp add qemu -- qemu-mcp after pip install qemu-mcp, or use uvx.

### Which architectures work?

Any architecture QEMU supports, such as x86_64, i386, aarch64 and riscv64.

### Can Qemu MCP run more than one VM?

Yes, multiple named VMs can run at once.

### Is Qemu MCP free?

Yes. Qemu MCP is free to use.

### What are the best alternatives to Qemu MCP?

The closest alternatives to Qemu MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/qemu-mcp
