Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Tools that act on the Mac this server runs on, which is the user's own computer. Reading tools are safe to call at any time. Tools that show, change or send something are seen by the user: call them when the user asked for it, or when it clearly serves what they asked. When a tool fails for a missing permission, only the user can grant it: tell them what the error says to allow and where, and call the tool again once they say it's done. Only some of the tools are listed at first, and there's one for most of what a Mac does: files, PDFs, images, videos, audio, apps, windows, the screen, the keyboard and mouse, the settings. To do something in an app, get_ui_elements lists its buttons, fields and menus, to use by id: rather than a screenshot. For a task on this Mac, look for a tool here before writing a script or installing a library: enable_toolsets lists every toolset with the names of its tools, and adds the toolset a task needs; find_tools searches every tool by what it does.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_clipboardA

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_imageA

Get the image on the clipboard, as a PNG. Fails when the clipboard holds no image.

set_clipboardA

Put text on the clipboard, replacing what it held, for the user to paste.

copy_files_to_clipboardA

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_clipboardA

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_clipboardA

Empty the clipboard. What it held is gone.

wait_for_clipboard_changeA

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_alertA

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_confirmationA

Ask the user a yes or no question in a dialog, and wait for the answer.

ask_textA

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_choiceA

Let the user pick one option from a list, in a dialog. It waits until they answer, or the time runs out.

ask_for_filesA

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_folderA

Let the user pick a folder in the system's folder picker. It waits until they answer, or the time runs out.

check_notification_permissionA

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_notificationA

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_elementsA

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_elementsA

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_elementA

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_elementA

Get the element keystrokes go to now (a text field, a list), in whichever app. Null when there's none.

get_ui_element_atA

Get the element at a point of the screen, in whichever app shows it there: what a click there would reach.

read_ui_element_textA

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_itemsA

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_elementA

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_valueA

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_elementB

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_elementA

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_actionB

Ask an element to do one of its actions, as its actions field lists them.

click_menu_itemA

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_toolsA

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_toolsetsA

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.8/5.0

Scored across 30 tools

Disambiguation4/5

Most tools target clear resource/action pairs: clipboard, dialog, notification, and UI operations are broadly distinct. The main overlap is within UI interaction—press_ui_element, click_ui_element, perform_ui_action, and click_menu_item could be confused—but the descriptions differentiate them well enough.

Naming Consistency5/5

All tool names use consistent snake_case verb_noun phrasing, including variants like get_, set_, ask_, wait_for_, and click_. The convention is predictable across clipboard, dialog, notification, UI, and meta tools.

Tool Count3/5

Thirty initially exposed tools is at the heavy end, though the server is explicitly modular with find_tools and enable_toolsets to add further toolsets. For broad macOS automation the count is defensible, but the initial surface feels large and the overall available tool universe is massive.

Completeness5/5

The loaded toolsets cover their domains thoroughly: clipboard read/write/copy/clear/wait, dialog prompts, notification permission and sending, and a rich UI inspection and interaction surface. The find_tools and enable_toolsets meta-tools also provide a path to the broader macOS automation surface, avoiding dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues