M
MCP Toggle Dark Mode
๐ A tiny MCP server to toggle dark mode on macOS
Created 6/2/2025
Updated 3 days ago
README
Repository documentation and setup instructions
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
- fweinberger@anthropic.com
- Claude (noreply@anthropic.com)
Quick Setup
Installation guide for this server
Install Package (if required)
uvx mcp-toggle-dark-mode
Cursor configuration (mcp.json)
{
"mcpServers": {
"felixweinberger-mcp-toggle-dark-mode": {
"command": "uvx",
"args": [
"mcp-toggle-dark-mode"
]
}
}
}