Qemu MCP
Boot and drive QEMU virtual machines headless: keys, screenshots and serial output
Qemu MCP is a free MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Free
- Platforms
- CLI, Linux, macOS
- Runs
- Locally
- What it can do
- Can delete data (1 tool)
- Version
- 0.1.0
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add qemu-mcp -- uvx qemu-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"qemu-mcp": {
"command": "uvx",
"args": [
"qemu-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"qemu-mcp": {
"command": "uvx",
"args": [
"qemu-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"qemu-mcp": {
"command": "uvx",
"args": [
"qemu-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add qemu-mcp -- uvx qemu-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.qemu-mcp]
command = "uvx"
args = ["qemu-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"qemu-mcp": {
"command": "uvx",
"args": [
"qemu-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "qemu-mcp": { "command": "uvx", "args": [ "qemu-mcp" ] } } }Or run: gemini mcp add -s user qemu-mcp uvx -- qemu-mcp
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "qemu-mcp": { "command": "uvx", "args": [ "qemu-mcp" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "qemu-mcp": { "command": "uvx", "args": [ "qemu-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "qemu-mcp": { "command": "uvx", "args": [ "qemu-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "qemu-mcp": { "command": "uvx", "args": [ "qemu-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "qemu-mcp": { "command": "uvx", "args": [ "qemu-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Qemu MCP
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.
Tools this server provides (23)
Taken from the project documentation; the running server may differ.
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_createName 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_deleteName suggests: deletes
- Delete a snapshot
- qemu_snapshot_listName 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_sendName 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_listName suggests: reads
- List managed VMs with state
- qemu_stopName suggests: changes
- Graceful powerdown or force kill
- qemu_qmp
- Run any raw QMP command
What it does
- 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
Pricing
Free
Open on GitHub; pip install
Qemu MCP 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.


