mcp-server-macos
This MCP server lets an AI assistant perform basic macOS actions.
Send a macOS notification with a required message and optional title, subtitle, and alert sound.
Retrieve system information: macOS version/build, Mac model and identifier, processor, RAM, computer name, and uptime.
Provides tools that let an AI assistant use the Mac, including retrieving macOS system information and sending native notifications with optional title, subtitle, and sound.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-server-macos What macOS version and model is this Mac?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Add it in a minute, and your assistant stops explaining what to do on your Mac and starts doing it. Over 350 tools, for most of what a Mac does: ask in plain words, and it acts.
"Connect my AirPods and turn the volume down to 30%." "Merge these three PDFs, then sign the last page." "In Mail, archive the newsletter at the top of my inbox." "Which app is eating my battery?" "Turn this HEIC photo into a JPEG and remove its background." "Every morning at 9, run my backup script."
Get started
With uv installed, there's nothing to set up first.
In Claude Desktop, download the extension, then open it:
In Claude Code:
claude mcp add macos -- uvx mcp-server-macosIn Cursor, one click:
In any other client configured with JSON:
{
"mcpServers": {
"macos": {
"command": "uvx",
"args": ["mcp-server-macos"]
}
}
}No uv? pip install mcp-server-macos, then use mcp-server-macos as the command.
Requires macOS and Python 3.10 or newer.
Related MCP server: mac-mcp-server
What it does
Your apps | See what an app shows (buttons, fields, links, menus) and use it, without a screenshot. Open, quit, hide and uninstall apps; move, resize, snap and tile windows. |
Files and documents | PDFs: read, merge, split, rotate, sign, redact, encrypt. Images and HEIC: convert, resize, crop, read metadata. Videos: convert, trim, join, turn into GIFs; audio files too. Word, RTF and HTML to text or PDF. Finder tags, the Trash, zips, Spotlight search. |
Understanding | Read text in images and on screen, find QR codes and faces, say what a photo shows, remove its background. Detect a text's language, sentiment and entities. All offline, with Apple's own models. |
The screen | Screenshots and recordings, the displays and their resolution, brightness, Night Shift, the wallpaper. |
Input | Type text, press shortcuts, click, drag and scroll; the keyboard layout, the mouse and the trackpad. |
The Mac itself | Battery, disks, processes, ports, logs, updates, crash reports. Wi-Fi, Bluetooth, VPNs, audio devices, volume, Dark Mode, the Dock, printers, Time Machine. |
Talking to you | Notifications, dialogs that ask you something, Touch ID, speech, the clipboard. |
Automation | Run your Shortcuts, schedule scripts with launchd, read and write app preferences, the Keychain, Apple Music and Spotify, browser tabs. |
It starts light, so the tools don't fill your assistant's context before the first question: it
turns on the groups of tools a task needs. To have every tool listed from the start, add
--toolsets all: do it if your client doesn't show the tools your assistant turns on.
Built to be trusted
No shell, no scripts. Every tool does one thing, through the APIs of macOS: your assistant can't run arbitrary commands through this server.
Your client asks before what matters. Each tool says whether it only reads, changes a setting, or can delete or send something, so your client can ask you before the last ones.
No telemetry. Nothing leaves your Mac unless a tool's job is to reach the internet (a speed test, an address to look up).
Two dependencies: the MCP SDK and pymacos, which needs none.
Tested against macOS itself: besides the unit tests, CI runs live tests on macOS runners, for the tools that can run there without disturbing anything.
Permissions
macOS gives privacy permissions to the app that runs the server (Claude Desktop, your terminal, your editor), not to the server itself. Most tools need none. The others ask for theirs the first time:
Accessibility: using apps, windows, the keyboard and the mouse.
Screen Recording: screenshots and reading text on screen.
Automation of an app (System Events, Finder, your browser, Music): asked by macOS for that app.
Camera, Microphone, Bluetooth, Location: for the tools that use them.
When a permission is missing, the tool tells your assistant which one and where to allow it, instead of failing silently.
Limitations
macOS only, and some tools need a recent macOS (they say so when they can't run).
Some apps show little to Accessibility (games, a few cross-platform apps): your assistant can still see them with a screenshot and use the mouse.
Contributing
Bug reports, ideas and pull requests are welcome. CONTRIBUTING.md explains the setup and how to add a tool, which takes one function and its tests. To report a vulnerability, see SECURITY.md.
If the project is useful to you, a star helps other people find it.
License
Released under the MIT License, free for personal and commercial use.
Not affiliated with or endorsed by Apple Inc. macOS is a trademark of Apple Inc.
Available Tools
30 toolsask_choiceAsk to pick from a listA
Let the user pick one option from a list, in a dialog. It waits until they answer, or the time runs out.
Inputs: options (required), title, prompt, default, +1 more. Returns: What the user picked from a list.
ask_confirmationAsk a yes or no questionA
Ask the user a yes or no question in a dialog, and wait for the answer.
Inputs: message (required), ok, title, cancel, +1 more. Returns: The answer to a yes or no question.
ask_for_filesAsk to pick 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.
Inputs: types, folder, prompt, multiple, +1 more. Returns: The files or the folder the user picked.
ask_for_folderAsk to pick a folderA
Let the user pick a folder in the system's folder picker. It waits until they answer, or the time runs out.
Inputs: folder, prompt, timeout_seconds. Returns: The files or the folder the user picked.
ask_textAsk for a line of 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.
Inputs: message (required), title, hidden, default, +1 more. Returns: What the user typed.
check_notification_permissionCheck whether notifications are allowedARead-only
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.
Inputs: no named parameters. Returns: Whether notifications can be shown.
clear_clipboardClear the clipboardADestructiveIdempotent
Empty the clipboard. What it held is gone.
Inputs: no named parameters. Returns: result
click_ui_elementClick an elementADestructive
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.
Inputs: id (required), count, button. Returns: result
copy_files_to_clipboardCopy files to the clipboardADestructiveIdempotent
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.
Inputs: paths (required). Returns: result
copy_image_to_clipboardCopy an image to the clipboardADestructiveIdempotent
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.
Inputs: path (required). Returns: result
enable_toolsetsEnable toolsetsARead-only
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
Inputs: names (required). Returns: The toolsets enabled.
find_toolsFind a toolARead-only
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.
Inputs: query (required), limit, toolset. Returns: result
find_ui_elementsFind an element on screenARead-only
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.
Inputs: app, name, role. Returns: What an app shows.
focus_ui_elementFocus an 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.
Inputs: id (required). Returns: result
get_clipboardRead the clipboardARead-only
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.
Inputs: no named parameters. Returns: What the clipboard holds.
get_clipboard_imageGet the image on the clipboardARead-only
Get the image on the clipboard, as a PNG. Fails when the clipboard holds no image.
Inputs: no named parameters.
get_focused_ui_elementGet the focused elementARead-only
Get the element keystrokes go to now (a text field, a list), in whichever app. Null when there's none.
Inputs: no named parameters. Returns: An element, or none.
get_ui_element_atGet the element at a pointARead-only
Get the element at a point of the screen, in whichever app shows it there: what a click there would reach.
Inputs: x (required), y (required). Returns: An element, or none.
get_ui_elementsList what an app showsARead-only
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.
Inputs: app, include_text, max_elements. Returns: What an app shows.
perform_ui_actionPerform an element's actionBDestructive
Ask an element to do one of its actions, as its actions field lists them.
Inputs: id (required), action (required). Returns: result
press_ui_elementPress an elementBDestructive
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.
Inputs: id (required). Returns: result
read_ui_element_textRead an element's textARead-only
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.
Inputs: id (required). Returns: result
send_notificationSend a 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.
Inputs: message (required), sound, title, subtitle. Returns: result
set_clipboardCopy text to the clipboardADestructiveIdempotent
Put text on the clipboard, replacing what it held, for the user to paste.
Inputs: text (required), sensitive. Returns: result
set_ui_element_valueSet an element's valueADestructiveIdempotent
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.
Inputs: id (required), value (required). Returns: result
show_alertShow an 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.
Inputs: message (required), detail, timeout_seconds. Returns: result
wait_for_clipboard_changeWait for something to be copiedARead-only
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.
Inputs: timeout_seconds, include_sensitive. Returns: Something new on the clipboard.
wait_for_ui_elementWait for an elementARead-only
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.
Inputs: app, name, role, timeout_seconds. Returns: An element, or none.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 30 tools
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.
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.
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.
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
Related MCP Connectors
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
AI agents and scripts reporting back to your iPhone with Push Notifications and Live Activities.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to send native macOS notifications for task completion alerts and reminders. Supports interactive features like custom system sounds, action buttons, and user replies directly from the notification center.201 npmMIT
- AlicenseBqualityCmaintenanceEnables AI assistants to automate macOS through AppleScript and JXA by providing 44 tools for application management, window control, and UI interaction. It allows for comprehensive system control including screen capture, keyboard and mouse simulation, and system information retrieval.441MIT
- AlicenseAqualityDmaintenanceProvides native macOS computer control tools including mouse and keyboard simulation, screenshot capture, and application management for MCP-compatible agents. It enables AI assistants to directly interact with the macOS operating system and installed apps through standard tool calls.249MIT
- AlicenseAqualityDmaintenanceEnables macOS system automation, window management, and productivity tools for AI agents, including running AppleScripts, opening apps, retrieving browser tabs, taking screenshots, and controlling system settings.21MIT