JCAppleScript MCP server
2026년 8월 29일 커밋AppleScript, JXA, 그리고 Messages, Mail, Finder와 같은 앱용 사전 구축 명령 단축키를 통해 AI 어시스턴트가 macOS 애플리케이션을 제어할 수 있게 합니다.
다른 이름 johnnyclem/JCAppleScript
- 스타
- 28
- Tools
- 10
- 다운로드, 30일
- —
- 최신 버전
- 2.0.0
- 마지막 커밋
- 2026년 8월 29일
- 라이선스
- MIT
JCAppleScript MCP란?
JCAppleScript은(는) MCP server입니다. AppleScript, JXA, 그리고 Messages, Mail, Finder와 같은 앱용 사전 구축 명령 단축키를 통해 AI 어시스턴트가 macOS 애플리케이션을 제어할 수 있게 합니다. 10개 도구를 제공합니다. 예: execute_applescript, execute_jxa, tell_application.
프로젝트 README에서 생성된 요약
JCAppleScript MCP server 정보
JCAppleScript는 AppleScript와 JavaScript for Automation을 실행하여 AI 어시스턴트가 macOS 애플리케이션과 상호작용할 수 있는 브릿지를 제공합니다. 이 서버는 MCP server로 작동하며, 로컬 설정 파일을 통해 Claude Desktop과 같은 클라이언트에 통합할 수 있습니다. 시스템에는 핵심 실행 엔진과 Messages, Mail, Finder, Safari, Xcode 등 일반적인 소프트웨어를 위한 사전 구축 명령 단축키 레지스트리가 포함되어 있습니다.
개발자는 jcas-mcp 실행 파일을 사용하여 AI에게 파일 관리, 이메일 작성 또는 음악 재생 제어 권한을 부여할 수 있습니다. 이 서버는 보안 중심의 설정인 세이프 모드를 제공하며, JCAS_SAFE_MODE 환경 변수를 통해 활성화할 수 있습니다. 세이프 모드를 사용하면 임의 코드 실행을 차단하고 어시스턴트가 정제된 사전 정의 명령만 사용하도록 제한할 수 있습니다. 따라서 검증되지 않은 스크립트에 시스템을 노출하지 않으면서 생산성 작업을 자동화하려는 사용자에게 적합합니다.
활용 사례
- 1커뮤니케이션 작업 자동화AI 어시스턴트가 사전 구축된 명령을 사용하여 특정 연락처에 메시지를 보낼 수 있습니다.
- 2사용자 정의 자동화 스크립트 실행사용자는 서버 도구를 통해 원시 AppleScript 또는 JXA 코드를 직접 실행할 수 있습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
JCAppleScript MCP 도구 10
README에서 감지됨execute_applescriptexecute_jxatell_applicationcheck_script_syntaxlist_running_applicationslist_registered_appssearch_commandsrun_app_commandpreview_app_commandget_app_commands
| execute_applescript | — | |
| execute_jxa | — | |
| tell_application | — | |
| check_script_syntax | — | |
| list_running_applications | — | |
| list_registered_apps | — | |
| search_commands | — | |
| run_app_command | — | |
| preview_app_command | — | |
| get_app_commands | — |
구성
JCAS_APP_MANIFESTSColon-separated list of JSON manifest files with additional community app definitions to load at startup.
JCAS_SAFE_MODESet to 1 to disable tools that execute arbitrary code (execute_applescript, execute_jxa, tell_application) and registry commands flagged dangerous.
| 이름 | 설명 | 유형 |
|---|---|---|
| JCAS_APP_MANIFESTS | Colon-separated list of JSON manifest files with additional community app definitions to load at startup. | |
| JCAS_SAFE_MODE | Set to 1 to disable tools that execute arbitrary code (execute_applescript, execute_jxa, tell_application) and registry commands flagged dangerous. |
자동 검사
2026년 11월 12일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능통과
- 오픈 소스 라이선스 (OSI)통과
- 최근 1년 내 커밋 또는 릴리스통과
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 원격 엔드포인트가 HTTPS 사용검사되지 않음
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 모델에 대한 숨겨진 지침 없음통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
README
GitHub에서 보기JCAppleScript
A Swift package for executing AppleScript from macOS applications, featuring a built-in MCP server that lets AI assistants control macOS apps through pre-built command shortcuts.
Overview
JCAppleScript provides three components:
- JCAppleScript (library) - Core AppleScript execution engine
- AppShortcuts (library) - Registry of pre-built AppleScript commands for popular macOS apps
- jcas-mcp (executable) - MCP (Model Context Protocol) server for AI-driven app automation
Installation
Swift Package Manager
Add JCAppleScript to your Package.swift:
dependencies: [
.package(url: "https://github.com/johnnyclem/JCAppleScript.git", from: "2.0.0")
]
Then add the targets you need:
.target(
name: "YourTarget",
dependencies: [
"JCAppleScript", // Core engine only
"AppShortcuts", // App command registry
]
)
Quick Start
Using the Core Engine
import JCAppleScript
let engine = AppleScriptEngine.shared
// Execute raw AppleScript
let result = try engine.execute("""
tell application "Finder"
display dialog "Hello from Swift!"
end tell
""")
// Send a command to an application
let output = try engine.tell(application: "Music", command: "play")
// Execute a script file with variable substitution
let fileResult = try engine.executeFile(at: "/path/to/script.scpt", variables: ["Alice", "Hello!"])
// Execute JavaScript for Automation (JXA)
let jxa = try engine.execute("Application('Music').play()", language: .javaScript)
// Check syntax without executing
try engine.checkSyntax("tell application \"Finder\" to activate")
// All execution APIs also have async variants
let asyncResult = try await engine.execute("return 40 + 2")
When embedding untrusted values in script source, escape them first:
let userInput = "…"
let script = "display dialog \(AppleScriptString.quoted(userInput))"
Using App Shortcuts
import AppShortcuts
let registry = AppRegistry.shared
// Execute a pre-built command
let result = try registry.executeCommand("messages.send_message", arguments: [
"recipient": "+15551234567",
"message": "Hello from JCAppleScript!"
])
// Discover available commands
let commands = registry.commands(forApp: "Reminders")
for cmd in commands {
print("\(cmd.id): \(cmd.name) - \(cmd.description)")
}
// Search across all apps
let results = registry.searchCommands("send")
Using the MCP Server
The jcas-mcp executable is a Model Context Protocol server that AI assistants (Claude, GPT, etc.) can use to control macOS applications.
It is published to the official MCP registry as io.github.johnnyclem/jcas-mcp, and each GitHub release ships a prebuilt jcas-mcp.mcpb bundle (universal macOS binary) that can be installed directly in Claude Desktop via Settings → Extensions.
Setup with Claude Desktop
Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"applescript": {
"command": "/path/to/jcas-mcp"
}
}
}
Build the server:
swift build -c release
# Binary at: .build/release/jcas-mcp
Available MCP Tools
| Tool | Description |
|---|---|
execute_applescript |
Execute arbitrary AppleScript code † |
execute_jxa |
Execute JavaScript for Automation (JXA) code † |
tell_application |
Send a command to a specific app via tell block † |
check_script_syntax |
Compile a script (AppleScript or JXA) without executing it |
list_running_applications |
Get currently running applications |
list_registered_apps |
Browse all registered app command sheets |
search_commands |
Search for commands by keyword |
run_app_command |
Execute a pre-built command by ID |
preview_app_command |
Dry-run: show the exact script a command would execute |
get_app_commands |
Get detailed command info for a specific app |
† Hidden and disabled when the server runs in safe mode (see below).
Server Configuration
| Environment variable | Effect |
|---|---|
JCAS_SAFE_MODE=1 |
Disables the arbitrary-code tools (execute_applescript, execute_jxa, tell_application) and registry commands flagged dangerous (e.g. terminal.run_command, safari.run_javascript). Only pre-built, sanitized registry commands remain available. |
JCAS_APP_MANIFESTS=a.json:b.json |
Colon-separated JSON manifest files with additional community app definitions to load at startup. |
CLI flags: jcas-mcp --manifest prints the full registry as JSON, --version prints the server version, --help shows usage.
Example AI Interaction
User: "Send a message to John saying I'll be late"
AI uses tool: run_app_command
command_id: "messages.send_message"
arguments: { "recipient": "John", "message": "I'll be late" }
Supported Applications
JCAppleScript ships with command sheets for 12 built-in macOS apps:
| App | Category | Commands | Examples |
|---|---|---|---|
| Messages | Communication | 6 | Send message, list chats, get participants |
| Communication | 7 | Compose email, search, check mail, list accounts | |
| Reminders | Productivity | 7 | Create/complete/delete reminders, search, list |
| Calendar | Productivity | 6 | Create events, list today's events, upcoming |
| Notes | Productivity | 8 | Create/search/append notes, manage folders |
| Finder | System | 12 | File operations, folder contents, labels, trash |
| Safari | Internet | 10 | Open URLs, manage tabs, run JavaScript, get page content |
| Music | Media | 13 | Playback control, playlists, library search, ratings |
| Terminal | Development | 8 | Run commands, manage windows/tabs, profiles |
| System Settings | System | 13 | Dark mode, volume, notifications, dialogs, system info |
| Xcode | Development | 20+ | Open/build/run/test projects, schemes, build logs, debugging |
| Speech Recognition | System | 3 | Listen for spoken phrases via the system speech engine |
Adding Custom App Support
Implement the ScriptableApp protocol to add support for any scriptable macOS app:
import AppShortcuts
struct MyApp: ScriptableApp {
static let bundleIdentifier = "com.example.myapp"
static let appName = "MyApp"
static let description = "My custom application"
static let category = AppCategory.productivity
static let commands: [AppCommand] = [
AppCommand(
id: "myapp.do_thing",
name: "Do Thing",
description: "Performs the thing",
parameters: [
CommandParameter(name: "input", description: "The input value"),
]
) { args in
let input = args["input", default: ""]
return """
tell application "MyApp"
do thing with "\(input)"
end tell
"""
},
]
}
// Register at runtime
AppRegistry.shared.register(MyApp.self)
Community App Registry
JCAppleScript is designed to grow through community contributions. The app shortcut system uses a standard protocol (ScriptableApp) that makes it easy to:
- Add new applications - Implement
ScriptableAppfor any scriptable macOS app - Extend existing apps - Submit new commands for already-registered apps
- Share command sheets - Export/import app definitions via JSON manifests
We're building a browsable registry (similar to npmjs.org) where you can:
- Browse applications and their supported AppleScript commands
- Submit new commands for existing apps
- Add entirely new applications to the registry
- Generate JSON manifests for integration with other tools
Exporting and Importing the Registry
// Export all registered apps as manifest JSON
let json = try AppRegistry.shared.exportManifestJSON()
// Import community app definitions from a JSON manifest.
// Manifest commands are declarative script templates with ${param}
// placeholders; argument values are sanitized before substitution.
try AppRegistry.shared.loadManifest(contentsOf: URL(fileURLWithPath: "community.json"))
Example manifest:
[
{
"name": "CoolApp",
"bundleIdentifier": "com.example.coolapp",
"description": "A community-contributed app",
"category": "Productivity",
"commands": [
{
"id": "coolapp.greet",
"name": "Greet",
"description": "Show a greeting",
"script": "tell application \"CoolApp\"\n greet \"${who}\"\nend tell",
"parameters": [
{"name": "who", "description": "Who to greet", "required": true, "type": "string"}
]
}
]
}
]
The MCP server loads extra manifests from the JCAS_APP_MANIFESTS environment variable at startup.
Security Model
Registry command arguments are sanitized before script generation:
- String, file-path, and date arguments are escaped (
\,", and control characters) so they cannot break out of AppleScript string literals. - Integer and boolean arguments are strictly validated/normalized — malformed values are rejected at validation and fall back to declared defaults during generation.
- Values outside a parameter's
allowedValueslist are dropped. - Arguments that don't correspond to a declared parameter are discarded.
Commands that execute caller-supplied code (Terminal shell commands, Safari JavaScript) are flagged dangerous and can be disabled wholesale with JCAS_SAFE_MODE=1. Use the preview_app_command tool to inspect the exact script a command will run before executing it.
Note that execute_applescript, execute_jxa, and tell_application execute arbitrary code by design — only expose them to clients you trust, or run the server in safe mode.
Architecture
JCAppleScript/
├── Sources/
│ ├── JCAppleScript/ # Core engine
│ │ ├── AppleScriptEngine.swift
│ │ ├── AppleScriptSanitizer.swift
│ │ ├── ScriptResult.swift
│ │ └── ScriptError.swift
│ ├── AppShortcuts/ # App command registry
│ │ ├── AppProtocol.swift # ScriptableApp protocol
│ │ ├── AppCommand.swift # Command & parameter types + sanitization
│ │ ├── AppDefinition.swift # Instance-based app description
│ │ ├── AppManifest.swift # JSON import/export
│ │ ├── AppRegistry.swift # Central registry
│ │ └── Apps/ # Built-in app sheets
│ │ ├── MessagesApp.swift
│ │ ├── RemindersApp.swift
│ │ ├── FinderApp.swift
│ │ ├── SafariApp.swift
│ │ ├── MailApp.swift
│ │ ├── CalendarApp.swift
│ │ ├── NotesApp.swift
│ │ ├── MusicApp.swift
│ │ ├── TerminalApp.swift
│ │ └── SystemSettingsApp.swift
│ └── JCAppleScriptMCP/ # MCP server
│ ├── main.swift
│ ├── MCPServer.swift
│ ├── MCPTransport.swift
│ └── MCPTypes.swift
├── Tests/
├── Legacy/ # Original Obj-C implementation
├── Package.swift
└── LICENSE
Requirements
- macOS 13.0+
- Swift 5.9+
Legacy
The original Objective-C implementation (2013) is preserved in the Legacy/ directory for reference. It provided basic NSAppleScript wrapping with variable substitution. The new Swift implementation builds on those concepts while adding the MCP server, app registry, and modern Swift patterns.
License
MIT License - Copyright (c) 2013 John Clem. See LICENSE for details.
JCAppleScript MCP 질문
JCAppleScript MCP는 어떤 도구를 제공하나요?
10개 도구를 제공합니다. 예: execute_applescript, execute_jxa, tell_application, check_script_syntax, list_running_applications.
서버를 더 안전하게 만들려면 어떻게 해야 하나요?
JCAS_SAFE_MODE 환경 변수를 1로 설정하여 세이프 모드를 활성화할 수 있습니다. 이 모드에서는 임의 코드 실행 도구와 위험한 레지스트리 명령이 비활성화됩니다.
기본적으로 어떤 macOS 앱을 지원하나요?
이 서버는 Messages, Mail, Reminders, Calendar, Notes, Finder, Safari, Music, Terminal, System Settings, Xcode, Speech Recognition을 포함한 12개 앱에 대한 내장 명령 시트를 제공합니다.
레지스트리에 직접 만든 애플리케이션을 추가할 수 있나요?
네, ScriptableApp 프로토콜을 구현하면 스크립트 실행이 가능한 모든 macOS 앱에 대한 지원을 추가할 수 있습니다.
Claude Desktop에 어떻게 설치하나요?
~/Library/Application Support/Claude/claude_desktop_config.json에 위치한 Claude Desktop 설정 파일에 서버를 추가하여 설치할 수 있습니다.