mcp-utm
mcp-utm
AppleScript를 통해 macOS에서 UTM 가상 머신을 관리하기 위한 MCP 서버입니다.
UTM VM을 복제, 구성 및 제어하기 위한 22가지 도구를 제공합니다. 여기에는 Apple Virtualization Framework 복제본에 대한 적절한 MAC 주소 무작위화가 포함되어 있어, 고유한 네트워크 ID를 가진 VM을 동시에 실행할 수 있습니다.
설치
# PyPI
uvx mcp-utm
# Or install globally
uv tool install mcp-utm
pip install mcp-utmRelated MCP server: Discord Server Setup MCP
Claude Code 설정
{
"mcpServers": {
"utm": {
"command": "uvx",
"args": ["mcp-utm"]
}
}
}요구 사항
macOS (AppleScript /
osascript사용)UTM 4.6 이상 (다운로드 또는
brew install --cask utm)Python 3.11 이상
도구
수명 주기
도구 | 설명 |
| 상태와 함께 등록된 모든 VM 나열 |
| VM의 상태 및 구성 가져오기 |
| 고유한 무작위 MAC으로 템플릿 복제 |
| 중지되거나 일시 중단된 VM 시작 |
| 실행 중인 VM 중지 (정상 종료 또는 강제 종료) |
| VM 영구 삭제 |
상태
도구 | 설명 |
| 실행 중인 VM을 메모리로 일시 중단 |
| VM이 대상 상태에 도달할 때까지 대기 |
네트워킹
도구 | 설명 |
| ARP 테이블을 통해 VM IP 검색 |
| MAC 주소 또는 네트워크 모드 업데이트 |
구성
도구 | 설명 |
| 메모리 및 CPU 코어 업데이트 |
| VM 이름 변경 |
| 동적 해상도 전환 |
디렉토리 공유 (VirtioFS)
도구 | 설명 |
| 공유 디렉토리 나열 |
| 호스트 디렉토리 공유 추가 |
| 디렉토리 공유 제거 |
| 모든 공유 교체 |
드라이브
도구 | 설명 |
| 연결된 드라이브 나열 |
| ISO 또는 디스크 이미지 연결 |
이식성
도구 | 설명 |
| VM을 |
|
|
콘솔
도구 | 설명 |
| 콘솔 액세스를 위한 직렬 포트 주소 가져오기 |
MAC 무작위화 작동 방식
Apple의 Virtualization Framework는 config.plist에 직접 작성된 MacAddress 변경 사항을 무시합니다. UTM은 구성을 메모리에 캐시하기 때문입니다. 이 서버는 UTM의 내부 상태를 올바르게 업데이트하는 AppleScript의 update configuration 명령을 사용하여 각 복제본에 고유한 MAC을 부여하고, 결과적으로 192.168.64.0/24 서브넷에서 고유한 IP를 갖게 합니다.
라이선스
MIT
Available Tools
22 toolsattach_driveA
Attach an ISO or disk image to a removable drive.
Args: name: VM name (must be stopped) drive_id: Drive ID (from list_vm_drives) source_path: Path to ISO or disk image file
Inputs: name (required), drive_id (required), source_path (required).
clone_vmA
Clone a UTM template VM with a unique random MAC address.
Args: template: Name of the template VM to clone name: Name for the new VM randomize_mac: Assign a random MAC so clones get unique IPs (default: True)
Inputs: template (required), name (required), randomize_mac.
delete_vmC
Delete a VM permanently. Cannot be undone.
Inputs: name (required).
export_vmB
Export a VM to a .utm file.
Args: name: VM name path: Destination file path (e.g. "/tmp/my-vm.utm")
Inputs: name (required), path (required).
get_serial_portA
Get the serial port address of a VM.
Returns the ptty path (for Apple VF) or TCP address/port (for QEMU) that can be used for direct console access without SSH.
Args: name: VM name
Inputs: name (required).
get_vmA
Get status and configuration of a VM by name.
Inputs: name (required).
get_vm_ipA
Discover the IP address of a running VM via ARP.
Polls the ARP table for the VM's MAC address. Works for Apple VF (macOS) VMs on the 192.168.64.0/24 subnet and bridged QEMU VMs.
Args: name: VM name timeout: Seconds to wait for ARP discovery (default: 60)
Inputs: name (required), timeout.
import_vmC
Import a VM from a .utm file.
Args: path: Path to the .utm file to import
Inputs: path (required).
list_vm_drivesA
List drives attached to a VM with their IDs and sizes.
Args: name: VM name
Inputs: name (required). Returns: result
list_vmsA
List all registered UTM virtual machines with their status.
Inputs: no named parameters. Returns: result
rename_vmA
Rename a stopped VM.
Args: name: Current VM name (must be stopped) new_name: New name for the VM
Inputs: name (required), new_name (required).
set_vm_displayA
Toggle dynamic resolution on the VM display.
Args: name: VM name (must be stopped) dynamic_resolution: Enable or disable dynamic resolution
Inputs: name (required), dynamic_resolution (required).
set_vm_networkA
Update network configuration of a stopped VM.
Args: name: VM name (must be stopped) mac_address: New MAC address (e.g. "aa:bb:cc:dd:ee:ff"), or None to keep current mode: Network mode ("shared" or "bridged"), or None to keep current
Inputs: name (required), mac_address, mode.
set_vm_resourcesA
Update memory and CPU cores of a stopped VM.
Args: name: VM name (must be stopped) memory: Memory in MiB, or None to keep current cpu_cores: Number of CPU cores, or None to keep current
Inputs: name (required), memory, cpu_cores.
start_vmB
Start a stopped or suspended VM.
Inputs: name (required).
stop_vmB
Stop a running VM.
Args: name: VM name force: Force stop if graceful shutdown fails
Inputs: name (required), force.
suspend_vmA
Suspend a running VM to memory.
Args: name: VM name (must be running) save: Save VM state to disk for later resume (default: True)
Inputs: name (required), save.
wait_for_vmA
Wait until a VM reaches a target status.
Useful for orchestration — start a VM then wait for it to be ready.
Args: name: VM name target_status: Status to wait for: "stopped", "started", or "paused" timeout: Seconds to wait (default: 120)
Inputs: name (required), target_status, timeout.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 22 tools
Each tool targets a distinct operation: lifecycle (start/stop/suspend/delete/clone/import/export/rename), configuration (resources/network/display/shares/drives), and status (get/ip/serial/list/wait). No functional overlaps.
All tools follow a consistent verb_noun pattern in snake_case (e.g., start_vm, set_vm_network). No mixing with camelCase or inconsistent verb styles.
22 tools is slightly above the typical 3-15 range but justified by comprehensive VM management—lifecycle, configuration, and diagnostics are all covered without being excessive.
Covers CRUD, lifecycle, and most configuration aspects. Minor gap: no tool to create a VM from scratch (only clone/import), but core workflows are well-supported.
Maintenance
Related MCP Connectors
Rent a Mac by the hour or day. An MCP server and a skill let AI agents order, use and stop it.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Fast Mac builds for agents: build, test and simulate iOS/macOS apps, ship to TestFlight.
Rent and manage dedicated Apple Silicon Macs for iOS builds and CI/CD from your AI agent.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides programmatic access to Apple's container CLI tool on macOS, enabling users to perform 50+ container operations including creation, management, and system control of Apple Silicon containers.83 PyPI3Apache 2.0
- AlicenseAqualityCmaintenanceAn automation tool for macOS that uses AppleScript and JXA to manage Discord server setups through AI assistants. It enables the creation and configuration of servers, channels, roles, and settings using pre-built templates or custom commands.1935MIT
- FlicenseBqualityDmaintenanceEnables macOS automation through 45 AppleScript-powered tools for system control, app management, calendar, reminders, notifications, clipboard, and task scheduling.45-
- AlicenseAqualityDmaintenanceEnables AI assistants to manage VMware Fusion virtual machines on macOS using the vmrun CLI, including starting, stopping, and snapshot operations.14MIT