mcp-toggle-dark-mode

felixweinberger/mcp-toggle-dark-mode

3.2

If you are the rightful owner of mcp-toggle-dark-mode and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A toy MCP server that demonstrates how MCP works by providing a simple tool to toggle dark mode on macOS.

Tools
  1. toggle_dark_mode

    A tool to toggle dark mode on macOS through the MCP server.

MCP Dark Mode Toggle

A toy MCP (Model Context Protocol) server that demonstrates how MCP works by providing a simple tool to toggle dark mode on macOS.

Installation

# Clone and install dependencies
git clone <repo-url>
cd mcp-toggle-dark-mode
uv sync

Connect to Claude Desktop

Add this to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "dark-mode-toggle": {
      "command": "python",
      "args": ["/path/to/mcp-toggle-dark-mode/main.py"]
    }
  }
}

Replace /path/to/mcp-toggle-dark-mode/main.py with the actual path to your main.py file.

Restart Claude Desktop and you'll have access to the toggle_dark_mode tool.

Co-Authors

  • Claude ()