MCPInstall
mcp_server_mac_brightness logo

mcp_server_mac_brightness

by T0UGH 1 stars T0UGH/mcp_server_mac_brightness

The MCP Mac Brightness Server allows users to control their Mac's screen brightness and system volume. Key features include adjusting brightness with fade effects, retrieving current levels, and toggling mute states, all while ensuring seamless integration with macOS. Ideal for enhancing user experience and accessibility.

READMEmain

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

More OS Automation MCP servers

Similar servers from the same category.

Enables browser automation through structured accessibility snapshots for web navigation, form-filling, and tab management without requiring vision-tuned models.

browser

Browser automation for Cloudflare Workers and quick browser actions.

browser

Provides a bridge to virtual Ubuntu desktops for browsing the web, running code, and automating tasks through a sandboxed environment with bash command execution and natural language control.

TextModel

Enables LLMs to run Computer-Use Agent (CUA) workflows on Apple Silicon macOS.

environmentother+2