Skip to main content
Glama

mcp-winuae-emu

An MCP server that provides Amiga 68k debugging tools through the WinUAE emulator. It connects to a custom WinUAE fork via GDB Remote Serial Protocol (RSP), giving AI assistants direct read-write access to the emulated Amiga hardware.

What it does

This server lets an AI assistant (Claude, etc.) launch WinUAE, connect to its GDB server, and then read/write memory, read/write registers, set breakpoints, single-step through code, disassemble Copper lists, and more -- all through MCP tool calls.

Related MCP server: sbl-debugger

Quick Start

1. Download the pre-built WinUAE binary

Download winuae-gdb.exe from the WinUAE fork releases and place it in a directory (e.g., C:\apps\winuae\).

This is a custom build of BartmanAbyss's WinUAE fork with added register and memory write support. See the patch details.

2. Install the MCP server

git clone https://github.com/axewater/mcp-winuae-emu.git
cd mcp-winuae-emu
npm install
npm run build

3. Add to Claude Code

Add to your MCP settings (~/.claude/claude_desktop_config.json or project .mcp.json):

{
  "mcpServers": {
    "winuae-emu": {
      "command": "node",
      "args": ["C:/path/to/mcp-winuae-emu/dist/index.js"],
      "env": {
        "WINUAE_PATH": "C:/apps/winuae",
        "WINUAE_CONFIG": "C:/apps/winuae/Configurations/A500-Dev.uae"
      }
    }
  }
}

4. Provide a Kickstart ROM and config

You need a valid Amiga Kickstart ROM file (e.g., Kickstart 1.3 for A500) and a WinUAE .uae config file. A minimal config:

cpu_type=68000
chipset=ocs
chipmem_size=1
kickstart_rom_file=C:\path\to\kickstart.rom

The server reads your config, merges in GDB-required settings, and launches winuae-gdb.exe automatically.

Configuration

Variable

Default

Description

WINUAE_PATH

C:\apps\winuae

Directory containing winuae-gdb.exe

WINUAE_CONFIG

<WINUAE_PATH>\Configurations\A500-Dev.uae

Path to your .uae config file

WINUAE_GDB_PORT

2345

GDB server TCP port

WINUAE_DEBUG

0

Set to 1 to enable GDB protocol debug logging

Tools

Connection

Tool

Description

winuae_connect

Launch WinUAE and connect to GDB server

winuae_disconnect

Disconnect and stop the emulator

winuae_status

Check if connected and responsive

Memory

Tool

Description

winuae_memory_read

Read memory bytes as hex

winuae_memory_write

Write hex bytes to memory

winuae_memory_dump

Hex + ASCII dump (like a hex editor)

winuae_load

Load a binary file into Amiga memory

CPU

Tool

Description

winuae_registers_get

Read all m68k registers (D0-D7, A0-A7, SR, PC)

winuae_registers_set

Write registers (any subset of D0-D7, A0-A7, SR, PC)

winuae_step

Single-step N instructions

winuae_continue

Resume execution

winuae_pause

Pause execution and read registers

winuae_reset

Pause CPU and read current register state

Breakpoints & Watchpoints

Tool

Description

winuae_breakpoint_set

Set a software breakpoint at an address

winuae_breakpoint_clear

Remove a breakpoint

winuae_watchpoint_set

Break on memory read/write/access

winuae_watchpoint_clear

Remove a watchpoint

Amiga Hardware

Tool

Description

winuae_custom_registers

Read and decode all custom chip registers ($DFF000-$DFF1FE)

winuae_copper_disassemble

Decode a Copper list (WAIT, MOVE, SKIP, END)

winuae_disassemble

Basic m68k disassembly

How it works

  1. Launch: Reads your .uae config, merges GDB settings, spawns winuae-gdb.exe -portable -G -s debugging_features=gdbserver -s debugging_trigger=

  2. Connect: Retries TCP connection to localhost:2345 until the GDB server is ready

  3. Protocol: Communicates via GDB RSP -- packet framing, checksums, ack mode, register/memory commands, breakpoint commands, etc.

Technical notes

  • The -G flag and -s overrides must be CLI arguments. This WinUAE build (v4.10.1) ignores use_gui and debugging_features when set in the config file.

  • The GDB server sends O packets (console output) on connect. The protocol handler skips these automatically.

  • Custom chip register reads use 64-byte chunks because the GDB server has read-size limits for hardware I/O addresses.

  • ECS/AGA-only registers ($DFF1C0+) return zeros on OCS chipset configurations.

  • CIA registers ($BFE001/$BFD000) are not accessible through the GDB memory read interface.

Credits

Limitations

  • Windows only -- requires WinUAE

  • Basic disassembly -- the disassembler only recognizes a few opcodes (RTS, NOP, RTE, etc.); all others show as DC.W

  • No CIA access -- CIA-A/CIA-B registers are not mapped through the GDB server

  • Single connection -- the GDB server accepts one client at a time

License

MIT

Available Tools

23 tools
winuae_breakpoint_clearC

