Run AppleScript MCP Server from a Docker container
mainTo allow a Docker container to execute AppleScript on your Mac host, use the host.docker.internal hostname and provide SSH credentials.
Prerequisites:
- Enable SSH on your Mac:
System Settings→Sharing→Remote Login. - Ensure your user has proper permissions.
- Provide correct credentials in the configuration.
Configuration:
Replace yourusername and yourpassword with your actual Mac credentials.
{
"mcpServers": {
"applescript_execute": {
"command": "npx",
"args": [
"@peakmojo/applescript-mcp",
"--remoteHost", "host.docker.internal",
"--remoteUser", "yourusername",
"--remotePassword", "yourpassword"
]
}
}
}