# mcp-server-macos [Health: Active]

**Category:** 🖥️ OS Automation  
**Repository:** https://github.com/JeanExtreme002/mcp-server-macos  
**GitHub Stars:** 6  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-server-macos

## Description
 MCP server for automating and controlling macOS.

## Tools
Capabilities this server exposes over MCP:

- **get_clipboard** — Read the clipboard: its text, whether it holds an image, and the files on it. What the user copied
last may be private (a password, a message): read it when the task calls for it.
- **get_clipboard_image** — Get the image on the clipboard, as a PNG. Fails when the clipboard holds no image.
- **set_clipboard** — Put text on the clipboard, replacing what it held, for the user to paste.
- **copy_files_to_clipboard** — Put files on the clipboard, replacing what it held, as if they were copied in Finder: pasting in
Finder copies them there, and apps like Mail attach them.
- **copy_image_to_clipboard** — Put an image on the clipboard, from a file, replacing what it held. Other apps get it as an image
copied in Preview, not as a file.
- **clear_clipboard** — Empty the clipboard. What it held is gone.
- **wait_for_clipboard_change** — Wait until the user, or an app, copies something new, and return it. Clearing the clipboard doesn't
count. Fails when nothing is copied in time.
- **show_alert** — Show the user an alert with an OK button, and wait until it's dismissed. To tell them something
without waiting, send a notification instead.
- **ask_confirmation** — Ask the user a yes or no question in a dialog, and wait for the answer.
- **ask_text** — Ask the user for a line of text in a dialog, and wait for it. What they type comes back as the
result, a password included: ask for one only when the task needs it.
- **ask_choice** — Let the user pick one option from a list, in a dialog. It waits until they answer, or the time runs out.
- **ask_for_files** — Let the user pick a file, or several, in the system's file picker. It waits until they answer, or the
time runs out.
- **ask_for_folder** — Let the user pick a folder in the system's folder picker. It waits until they answer, or the time runs out.
- **check_notification_permission** — Check whether send_notification can show notifications, without sending one. A Focus mode such as
Do Not Disturb can still hide notifications that are allowed.
- **send_notification** — Show a notification on this Mac, in the top-right corner of the screen and in Notification Center.

macOS shows it as coming from Script Editor. Text over 4096 characters is clipped. Don't put a secret
in a notification: other processes of the user can see its text while it's being posted.
- **get_ui_elements** — List what an app shows on screen: its buttons, text fields, links, checkboxes, tabs and menus, each
with an id, its name, its value and where it is. Use it to see an app before acting on it, rather
than a screenshot: then press_ui_element, set_ui_element_value or click_menu_item with what it gives.

Only what can be seen is listed: the window in front, with the panels over it. When a menu, a dialog
or a sheet (a save panel) is open, only it is, as nothing else can be used until it closes. Web pages
are read too, in Safari, Chrome and Electron apps. Some apps (games, a few cross-platform ones) show
little or nothing this way: take a screenshot then.
- **find_ui_elements** — Find the elements on screen with a name, a role, or both: the 'Send' button, the search field. Those
named exactly so come first ('Save' before "Don't Save"), then the others, top to bottom. Text is
found too, not only controls. Give a name, a role, or both.
- **wait_for_ui_element** — Wait until an element shows up (a page loaded, a dialog opened, a button enabled), and return it; null
if it doesn't within the timeout. An app that isn't running yet is waited for too.
- **get_focused_ui_element** — Get the element keystrokes go to now (a text field, a list), in whichever app. Null when there's none.
- **get_ui_element_at** — Get the element at a point of the screen, in whichever app shows it there: what a click there would reach.
- **read_ui_element_text** — Read all the text an element holds, its own and what's in it, what's scrolled out of view included: a
long text area, a message, a dialog.
- **list_menu_items** — List the items of an app's menus, with their keyboard shortcuts: what the app can do, including what
no button on screen shows. The app needn't be in front. click_menu_item chooses one.
- **focus_ui_element** — Bring an element's app to the front and give it the keyboard focus, for type_text or press_keys to go to it.
- **set_ui_element_value** — Set what an element holds: a text field's text, replacing it, or a slider's position. When the app
refuses, or a web form doesn't notice, focus_ui_element and type_text instead.
- **press_ui_element** — Use an element as a click would: press a button, follow a link, toggle a checkbox, choose a tab or a
menu item. It's done through Accessibility: the pointer doesn't move, and the window needn't be in
front. What it does is the app's: a button may send, delete or buy.
- **click_ui_element** — Click an element's middle with the mouse, bringing its app to the front: for a double-click, a right
click, or an element press_ui_element doesn't work on.
- **perform_ui_action** — Ask an element to do one of its actions, as its actions field lists them.
- **click_menu_item** — Choose an item of an app's menus, as a click on it would. The app comes to the front first, since its
menus act on its window in front. What it does is the app's: an item may delete, send or quit.
- **find_tools** — Search every tool this server has, enabled or not: the best matches first. A tool that isn't
enabled yet is called once its toolset is, with enable_toolsets.
- **enable_toolsets** — Add toolsets to this server: their tools are listed, and callable, from now on, as the others.
Enable only what the task needs: each toolset makes the list of tools longer.

