acpi-mcp
Reads ACPI tables directly out of a live QEMU guest's physical memory through QEMU's gdbstub (using QEMU's PhyMemMode packet so pointers work with paging enabled), locating the RSDP in the EBDA/BIOS area and walking the XSDT/RSDT, FADT, DSDT and FACS. It decodes and explains tables such as MADT (CPU/APIC IDs, I/O APIC, ISA IRQ→GSI overrides), MCFG (PCIe ECAM config space), HPET, FACS and WAET; maps ISA IRQs to GSIs with polarity/trigger; hexdumps raw tables; and answers OS-dev questions with concrete port writes (e.g. tested S5 power-off and 0xCF9 reset recipes). It can boot a paused (-S) VM in short bursts until a complete checksum-valid table set exists, and either detach (letting the guest continue) or leave it paused for another debugger.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@acpi-mcp read the ACPI tables from the QEMU VM on port 1234 and explain how to power it off"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
acpi-mcp
Let your AI agent read the firmware's ACPI tables and tell you what they mean.
acpi-mcp is an MCP server that reads ACPI tables and explains them for OS developers. It covers how many CPUs there are and their APIC IDs, where the I/O APIC lives, which ISA IRQs are remapped, where the HPET and PCIe config space are, and the exact port writes that power the machine off or reset it.
It reads tables from three places:
a live QEMU guest, out of guest physical memory through QEMU's gdbstub (works even after the guest turns on paging);
a directory of table files: Linux's
/sys/firmware/acpi/tables, oracpidump -boutput from any machine;optionally, AML disassembly with
iaslif you have it installed. Nothing else needs it.
Companion to qemu-mcp (boot and drive the VM) and gdbstub-mcp (debug the kernel).
What it looks like
This is real output from QEMU 11 (-M q35 -smp 2), read live from the guest:
> acpi_table MADT
MADT revision 3: local APIC base 0xfee00000 (dual 8259 PICs present: mask them before using the APIC)
2 usable CPU(s), APIC IDs [0, 1]
The BSP is usually APIC ID 0; start the others with INIT-SIPI-SIPI
I/O APIC id 0 at 0xfec00000, GSI base 0
Interrupt source overrides (legacy ISA IRQ -> GSI):
IRQ0 -> GSI 2 (I/O APIC 0 pin 2), bus default, bus default - this is why the PIT timer shows up on I/O APIC pin 2, not 0
IRQ9 -> GSI 9 (I/O APIC 0 pin 9), active high, level - non-ISA polarity/trigger: program the redirection entry to match
...
Local APIC NMI on LINT1 for all CPUs (bus default, bus default) - program LVT LINT1 as NMI
> acpi_find "how do I shut down the machine?"
Soft power-off (S5): \_S5_ = SLP_TYPa 0, SLP_TYPb 0
1. If SMI_CMD (0xb2) is non-zero and SCI_EN (bit 0 of PM1a_CNT) is clear, enable ACPI: outb(0xb2, 0x2) and wait for SCI_EN
2. outw(0x604, 0x2000) # SLP_TYPa << 10 | SLP_EN (bit 13)
> acpi_find "reboot"
Reset: write 0xf to I/O port 0xcf9 (8-bit) (FADT RESET_REG, RESET_REG_SUP set). Fall back to the 8042 if it returns.
> acpi_find "pci config space"
MCFG: PCI Express ECAM (memory-mapped config space)
segment 0, buses 0-255: base 0xb0000000 (256 MiB)
config address of bus B, device D, function F, offset O = 0xb0000000 + ((B - 0) << 20 | D << 15 | F << 12 | O)
> acpi_table DSDT
8491 bytes of AML bytecode, 37 Device objects
Recognised devices:
\_SB_.PCI0 PNP0A08 (compatible PNP0A03) PCI Express host bridge
\_SB_.HPET PNP0103 HPET
\_SB_.PCI0.SF8_.KBD_ PNP0303 PS/2 keyboard (8042)
\_SB_.PCI0.SF8_.COM1 PNP0501 16550 serial port (COM)
...The recipes are tested, not just printed. The integration tests write the exact
instructions acpi_find prescribes into a live guest, run them, and check the
result: the shutdown recipe powers off both -M pc and -M q35, and the reset
recipe resets q35. A control case that only runs hlt keeps running.
Related MCP server: Aragorn
Why
ACPI is the first wall every hobby OS hits after "hello world". You need it for SMP, the I/O APIC, the HPET, PCIe and power-off. The tables are binary structures spread across firmware memory, the spec runs to over a thousand pages, and the bugs are silent: miss the IRQ0 → GSI2 override and your timer simply never fires. This server reads the tables your firmware actually built and answers in terms of what to program.
As far as I could find, no other MCP server reads or explains ACPI tables.
Install
pip install acpi-mcp
claude mcp add acpi -- acpi-mcpUsage
Start QEMU with its gdbstub (-s). -S is fine, because acpi-mcp lets the firmware
run until the tables exist:
qemu-system-x86_64 -M q35 -smp 2 -kernel kernel.elf -s -SThen ask your agent something like "load the ACPI tables from the VM on port 1234 and tell me how to route the keyboard interrupt through the I/O APIC".
On a Linux machine you can read its own tables (as root):
acpi_load(name="host", path="/sys/firmware/acpi/tables")Tools
Tool | What it does |
| Load tables under a name from |
| List every table: address, length, checksum, OEM, and what the table is for. |
| Decode one table and explain it: FADT, MADT, HPET, MCFG, DSDT/SSDT, FACS, RSDT/XSDT, WAET, RSDP. |
| Map ISA IRQs 0-15 to GSI and I/O APIC pin, with polarity and trigger mode. |
| Answer OS-dev questions: shutdown, reset, HPET, PCI config, CPUs, IRQ routing, PM timer, keyboard, serial, RTC century, SCI. |
| Hexdump a table's raw bytes. |
| AML to ASL with |
| List loaded table sets. |
How it reads a live VM
It connects to the gdbstub. QEMU pauses the guest while a debugger is attached.
It switches the stub to physical memory with QEMU's
Qqemu.PhyMemMode:1, so ACPI's physical pointers work even when the guest has paging on. On stubs without this packet it reads virtual addresses and says so in the output.It searches the EBDA and
0xE0000-0xFFFFFfor a checksummedRSD PTR, then walks the XSDT (or RSDT), the FADT, the DSDT and the FACS.If the CPU hasn't run the firmware yet (
-S), it runs the guest in short bursts until a complete, checksum-valid table set exists. It returns as soon as one does.It detaches with
D;1, and the guest continues. Passresume=Falseto leave it paused, for example before attaching gdbstub-mcp to a-SVM. QEMU allows only one debugger at a time.
Limits
The AML reader is a structured walker, not an interpreter. It parses the Scope, Device and Name objects that describe devices and skips Method bodies. Anything a method computes at runtime, such as a
_STAthat hides a device, isn't evaluated. If it ever has to fall back to byte-scanning a region (anIfat scope level), the output says so. Useacpi_disassemble(iasl) for an exact listing.UEFI guests (OVMF) pass the RSDP to the OS through the EFI system table, not the BIOS area, so the live search won't find it. Load those tables from a directory (
acpidump -b) for now.x86 only for now. ARM's ACPI (GICC/GICD in the MADT, GTDT) is on the backlog.
Tests
pip install ".[test]" "ruff==0.16.0" "mypy==2.3.0"
ruff check src tests && mypy --strict src
pytest testsThe unit tests run on real tables captured from QEMU (tests/fixtures/tables/), so
they need no QEMU. tests/test_qemu_integration.py reads live tables from i386 and
x86_64 guests on both pc and q35, checks that the CPU count follows -smp, checks
resume semantics, and runs the shutdown and reset recipes inside the guest. It skips
any QEMU binary that isn't installed.
License
MIT
Available Tools
8 toolsacpi_disassembleA
Disassemble a DSDT/SSDT's AML to ASL source with ACPICA's iasl -d.
Needs iasl on PATH (Debian/Ubuntu: apt install acpica-tools; macOS: brew install acpica; Windows: the ACPICA release from intel.com/acpi). acpi_table already lists devices and _S5_ without iasl.
Inputs: name (required), index, max_chars, signature. Returns: result
acpi_dumpC
Hexdump a table's raw bytes (offset/length within the table, max 4096 bytes).
Inputs: name (required), signature (required), index, length, +1 more. Returns: result
acpi_findB
Answer an OS-developer question from the tables, with the exact ports, addresses and values to use. Understands: shutdown / power off, reset / reboot, hpet, pci config / ecam, cpus / smp, irq routing / ioapic, pm timer, keyboard / ps2, serial, rtc century, sci.
Inputs: name (required), question (required). Returns: result
acpi_interrupt_routingB
Map every legacy ISA IRQ (0-15) to its GSI and I/O APIC pin, with polarity and trigger mode, from the MADT's interrupt source overrides. This is the table to program I/O APIC redirection entries from.
Inputs: name (required). Returns: result
acpi_loadA
Load a set of ACPI tables and register it under name.
Pass exactly one source:
port: a live VM's gdbstub (QEMU -s is port 1234). Tables are read from guest PHYSICAL memory, so this works even after the guest enables paging. QEMU allows one debugger at a time - disconnect gdbstub-mcp first. QEMU pauses the guest while attached; resume=True detaches afterwards (the guest runs on, even one started with -S), resume=False leaves it paused. If QEMU was started with -S the firmware hasn't built the tables yet: set boot_wait_s=5: it runs the guest until the tables exist, then stops.
path: a directory of raw tables - /sys/firmware/acpi/tables on Linux (needs root), or the output of
acpidump -b(any OS). Tables are a snapshot; load again to re-read.
Inputs: name (required), host, path, port, +2 more. Returns: result
acpi_setsC
List loaded table sets.
Inputs: no named parameters. Returns: result
acpi_tableB
Decode one table and explain what it means for an OS.
signature: FACP/FADT, APIC/MADT, HPET, MCFG, DSDT, SSDT, FACS, RSDT, XSDT, WAET, RSDP. index picks among duplicates (e.g. several SSDTs).
Inputs: name (required), signature (required), index. Returns: result
acpi_tablesC
List every table: signature, address, length, checksum, OEM, and what it's for.
Inputs: name (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct layer of the ACPI workflow: discovery (acpi_tables, acpi_sets), loading (acpi_load), inspection (acpi_table, acpi_dump, acpi_disassemble), and higher-level queries (acpi_find, acpi_interrupt_routing). The main overlap is acpi_find, which can answer IRQ-routing or table-derived questions that specialized tools also surface, but the descriptions make the intended split clear.
All names use snake_case with a consistent acpi_ prefix and are readable. However, the action style is mixed—some are verbs (load, find, dump, disassemble) while others are noun-like list tools (tables, table, sets)—so it is not a uniform verb_noun convention.
Eight tools is well within the sweet spot and each covers a distinct stage of ACPI table workflows. There is no obvious padding or missing core operation.
The surface covers loading, listing, decoding, raw dumping, disassembly, IRQ routing, and developer Q&A, which is strong end-to-end coverage. Minor gap: loaded sets can be listed but not unloaded or removed, so lifecycle management is not fully closed.
Maintenance
Related MCP Connectors
Query Allen-Bradley and Siemens PLC projects, live tag values, and analyses in plain English.
Read-only server insight: why a Linux server or K8s cluster is slow, failing or changed.
Evidence-oriented REA + Ghidra static-analysis workflows, read-only PE32 and Delphi VMT tools.
Byte-exact reverse engineering of Super Mario World (SNES).
Related MCP Servers
- FlicenseAqualityDmaintenanceA Model Context Protocol server for conducting Linux binary analysis and guest system forensics within QEMU virtual machines. It enables automated VM lifecycle management, memory dumping, and interactive debugging workflows for analyzing processes and artifacts.223-
- AlicenseNot gradedqualityDmaintenanceA direct kernel debugger MCP server for Windows security research that connects to VM kernels via kdnet using DbgEng COM interfaces. It exposes over 60 tools for memory inspection, breakpoint management, and coordinated execution control between the host and target VM.3Do What The F*ck You Want To Public
- FlicenseAqualityDmaintenanceEnables AI agents to debug embedded systems by providing a comprehensive interface for GDB operations across multiple architectures like ARM and x86. It supports remote debugging via gdbserver or QEMU, allowing for detailed inspection of memory, registers, stack frames, and variables.31-
- AlicenseAqualityCmaintenanceGives AI agents direct hands-on access to physical hardware and host OS resources over local stdio: serial monitoring with crash-dump detection, firmware compile/flash via arduino-cli, PlatformIO, ESP-IDF and esptool, direct GPIO/I2C/SPI over FTDI bridges, BLE GATT operations, webcam or microscope snapshots, logic analyzer captures, audio recording and test tones, GUI screenshots and hotkeys, and Android ADB commands. It also helps diagnose toolchain and serial-permission problems and identify or terminate processes that lock a port.33MIT