Skip to main content

MCP Mac Brightness Server

A Model Context Protocol server for controlling Mac screen brightness and system volume.

Features

  • Screen Brightness Control

    • Get current screen brightness
    • Set screen brightness with optional fade duration
    • Supports brightness range: 0-100%
  • System Volume Control

    • Get current system volume
    • Set system volume
    • Toggle system mute state

Requirements

  • Python >= 3.10
  • macOS (uses native macOS frameworks)
  • Required permissions for screen and audio control
  • brightness (Install via Homebrew):
    brew install brightness
    

Installation

uv pip install -e .

Usage

Start the Server

Available Tools

  1. get_screen_brightness()

    • Returns current screen brightness (0-100)
  2. set_screen_brightness(brightness: float, duration: float = 0)

    • Set screen brightness level
    • brightness : Target brightness (0-100)
    • duration : Fade duration in seconds (0 for immediate change)
  3. get_system_volume()

    • Returns current system volume (0-100)
  4. set_system_volume(volume: int)

    • Set system volume level (0-100)
  5. toggle_system_mute()

    • Toggle system audio mute state

Configuration

Configure in Claude desktop:

{
    "mac_brightness": {
        "command": "uvx",
        "args": ["mcp-server-mac-brightness"]
    }
}

Error Handling

  • Input validation for brightness and volume levels
  • Comprehensive error messages for system API failures
  • Graceful error handling for permission issues

License

MIT License

Release files for mcp-server-mac-brightness 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-mac-brightness 0.1.4
File Size Uploaded
mcp_server_mac_brightness-0.1.4.tar.gz 89.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-mac-brightness 0.1.4
File Interpreter ABI Platform
mcp_server_mac_brightness-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 94.6 kB

Release files / mcp_server_mac_brightness-0.1.4.tar.gz

Download URL mcp_server_mac_brightness-0.1.4.tar.gz
Size 89.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ab8df9f23eb483d7e20a41a36a1d1c26f30a8d310f3585aeed9a92114cd17507
BLAKE2b-256 checksum
How to use checksums
b708ff0ae44343bd6db33ba751866fe82322d1d749033d63b6f65fa4bfcc2ae2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release files / mcp_server_mac_brightness-0.1.4-py3-none-any.whl

Download URL mcp_server_mac_brightness-0.1.4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f006b5605544cde7cbc2c9e1ca64dba4152f8d21db46cb023776da6476b8794
BLAKE2b-256 checksum
How to use checksums
8b2e6e424629bb0c14eae1e41de9698662dca119d20fb785637c179d7dd93377
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.16

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page