Remove a breakpoint at address

Inputs: address (required).

winuae_breakpoint_setB

Set a software breakpoint at address. Execution stops when PC reaches this address.

Inputs: address (required).

winuae_connectA

Launch WinUAE (BartmanAbyss fork) and connect to GDB RSP server. Must be called before any other WinUAE commands. Set WINUAE_PATH env var to override default path.

Inputs: no named parameters.

winuae_continueA

Resume execution. Will stop at next breakpoint/watchpoint.

Inputs: no named parameters.

winuae_copper_disassembleB

Disassemble a Copper list at given address. Decodes WAIT, MOVE, SKIP, and END instructions.

Inputs: address (required), length.

winuae_custom_registersB

Read and decode Amiga custom chip registers ($DFF000-$DFF1FE). Shows register names and values.

Inputs: no named parameters.

winuae_disassembleB

Disassemble 68k machine code at given address using WinUAE's built-in disassembler. Shows address, hex bytes, and full mnemonic with operands.

Inputs: address (required), count.

winuae_disconnectA

Disconnect from WinUAE and stop the emulator process

Inputs: no named parameters.

winuae_eject_diskA

Eject floppy disk from a drive. Restarts WinUAE to apply.

Inputs: drive.

winuae_insert_diskA

Insert a floppy disk image (ADF, ADZ, DMS, IPF) into a drive. Restarts WinUAE to apply. Use drive 0 for DF0: (boot drive).

Inputs: file (required), drive.

winuae_loadA

Load an Amiga executable into memory by writing it via GDB. Provide the host path to the compiled binary. For disk images (.adf etc.), inserts into DF0: and restarts.

Inputs: file (required), address.

winuae_memory_dumpA

Dump memory as formatted hex + ASCII (like a hex editor). Great for inspecting chip registers, copper lists, etc.

Inputs: length (required), address (required), bytesPerLine.

winuae_memory_readB

Read memory bytes. Returns hex string. Address can use $ prefix for hex (e.g., $DFF000).

Inputs: length (required), address (required).

winuae_memory_writeB

Write bytes to memory. Provide data as hex string (e.g., "48E7FFFE" or "48 E7 FF FE").

Inputs: data (required), address (required).

winuae_pauseB

Pause/break execution (send interrupt to CPU)

Inputs: no named parameters.

winuae_registers_getA

Get all m68k CPU registers: D0-D7, A0-A7, SR, PC

Inputs: no named parameters.

winuae_registers_setC

Set m68k CPU registers. Provide any subset of D0-D7, A0-A7, SR, PC.

Inputs: A0, A1, A2, A3, +14 more.

winuae_resetA

Reset the Amiga by restarting WinUAE with current configuration (hard reset). Reconnects GDB automatically.

Inputs: no named parameters.

winuae_screenshotB

Capture current screen buffer and save as PNG file.

Inputs: filename.

winuae_statusA

Check if WinUAE is running and GDB connection is active

Inputs: no named parameters.

winuae_stepA

Single-step N instructions. Returns registers after stepping.

Inputs: count.

winuae_watchpoint_clearC

Remove a watchpoint

Inputs: type (required), length (required), address (required).

winuae_watchpoint_setC

Set a watchpoint to break on memory read/write/access.

Inputs: type (required), length (required), address (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 23 tools

    Disambiguation4/5

    Most tools map clearly to distinct emulator/debugger operations, with lifecycle, memory, register, breakpoint, and execution controls separated cleanly. Minor overlap exists between memory_read and memory_dump and between load's disk-image behavior and insert_disk, but descriptions mostly disambiguate them.

    Naming Consistency4/5

    All tools use a consistent winuae_ prefix and snake_case, producing predictable names. The only inconsistency is mixed ordering, with some noun_verb names (winuae_memory_read) and others verb-only or noun-only (winuae_disassemble, winuae_screenshot), though this remains readable.

    Tool Count4/5

    The 23 tools cover a broad but legitimate emulator-debugging surface, and each tool earns its place. The count is slightly heavy, but the domain naturally requires separate lifecycle, memory, CPU, breakpoint, watchpoint, and disassembly operations.

    Completeness4/5

    Core workflows are well covered: connection lifecycle, program loading, disk handling, memory access, registers, breakpoints, watchpoints, stepping, disassembly, and screenshots. Some conveniences are missing, such as listing or clearing all breakpoints/watchpoints and symbol loading, but agents can work around these gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with GDB for debugging via the MCP protocol. Supports setting breakpoints, stepping through code, inspecting memory and registers, and more.
      85
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to debug ARM Cortex-M targets via GDB and OpenOCD, supporting attach, breakpoints, stepping, register/memory inspection, and SVD peripheral decoding.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI-powered control and debugging of Commodore 64 programs via the VICE emulator, supporting memory operations, breakpoints, register access, and program loading.
      18
      8 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to fully control the VICE Commodore 64 emulator, including running programs, viewing the screen, sending input, reading/writing memory, setting breakpoints, and assembling 6502 code.
      MIT