Skip to content

felixweinberger/mcp-toggle-dark-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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

About

๐ŸŒ“ A tiny MCP server to toggle dark mode on macOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages