Server facts
mcp-server-macos-use
GitHub stars
363
Last commit
Sep 30, 2026
Runtime
swift
License
—
Project
- Author
- mediar-ai
- Website
- macos-use.dev/
- Category
- Mobile & Desktop Automation
Tech
- Runtime
- swift
- Transports
- stdio
- Remote access
- No
- Authentication
- None (local macOS Accessibility API access)
Activity
- GitHub stars
- 363
- Last commit
- Data as of
Overview
Engineers exploring `macos use mcp` or macOS computer-use workflows can drive native macOS applications through OS-level accessibility APIs rather than fragile screenshot-only loops using `mediar-ai/mcp-server-macos-use`. Implemented natively in Swift on top of `MacosUseSDK`, the server communicates over local `stdio` with Claude Desktop or other MCP-compatible hosts and needs no external API keys. Compile the binary locally with `swift build -c debug` (or `swift build -c release` for production) and register the absolute executable path (`/.build/debug/mcp-server-macos-use`) under `mcpServers` in your client configuration.
The server exposes 5 action-and-inspection tools via `CallTool`: `macos-use_open_application_and_traverse` launches or activates an app by name, bundle ID, or file path and returns its accessibility tree; `macos-use_click_and_traverse`, `macos-use_type_and_traverse`, and `macos-use_press_key_and_traverse` target a window by Process ID (`pid`) to click `(x, y)` coordinates, type strings, or trigger keys with modifiers (`Command`/`Cmd`, `Shift`, `Control`/`Ctrl`, `Option`/`Alt`, `CapsLock`, `Function`, `NumericPad`, `Help`); and `macos-use_refresh_traversal` re-reads UI state without acting. Every call also accepts optional `ActionOptions` overrides (`traverseBefore`, `traverseAfter`, `showDiff`, `onlyVisibleElements`, `showAnimation`, `animationDuration`, `delayAfterAction`).
Install & configure
Requirements
- macOS host with Swift toolchain to compile the executable (`swift build -c debug` or `swift build -c release`)
- `MacosUseSDK` Swift package dependency and macOS Accessibility permissions for controlling applications
- Absolute path to the compiled binary configured in Claude Desktop or another local `stdio` MCP client
Build locally with `swift build -c debug` (or `-c release`), verify `./.build/debug/mcp-server-macos-use`, and add that absolute binary path as `command` under `mcpServers` in Claude Desktop.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"mcp-server-macos-use": {
"command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"mcp-server-macos-use": {
"command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"mcp-server-macos-use": {
"type": "stdio",
"command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"mcp-server-macos-use": {
"command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"mcp-server-macos-use": {
"type": "stdio",
"command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Tools
Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.
| Tool | What it does |
|---|---|
| macos-use_open_application_and_traverse | Launch or activate a macOS application by name, bundle ID, or file path and traverse its accessibility tree. |
| macos-use_click_and_traverse | Simulate a mouse click at given x/y coordinates in the target application identified by PID, then traverse its accessibility tree. |
| macos-use_type_and_traverse | Type text into the macOS application identified by PID and traverse its updated accessibility tree. |
| macos-use_press_key_and_traverse | Press a named keyboard key with optional modifier flags (Command, Shift, Control, Option, etc.) in a target PID and traverse its accessibility tree. |
| macos-use_refresh_traversal | Re-read the current accessibility tree for a target application PID without performing any UI action. |
Use cases
- Open native macOS desktop apps by bundle ID or name and inspect their live UI element hierarchy via accessibility-tree traversal.
- Drive multi-step desktop workflows by chaining coordinate clicks, text input, and keyboard shortcuts (`Cmd`, `Option`, `Shift`) against an app's PID.
- Diff UI state before and after actions with `traverseBefore`, `traverseAfter`, `showDiff`, and `onlyVisibleElements` options.
- Enable visual feedback animations and post-action delays (`showAnimation`, `delayAfterAction`) while supervising desktop automation.
Strengths
- Built natively in Swift around macOS accessibility APIs (`MacosUseSDK`), pairing every UI action with structured accessibility-tree feedback.
- Exposes 5 clean, composable tools covering app launch, clicking, typing, modified key presses, and pure state refresh.
- Supports granular per-call `ActionOptions` (`showDiff`, `onlyVisibleElements`, `showAnimation`, `delayAfterAction`) without changing server code.
Limitations
- Works strictly on macOS and must be compiled locally from Swift source (`swift build`) rather than run via `npx` or `uvx`.
- No open-source license identifier is declared in the repository metadata, requiring review before commercial redistribution.
- Mouse interactions (`macos-use_click_and_traverse`) still depend on numeric `(x, y)` coordinates alongside the target app's PID.
mcp-server-macos-use setup notes
- mcp-server-macos-use's stdio example needs a client that launches local processes.
- mcp-server-macos-use has no recorded license; confirm reuse terms in its repository.