mcp-server-macos-use

by @mediar-ai

Macos Use MCP Server

Automate native macOS desktop applications through OS-level accessibility APIs from Claude Desktop or any stdio MCP client. Built in Swift on MacosUseSDK by Mediar AI, mcp-server-macos-use exposes 5 tools that open apps, click coordinates, type text, press modified keys, and traverse the live accessibility tree.

Server facts

mcp-server-macos-use

GitHub stars

363

Last commit

Sep 30, 2026

Runtime

swift

License

—

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.

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.

Claude Desktop configuration
{
  "mcpServers": {
    "mcp-server-macos-use": {
      "command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
    }
  }
}

Read the Claude Desktop setup guide

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.

Cursor configuration
{
  "mcpServers": {
    "mcp-server-macos-use": {
      "command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
    }
  }
}

Read the Cursor setup guide

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.

VS Code configuration
{
  "servers": {
    "mcp-server-macos-use": {
      "type": "stdio",
      "command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
    }
  }
}

Read the VS Code setup guide

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.

Windsurf configuration
{
  "mcpServers": {
    "mcp-server-macos-use": {
      "command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
    }
  }
}

Read the Windsurf setup guide

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.

Claude Code configuration
{
  "mcpServers": {
    "mcp-server-macos-use": {
      "type": "stdio",
      "command": "/path/to/your/project/mcp-server-macos-use/.build/debug/mcp-server-macos-use"
    }
  }
}

Read the Claude Code setup guide

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.

ToolWhat it does
macos-use_open_application_and_traverseLaunch or activate a macOS application by name, bundle ID, or file path and traverse its accessibility tree.
macos-use_click_and_traverseSimulate a mouse click at given x/y coordinates in the target application identified by PID, then traverse its accessibility tree.
macos-use_type_and_traverseType text into the macOS application identified by PID and traverse its updated accessibility tree.
macos-use_press_key_and_traversePress 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_traversalRe-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.

Frequently asked questions

Clone `mediar-ai/mcp-server-macos-use` on macOS, compile the Swift binary with `swift build -c debug` (or `swift build -c release`), and add an `mcp-server-macos-use` entry under `mcpServers` in Claude Desktop pointing `command` to the absolute path of `./.build/debug/mcp-server-macos-use`. The executable speaks standard MCP JSON-RPC over `stdio`.

Related MCP servers