macOS Defaults MCP Server
The macOS Defaults MCP Server allows you to read and write macOS system settings via a command-line interface:
List Domains: List all available macOS preference domains, equivalent to
defaults domainsFind Entries: Search for preference domains containing a specified word, similar to
defaults find <word>Read Defaults: Read specific settings from a domain and key (
defaults read <domain> <key>), or read the entire domain if no key is providedWrite Defaults: Set specific values for settings within a macOS preference domain, equivalent to
defaults write <domain> <key> <value>
Enables reading and writing macOS defaults (system and application settings) through tools for listing domains, finding settings, and reading/writing configuration values.
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., "@macOS Defaults MCP Server read the Dock autohide setting"
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.
mcp-server-macos-defaults MCP server
MCP server for reading/writing macOS defaults (settings)
Components
Tools
list-domains:equivalent to running
defaults domains
find:equivalent to running
defaults find <word>
defaults-read:equivalent to running
defaults read <domain> <key>if
keyis not provided, the entire domain is read
defaults-write:equivalent to running
defaults write <domain> <key> <value>
Related MCP server: macOS Defaults MCP Server
Quickstart
Install
Claude Desktop
On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
Development
Building and Publishing
To prepare the package for distribution:
Sync dependencies and update lockfile:
uv syncBuild package distributions:
uv buildThis will create source and wheel distributions in the dist/ directory.
Publish to PyPI:
uv publishNote: You'll need to set PyPI credentials via environment variables or command flags:
Token:
--tokenorUV_PUBLISH_TOKENOr username/password:
--username/UV_PUBLISH_USERNAMEand--password/UV_PUBLISH_PASSWORD
Debugging
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm with this command:
npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-server-macos-defaults run mcp-server-macos-defaultsUpon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Available Tools
4 toolsdefaults-readD
use the defaults read <domain> <key> command
Inputs: domain (required), key.
defaults-writeC
use the defaults write <domain> <key> <value> command
Inputs: domain (required), key (required), value (required).
findC
Find entries container given word
Inputs: word.
list-domainsB
List all available macOS domains, same as defaults domains
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: defaults-read and defaults-write handle reading and writing specific key-value pairs, find searches for entries containing a word, and list-domains enumerates available domains. There is no overlap or ambiguity between these functions.
The naming is mixed: defaults-read and defaults-write follow a consistent verb-object pattern with hyphens, but find and list-domains use different conventions (single verb vs. verb-noun with hyphen). While readable, this lacks a uniform pattern across all tools.
With 4 tools, the count is reasonable for a macOS defaults management server, covering core operations like read, write, search, and domain listing. It is slightly thin but functional, as additional tools like delete or reset might be useful but are not essential for basic workflows.
The toolset covers essential CRUD-like operations for macOS defaults: read and write handle key-value management, find enables searching, and list-domains provides discovery. A minor gap exists with no explicit delete or update tool, but agents can work around this using defaults-write or other methods.
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server to list and launch applications on MacOS7 npm19MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables reading and writing macOS system defaults and settings through commands equivalent to the defaults command-line tool. Supports listing domains, searching for settings, and modifying system preferences programmatically.-
- AlicenseNot gradedqualityDmaintenanceAn open-source local MCP server for macOS that provides desktop control tools (click, type, scroll, etc.) callable from any MCP-aware client.10MIT
- FlicenseCqualityCmaintenanceLocal macOS MCP server and setup app for Apple apps194-