applescript-mcp
v1.0.0AppleScript MCP: run, compile, inspect and control macOS apps with 20 real tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
run_script
Run an AppleScript string with osascript. The script can control apps and the system; run only trusted code.
| Parameter | Type | Description |
|---|---|---|
script * | string | |
timeoutMs | integer |
run_script_file
Run an AppleScript .scpt or .applescript file with optional argv values.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
args | array | |
timeoutMs | integer |
check_syntax
Compile an AppleScript without running it. Returns OK or the compiler error.
| Parameter | Type | Description |
|---|---|---|
script * | string |
compile_script
Compile an AppleScript string to a .scpt file without running it.
| Parameter | Type | Description |
|---|---|---|
outputPath * | string | |
script * | string |
run_handler
Run one named AppleScript handler from a script, passing string or number arguments.
| Parameter | Type | Description |
|---|---|---|
handler * | string | |
script * | string | |
args | array | |
timeoutMs | integer |
list_running_apps
List visible foreground applications currently running.
get_app_info
Check whether an app is running and whether it is frontmost and visible.
| Parameter | Type | Description |
|---|---|---|
app * | string |
get_app_dictionary
Read an installed app's AppleScript dictionary with sdef.
| Parameter | Type | Description |
|---|---|---|
app * | string |
tell_app
Send one raw AppleScript command to an app. The command is executed inside a tell block.
| Parameter | Type | Description |
|---|---|---|
app * | string | |
command * | string | |
timeoutMs | integer |
display_dialog
Show a macOS dialog and return the button the user chose.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
buttons | array | |
defaultButton | string | |
timeoutMs | integer | |
title | string |
display_notification
Show a macOS notification. This does not wait for the user.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
subtitle | string | |
timeoutMs | integer | |
title | string |
get_clipboard
Read plain text from the macOS clipboard.
set_clipboard
Replace the macOS clipboard with plain text.
| Parameter | Type | Description |
|---|---|---|
value * | string |
open_app
Open an installed macOS app by name.
| Parameter | Type | Description |
|---|---|---|
app * | string |
quit_app
Ask an app to quit. Unsaved work may prompt the app.
| Parameter | Type | Description |
|---|---|---|
app * | string |
system_info
Return the macOS system info record (OS version, model, CPU, memory).