The toolsets:
- appearance: Tools for the system appearance (Light and Dark mode, the accent color...). Tools: get_appearance, set_appearance, wait_for_appearance_change
- apps: Tools for applications: the running and the installed ones, opening, quitting and uninstalling them. Tools: list_running_apps, get_frontmost_app, get_running_app, list_installed_apps, open_app, activate_app, set_app_hidden, quit_app, get_default_app, set_default_app, install_app_from_disk_image, uninstall_app, list_login_items, add_login_item, remove_login_item, check_quarantine, remove_quarantine
- audio: Tools for the audio devices, the microphone, and audio files. Tools: get_audio_status, set_audio_output, set_audio_input, set_microphone, get_microphone_level, record_microphone, record_until_silence, get_audio_info, classify_audio, convert_audio, trim_audio, join_audio, fade_audio, change_audio_volume, reverse_audio, change_audio_speed
- auth: Tools that ask the user to confirm it's them, with Touch ID or their password. Tools: check_user_authentication, authenticate_user
- bluetooth: Tools for Bluetooth: its power and the paired devices. Tools: get_bluetooth_status, set_bluetooth_power, connect_bluetooth_device, disconnect_bluetooth_device
- browser: Tools that read and control the tabs of Safari, Chrome and the other Chromium browsers. Tools: list_browser_tabs, get_current_tab, open_in_browser, switch_to_browser_tab, reload_browser_tab, navigate_browser_tab, close_browser_tab, run_javascript_in_browser
- camera: Tools for the webcam: the cameras, photos and videos. Tools: list_cameras, take_photo, save_photo, record_video
- clipboard: Tools for the clipboard. Tools: get_clipboard, get_clipboard_image, set_clipboard, copy_files_to_clipboard, copy_image_to_clipboard, clear_clipboard, wait_for_clipboard_change
- defaults: Tools that read and change the preferences of apps and of the system. Tools: list_preference_keys, read_preference, write_preference, delete_preference
- dialog: Tools that ask the user something in a native dialog. Tools: show_alert, ask_confirmation, ask_text, ask_choice, ask_for_files, ask_for_folder
- dock: Tools for the Dock: its settings, the apps and folders kept in it, and the hot corners. Tools: get_dock_settings, list_dock_items, set_dock_settings, set_hot_corner, remove_app_from_dock, remove_folder_from_dock, remove_dock_spacers, restart_dock, add_folder_to_dock, add_app_to_dock, add_dock_spacer
- document: Tools that read and convert documents (Word, RTF, HTML, OpenDocument, text, PDF). Tools: read_document_text, convert_document
- events: Tools for what happens on the Mac: sleep and wake, the screen locking, apps opening and quitting. Tools: wait_for_event
- finder: Tools for Finder: the Trash, tags, aliases, icons, archives, watching folders, and Finder's settings. Tools: get_finder_info, get_file_thumbnail, wait_for_folder_change, find_largest_files, get_finder_settings, get_finder_selection, reveal_in_finder, quick_look, add_file_tags, make_alias, set_file_tags, remove_file_tags, set_file_icon, remove_file_icon, set_finder_settings, set_desktop_view, restart_finder, compress_to_zip, move_to_trash, extract_zip
- hotkeys: Tools for global keyboard shortcuts, pressed in any app. Tools: wait_for_shortcut
- image: Tools that read, convert and edit images, HEIC included, and their metadata. Tools: get_image_info, get_image_metadata, get_image_colors, remove_image_metadata, set_image_date, set_image_location, make_contact_sheet, make_qr_code, convert_image, resize_image, crop_image, rotate_image, flip_image, straighten_image, enhance_image, apply_image_effect, blur_faces_in_image, blur_image_background, replace_image_background, watermark_image
- keyboard: Tools for the keyboard: typing and pressing keys, its layout, backlight, settings and shortcuts. Tools: get_keyboard_status, set_keyboard_layout, get_keyboard_settings, get_app_shortcuts, press_keys, type_text, wait_for_key_press, set_keyboard_backlight, set_keyboard_settings, remap_key, clear_key_remappings, set_app_shortcut, set_system_shortcut
- keychain: Tools that store and read passwords in the Keychain. Tools: list_keychain_accounts, get_keychain_password, set_keychain_password, delete_keychain_password
- language: Tools that understand text, offline, with the models macOS has. Tools: detect_language, analyze_sentiment, compare_texts, embed_text, find_entities, extract_keywords
- launch: The tool that opens files, folders and URLs. Tools: open_file_or_url
- maps: Tools that turn addresses into coordinates and back, and open the Maps app. Tools: geocode_address, reverse_geocode, show_in_maps, show_directions_in_maps
- mouse: Tools for the mouse: the pointer, clicking, dragging and scrolling, and the mouse's settings. Tools: get_mouse_settings, set_mouse_settings, move_pointer, scroll, click, drag, click_text, wait_for_click
- music: Tools that control Apple Music and Spotify. Tools: get_now_playing, control_music, set_music_volume, seek_music
- network: Tools for the network: the connection, Wi-Fi, VPNs and how fast data flows. Tools: get_network_status, list_network_interfaces, get_bandwidth, run_speed_test, set_wifi_power, list_vpns, connect_vpn, disconnect_vpn
- notifications: Tools that notify the user. Tools: check_notification_permission, send_notification
- pdf: Tools that read, edit, merge, split, sign, redact and encrypt PDFs. Tools: get_pdf_info, read_pdf_text, find_in_pdf, render_pdf_page, list_pdf_bookmarks, list_pdf_form_fields, encrypt_pdf, decrypt_pdf, grayscale_pdf, images_to_pdf, extract_pdf_images, fill_pdf_form, set_pdf_bookmarks, redact_pdf, merge_pdfs, extract_pdf_pages, rotate_pdf_pages, ocr_pdf, watermark_pdf, compress_pdf, sign_pdf, add_text_to_pdf, erase_from_pdf, replace_in_pdf
- power: Tools for the battery, sleep and keeping the Mac awake. Tools: get_power_status, get_sleep_blockers, keep_awake, allow_sleep, sleep_mac, sleep_display
- printer: Tools that list the printers, print files and follow the print queue. Tools: list_printers, set_default_printer, print_file, list_print_jobs, cancel_print_job
- schedule: Tools that run Python scripts on a schedule, with launchd. Tools: list_scheduled_jobs, get_scheduled_job, schedule_script, run_scheduled_job_now, resume_scheduled_job, pause_scheduled_job, remove_scheduled_job
- screen: Tools for the screen: screenshots and recordings, text found on it, the displays and their resolution, brightness, wallpaper and Night Shift, the screen saver and the lock. Tools: take_screenshot, find_text_on_screen, wait_for_text_on_screen, get_screen_color, get_displays, get_display_modes, get_display_settings, get_screenshot_settings, save_screenshot, record_screen, set_display_mode, stop_mirroring, set_display_brightness, set_wallpaper, set_display_settings, set_screenshot_settings, start_screensaver, lock_screen, set_main_display, mirror_display
- settings: Tools that save this Mac's settings and apply them, as dotfiles for macOS. Tools: list_setting_names, export_settings, apply_settings
- shortcuts: Tools that list and run the shortcuts of the Shortcuts app. Tools: list_shortcuts, run_shortcut
- sound: Tools that play sounds and set the alert sound. Tools: get_sound_settings, play_sound, play_alert_beep, set_sound_settings
- speech: Tools that speak text with the system voices. Tools: list_voices, speak, save_speech
- spotlight: Tools that search files with Spotlight and read their metadata. Tools: search_files, search_files_by_name, get_file_metadata
- system: Tools about the Mac itself: what it is, how it's doing, its disks, processes, settings and logs. Tools: get_system_info, get_security_status, list_fonts, list_usb_devices, list_available_updates, get_system_status, get_gpu_usage, wait_for_idle, wait_for_user_activity, list_volumes, get_disk_health, mount_disk_image, eject_volume, unmount_disk_image, list_processes, get_process, list_open_files, find_processes_using, list_ports, find_port_owner, list_connections, get_network_usage, get_energy_usage, kill_process, get_system_settings, set_system_settings, set_menu_bar_settings, list_crash_reports, read_system_log, list_startup_items
- time_machine: Tools that start and follow Time Machine backups, and choose what they leave out. Tools: get_backup_status, start_backup, stop_backup, check_backup_exclusion, set_backup_exclusion
- trackpad: Tools for the trackpad: clicking, scrolling, the pointer speed and the gestures. Tools: get_trackpad_settings, set_trackpad_settings
- ui: Tools to see and use what an app shows (its buttons, text fields, links, checkboxes and menus) without a screenshot, through the Accessibility tree. Tools: get_ui_elements, find_ui_elements, wait_for_ui_element, get_focused_ui_element, get_ui_element_at, read_ui_element_text, list_menu_items, focus_ui_element, set_ui_element_value, press_ui_element, click_ui_element, perform_ui_action, click_menu_item
- video: Tools that read, convert and edit videos, with AVFoundation. Tools: get_video_info, get_video_frame, save_video_frames, video_to_gif, mute_video, images_to_video, convert_video, trim_video, join_videos, change_video_speed, rotate_video, crop_video, add_audio_to_video, add_video_language_track, reverse_video
- vision: Tools that understand images with Apple's Vision framework, offline: text, codes, faces, poses. Tools: read_text_in_image, find_text_lines_in_image, list_text_languages, find_barcodes, classify_image, find_faces, find_animals, compare_images, find_duplicate_images, pick_best_shot, get_horizon_tilt, score_image_aesthetics, detect_body_poses, detect_hand_poses, remove_image_subject, scan_document_photo, smart_crop_image
- volume: Tools for the sound volume. Tools: get_volume, set_volume, set_muted
- windows: Tools for the windows of running apps: listing, focusing, moving, resizing, snapping, minimizing, full screen, closing, capturing and tiling them, and the windows' settings. Tools: list_windows, get_front_window, wait_for_window, get_window_settings, take_window_screenshot, save_window_screenshot, focus_window, move_window, snap_window, tile_windows, set_window_settings, set_window_state, close_window

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-server-macos": {
    "command": "uvx",
    "args": ["mcp-server-macos"]
  }
}
```

## Documentation

## What mcp-server-macos does

mcp-server-macos exposes macOS operations to AI assistants through the Model Context Protocol. Its scope spans everyday desktop control and system administration: agents can inspect app interfaces, open or quit applications, manipulate windows, operate the keyboard and pointer, and work with dialogs, notifications, and the clipboard.

The server also handles local content and media. Available capabilities include reading, merging, splitting, rotating, signing, redacting, and encrypting PDFs; converting and editing images, including HEIC files; processing video and audio; converting office-oriented formats to text or PDF; managing Finder tags and archives; and searching with Spotlight. Screen and image understanding tools can read visible text, detect QR codes and faces, describe photos, remove image backgrounds, and analyze language, sentiment, and entities using Apple models offline.

System-oriented operations include checking battery, disks, processes, ports, logs, updates, crash reports, and connected devices. Other groups cover Wi-Fi, Bluetooth, VPN, audio, printers, Time Machine, display settings, Dark Mode, the Dock, Apple Music, Spotify, browser tabs, Keychain access, app preferences, Shortcuts, and launchd scheduling.

## How it works

The server communicates with an MCP client over the standard command-based setup. With uv installed, a client launches it using `uvx mcp-server-macos`; a regular Python installation can instead run the `mcp-server-macos` command after package installation. It is built on pymacos and uses macOS APIs rather than exposing a general shell or script runner.

Tools are grouped and enabled as needed so the client does not receive the entire catalog at startup. Adding `--toolsets all` makes every tool available immediately, which can help when a client does not display dynamically enabled tools. Operations identify whether they read information, change settings, or perform actions such as deletion or sending, allowing compatible clients to request confirmation where appropriate.

## Setup and configuration

The server requires macOS and Python 3.10 or newer. In Claude Code, add it with:

```bash
claude mcp add macos -- uvx mcp-server-macos
```

For clients using JSON MCP configuration, use:

```json
{
  "mcpServers": {
    "macos": {
      "command": "uvx",
      "args": ["mcp-server-macos"]
    }
  }
}
```

Claude Desktop provides a downloadable extension, and Cursor provides a one-click installation link. Without uv, install the package with `pip install mcp-server-macos` and configure `mcp-server-macos` as the command.

macOS assigns privacy permissions to the host application running the server, such as a terminal, editor, or assistant. Depending on the requested tool, the host may need Accessibility, Screen Recording, Automation, Camera, Microphone, Bluetooth, or Location access. When access is required, the tool reports the relevant permission and where it can be enabled.

## Tools and capabilities

The catalog contains more than 350 tools organized around these areas:

- Operate applications, windows, menus, fields, buttons, links, keyboard input, mouse input, and trackpad gestures.
- Capture screenshots and recordings, inspect displays, change brightness and Night Shift, and manage wallpapers.
- Transform documents, images, video, audio, and archives, including PDF signing and redaction.
- Inspect hardware and operating-system state, including battery, storage, processes, logs, ports, and crash reports.
- Run Shortcuts, schedule scripts with launchd, manage preferences, interact with media apps and browsers, and use the clipboard.
- Read screen or image content and perform QR, face, photo, language, sentiment, and entity analysis.

## Limitations and notes

This server is macOS-only, and individual tools may require a newer macOS release. Some applications expose limited information through Accessibility, particularly games and certain cross-platform applications. In those cases, screen capture and mouse interaction can still provide an alternative path.

The server does not provide arbitrary shell or script execution. Its tools perform defined operations through macOS APIs. Telemetry is not sent from the server; network access occurs only when a requested operation itself needs the internet, such as an address lookup or speed test.

_Full upstream README: https://allmcps.com/mcp/mcp-server-macos/readme_

