macOS Defaults

macOS Defaults

g0t4

Provides programmatic access to macOS system preferences and settings through the defaults command line interface.

Enables interaction with macOS system preferences via the 'defaults' command for querying and modifying configurations.

11283 views9Local (stdio)

What it does

  • Read macOS system preferences and app settings
  • Modify macOS configuration values
  • List all available preference domains
  • Search for specific settings by keyword

Best for

Mac developers automating system configurationIT administrators managing macOS settingsPower users scripting preference changes
Direct access to macOS defaults systemNo additional permissions required

About macOS Defaults

macOS Defaults is a community-built MCP server published by g0t4 that provides AI assistants with tools and capabilities via the Model Context Protocol. Interact with macOS system preferences using the macOS Defaults server to easily query and modify configurations via the It is categorized under developer tools. This server exposes 4 tools that AI clients can invoke during conversations and coding sessions.

How to install

You can install macOS Defaults in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

macOS Defaults is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (4)

list-domains

List all available macOS domains, same as `defaults domains`

find

Find entries container given word

defaults-read

use the `defaults read <domain> <key>` command

defaults-write

use the `defaults write <domain> <key> <value>` command

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 key is not provided, the entire domain is read
  • defaults-write:
    • equivalent to running defaults write <domain> <key> <value>

Quickstart

Install

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration ``` "mcpServers": { "mcp-server-macos-defaults": { "command": "uv", "args": [ "--directory", "/path/to/mcp-server-macos-defaults", "run", "mcp-server-macos-defaults" ] } } ```
Published Servers Configuration ``` "mcpServers": { "mcp-server-macos-defaults": { "command": "uvx", "args": [ "mcp-server-macos-defaults" ] } } ```

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --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-defaults

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Alternatives

Related Skills

Browse all skills
ui-design-system

UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.

6
cli-builder

Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.

2
openai-knowledge

Use when working with the OpenAI API (Responses API) or OpenAI platform features (tools, streaming, Realtime API, auth, models, rate limits, MCP) and you need authoritative, up-to-date documentation (schemas, examples, limits, edge cases). Prefer the OpenAI Developer Documentation MCP server tools when available; otherwise guide the user to enable `openaiDeveloperDocs`.

0
api-documenter

Master API documentation with OpenAPI 3.1, AI-powered tools, and modern developer experience practices. Create interactive docs, generate SDKs, and build comprehensive developer portals. Use PROACTIVELY for API documentation or developer portal creation.

0
ai-organizer-ui-consolidation

Build a unified, ADHD-friendly web UI that consolidates 70+ CLI tools into a beautiful liquid glass interface for the AI File Organizer. Use when creating the complete frontend application that replaces all terminal interactions with a macOS-inspired dashboard for file organization, search, VEO prompts, and system management.

0
ydc-ai-sdk-integration

Integrate Vercel AI SDK applications with You.com tools (web search, AI agent, content extraction). Use when developer mentions AI SDK, Vercel AI SDK, generateText, streamText, or You.com integration with AI SDK.

0