A toy MCP (Model Context Protocol) server that demonstrates how MCP works by providing a simple tool to toggle dark mode on macOS.
# Clone and install dependencies
git clone <repo-url>
cd mcp-toggle-dark-mode
uv sync
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.
- [email protected]
- Claude ([email protected])