applescript-mcp

v1.0.0
io.github.mrfentmen/applescript-mcp Checked 1 hour ago Published 23 days ago

AppleScript 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.

ParameterTypeDescription
script *string
timeoutMsinteger

run_script_file

Run an AppleScript .scpt or .applescript file with optional argv values.

ParameterTypeDescription
path *string
argsarray
timeoutMsinteger

check_syntax

Compile an AppleScript without running it. Returns OK or the compiler error.

ParameterTypeDescription
script *string

compile_script

Compile an AppleScript string to a .scpt file without running it.

ParameterTypeDescription
outputPath *string
script *string

run_handler

Run one named AppleScript handler from a script, passing string or number arguments.

ParameterTypeDescription
handler *string
script *string
argsarray
timeoutMsinteger

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.

ParameterTypeDescription
app *string

get_app_dictionary

Read an installed app's AppleScript dictionary with sdef.

ParameterTypeDescription
app *string

tell_app

Send one raw AppleScript command to an app. The command is executed inside a tell block.

ParameterTypeDescription
app *string
command *string
timeoutMsinteger

display_dialog

Show a macOS dialog and return the button the user chose.

ParameterTypeDescription
message *string
buttonsarray
defaultButtonstring
timeoutMsinteger
titlestring

display_notification

Show a macOS notification. This does not wait for the user.

ParameterTypeDescription
message *string
subtitlestring
timeoutMsinteger
titlestring

get_clipboard

Read plain text from the macOS clipboard.

set_clipboard

Replace the macOS clipboard with plain text.

ParameterTypeDescription
value *string

open_app

Open an installed macOS app by name.

ParameterTypeDescription
app *string

quit_app

Ask an app to quit. Unsaved work may prompt the app.

ParameterTypeDescription
app *string

system_info

Return the macOS system info record (OS version, model, CPU, memory).