# 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 ```bash # Clone and install dependencies git clone 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`): ```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 - fweinberger@anthropic.com - Claude (noreply@anthropic.com)