
mb-dev/macos-ui-automation-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
This is an MCP (Model Context Protocol) server that gives Claude the ability to see and interact with any macOS application - just like Playwright does for web browsers, but for native Mac apps.
Обзор
This is an MCP (Model Context Protocol) server that gives Claude the ability to see and interact with any macOS application - just like Playwright does for web browsers, but for native Mac apps. - 🧪 - "Test the login flow in my app" - 🔍 - "Check if all buttons are properly labeled" - 🤖 - "Fill out this form and submit it" - 📱 - "Show me all the interactive elements in Finder" - : Add Terminal to System Settings → Privacy & Security → Accessibility - : Add VS Code to System Settings → Privacy & Security → Accessibility - : Add Claude Code to System Settings → Privacy & Security → Accessibility The parent app needs permission because it's the one actually executing the MCP server.
README
Показан фрагмент оригинального README. Открыть оригинал.
Playwright MCP for macOS 🎭
Like Playwright, but for native macOS applications. Control any Mac app with natural language through Claude - perfect for developing and testing Mac applications with AI assistance.
🎯 What is this?
This is an MCP (Model Context Protocol) server that gives Claude the ability to see and interact with any macOS application - just like Playwright does for web browsers, but for native Mac apps.
Perfect for:
- 🧪 Testing Mac applications - “Test the login flow in my app”
- 🔍 App development - “Check if all buttons are properly labeled”
- 🤖 UI automation - “Fill out this form and submit it”
- 📱 App exploration - “Show me all the interactive elements in Finder”
🚀 Quick Start
1. Install
git clone https://github.com/mb-dev/macos-ui-automation-mcp.git
cd macos-ui-automation-mcp
uv sync
2. Set Up Accessibility Permissions
⚠️ Critical: Enable accessibility for your parent application:
- If using Terminal: Add Terminal to
System Settings → Privacy & Security → Accessibility - If using VS Code: Add VS Code to
System Settings → Privacy & Security → Accessibility - If using Claude Code: Add Claude Code to
System Settings → Privacy & Security → Accessibility
The parent app needs permission because it’s the one actually executing the MCP server.
3. Configure Claude Code
Add to your Claude Code MCP settings:
{
"mcpServers": {
"macos-ui-automation": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/macos-ui-automation-mcp",
"run",
"macos-ui-automation-mcp"
]
}
}
}
4. Start Automating!
Now you can ask Claude things like:
- “Find all buttons in the Calculator app”
- “Click the submit button in my app”
- “Click the screenshot button to capture the current window”
- “Test the login flow by filling in credentials and clicking submit”
🛠 Available Tools
| Tool | Description | Use Case |
|---|---|---|
find_elements |
Find UI elements using JSONPath | “Show me all text fields” |
find_elements_in_app |
Search within a specific app | “Find buttons in Safari” |
click_by_accessibility_id |
Click using accessibility actions | “Click the submit button” |
click_at_position |
Click at screen coordinates | “Click at position (100, 200)” |
type_text_to_element_by_selector |
Type text into elements | “Type ‘hello’ into the search field” |
get_app_overview |
Overview of running applications | “What apps are currently running?” |
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"macos-ui-automation": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/macos-ui-automation-mcp",
"run",
"macos-ui-automation-mcp"
]
}
}
}