About MCP Dark Mode Toggle
MCP Dark Mode Toggle is a small example server that demonstrates MCP by providing a tool to toggle macOS dark mode. It is intended for people exploring how MCP servers and tools work.
Key features
- 01Toggle macOS dark mode
- 02Single `toggle_dark_mode` tool
- 03Example of a simple MCP server
Use cases
- 01Try an MCP tool from Claude Desktop
- 02Explore a minimal MCP server example
MCP support
The server exposes the `toggle_dark_mode` tool to MCP clients, allowing them to toggle dark mode on macOS.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEMCP 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
- [email protected]
- Claude ([email protected])
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.