MacVM-MCP
Connects via SSH to a macOS machine and exposes tools for security research and malware analysis, including static Mach-O/signing/entitlements inspection, behavioral monitoring, network capture, persistence checks, macOS security feature checks, Frida/LLDB dynamic instrumentation, app bundle and pkg auditing, and incident response scans.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MacVM-MCP — macOS Analysis MCP Server
A Model Context Protocol (MCP) server for macOS security research and malware analysis. Connects to a macOS machine via SSH and exposes 40+ tools, 4 composite playbooks, 5 prompts, and 5 resources for end-to-end mac threat triage.
Quick Install
One-liner (interactive):
git clone https://github.com/zixuantemp/MacVM-MCP && cd MacVM-MCP && bash install.shpip:
pip install -e .
cp config.json.example config.json && $EDITOR config.json
macvm-mcp # console script (project.scripts)Docker:
docker build -t macvm-mcp .
docker run -i --rm -v $PWD/config.json:/app/config.json:ro macvm-mcpThe install.sh script creates a venv, prompts for SSH host/user/key, generates config.json, tests the connection, and prints a ready-to-paste MCP client snippet.
Related MCP server: Baton MCP Server
Composite Playbooks (Automated Analysis)
Four one-shot tools that run a whole workflow and return a structured markdown report:
Tool | What it does |
| Hashes + Mach-O + security strings + signing + entitlements + quarantine + Gatekeeper |
| Persistence baseline → tcpdump + fs_usage → execute → diff persistence → IOCs |
| Info.plist, signing, entitlements, helpers, dylibs, hashes of every bundled binary |
| Persistence + kexts + TCC + SIP + live network + suspicious procs + filters |
MCP Capabilities
Prompts (5): triage_macos_sample, analyze_app_bundle, mac_persistence_check, mac_incident_response, pkg_installer_audit.
Resources (5):
mac://system/info— live snapshot of the targetmac://persistence/locations— every macOS persistence pathmac://docs/cheatsheet— common mac analysis commandsmac://docs/frida-snippets— drop-in JS hooks for NSURLSession/CommonCrypto/NSTask/etc.mac://status/connection— current SSH state
Skills (3): drop into your Claude Code config under skills/ — triage-macos-malware, audit-app-bundle, macos-incident-response.
Security Improvements (1.0)
This release fixed three critical issues — see SECURITY.md for the full audit.
Shell-injection in ~30 sites (every f-string interpolating user-controlled paths/filters/patterns) — fixed via
shlex.quote-based_sh()helper.Sudo password leak —
echo '<pwd>' | sudo -Sexposed the password inps. Replaced with stdin-fedsudo -S -p ''.TOFU host-key trust —
paramiko.AutoAddPolicyswapped forRejectPolicy; honours~/.ssh/known_hosts. SetMAC_SSH_AUTO_ADD_HOSTKEY=1for first-time setup only.
Recommendation: use SSH key authentication. Leave password as null in config.json and set key_file. If you must use a password, prefer the MAC_SSH_PASSWORD env var over committing it to disk.
Architecture
Kali Linux (Claude Code)
│
│ SSH (paramiko)
▼
macOS 14/15/26 target
├── Static analysis (otool, codesign, strings)
├── Behavioral analysis (fs_usage, dtrace)
├── Network monitoring (tcpdump, lsof)
├── Persistence (launchctl, plist)
├── Security (SIP, TCC, Gatekeeper)
└── Dynamic (Frida, LLDB)Setup
1. Configure SSH access
Copy and edit the config:
cp config.json.example config.jsonEdit config.json:
{
"ssh": {
"host": "192.168.1.100",
"port": 22,
"username": "analyst",
"password": "yourpassword",
"key_file": "~/.ssh/id_rsa"
},
"remote_work_dir": "/tmp/macmcp",
"local_work_dir": "/home/kali/Desktop/analysis"
}Or use environment variables:
export MAC_SSH_HOST=192.168.1.100
export MAC_SSH_USER=analyst
export MAC_SSH_PASSWORD=yourpassword
export MAC_SSH_KEY=~/.ssh/id_rsa2. macOS target requirements
SSH enabled:
System Settings → General → Sharing → Remote LoginOptional for full capability (some tools need sudo):
# On the macOS target, allow passwordless sudo for analysis user: echo "analyst ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/analystOptional: Install Frida for dynamic instrumentation:
pip3 install frida-tools
3. Register with Claude Code
Add to ~/.claude/claude_desktop_config.json (or the active MCP config):
{
"mcpServers": {
"macmcp": {
"command": "/home/kali/Desktop/venv/bin/python3",
"args": ["/home/kali/Desktop/MacMCP/server.py"],
"env": {
"MACMCP_CONFIG": "/home/kali/Desktop/MacMCP/config.json"
}
}
}
}Tool Reference
Connection & File Transfer
Tool | Description |
| Verify SSH + show OS version. Always call first. |
| Copy file from Kali → macOS |
| Copy file from macOS → Kali |
Basic System
Tool | Description |
| Run any bash command (optional sudo) |
| Read remote file contents |
| MD5 + SHA1 + SHA256 |
|
|
| SW version, hardware, SIP, boot-args |
Static Analysis
Tool | Description |
| Mach-O headers, load commands, symbols |
| Strings with optional regex filter |
| Certificate, team ID, notarization |
| Entitlements plist |
| Linked dylibs ( |
| com.apple.quarantine xattr |
|
|
|
|
Behavioral Analysis
Tool | Description |
| All-in-one: run binary + fs_usage + network capture |
| File system activity via |
| DTrace one-liner or script |
Network Analysis
Tool | Description |
| Live connections via |
| Start packet capture (background) |
| Stop capture + summarize + optional download |
Persistence
Tool | Description |
| Comprehensive: all persistence locations |
| LaunchAgents + LaunchDaemons |
| Parse any plist in human-readable form |
| Login items via osascript |
macOS Security Features
Tool | Description |
| SIP + authenticated root status |
| TCC DB: app permission grants |
| kexts + System Extensions |
| Network Extension providers |
Dynamic Analysis
Tool | Description |
| List Frida-injectable processes |
| Instrument running process with JS |
| Spawn + instrument from launch |
| lsof + vmmap + ps for a process |
|
|
| LLDB commands on binary/process |
App Analysis
Tool | Description |
| Full .app bundle analysis |
| .pkg contents + scripts + signature |
| Screenshot → download to Kali |
Workflow Examples
Quick triage
1. check_connection
2. upload_file (sample)
3. get_file_hash (sample)
4. analyze_macho (sample)
5. extract_strings (sample, filter_pattern="http|flag|key|password")
6. analyze_code_signing (sample)Behavioral analysis
1. upload_file (sample)
2. check_persistence ← baseline
3. execute_with_monitoring (sample, duration=30)
4. check_persistence ← diff for new entries.app bundle analysis
1. upload_file (MyApp.app → /tmp/macmcp/MyApp.app)
2. analyze_app_bundle (/tmp/macmcp/MyApp.app)
3. extract_strings (main binary)
4. check_gatekeeper (/tmp/macmcp/MyApp.app)Network IOC extraction
1. tcpdump_start (interface=en0)
2. execute_bash (run the sample)
3. sleep 30
4. tcpdump_stop (download_to=/home/kali/Desktop/analysis/capture.pcap)Frida API hooking
// Hook NSURLSession to capture network requests
Interceptor.attach(
ObjC.classes.NSURLSession['- dataTaskWithRequest:completionHandler:'].implementation, {
onEnter(args) {
const request = new ObjC.Object(args[2]);
console.log('[NSURLSession]', request.URL().absoluteString());
}
});macOS vs FlareVM Comparison
FlareVM Tool | MacMCP Equivalent |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
License
MIT — see LICENSE.
Last Updated: 2026-04-17 Version: 1.0.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Offline methodology engine for authorized penetration testing, CTF, and security research.
Secure access to a dedicated Otherlay Mac for files, terminals, Git, builds and UI inspection.
Securely control computers you explicitly pair through files, terminals, processes, screenshots, desktop UI/input, clipboard, browser automation, diagnostics, and document tools.
Hosted reverse and forward shell relay for CTFs, labs and authorized testing.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server that runs on a Mac and exposes a small, sharp set of tools (shell, file transfer, binary execution, screenshots) over a token-protected network port.-
- AlicenseNot gradedqualityDmaintenanceEnables bounded agent authority over a macOS workstation via 63 MCP tools with policy, approval, and audit.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables local AI models to perform defensive cybersecurity analysis through narrowly scoped read-only tools for host posture, Windows security operations, file/IOC triage, code scanning, and allowlisted filesystem/network access while enforcing boundaries and audit trails.-
- AlicenseNot gradedqualityBmaintenanceEvidence-first macOS agent control with a visible-agent overlay.5MIT