stuckbar
A straightforward CLI tool & MCP server for getting that annoying Windows taskbar unstuck.
When the Windows taskbar gets stuck (especially when configured to auto-hide), this utility provides a quick way to restart explorer.exe from the command line or via MCP tool calls, snapping the taskbar back to normal.
🪟 Windows Only: This tool is designed specifically for Windows and will not work on macOS or Linux.
Installation
Using cargo (recommended)
# Basic installation (CLI only)
# With MCP server support (STDIO transport)
# With full MCP support (STDIO + HTTP transports)
From source
# Or with MCP features
Usage
Basic CLI Usage
# Restart explorer.exe (default action)
# Or explicitly use the restart command
# Just kill explorer.exe
# Just start explorer.exe
# Show help
# Show version
Commands
| Command | Description |
|---|---|
restart |
Kill and restart explorer.exe (default) |
kill |
Terminate explorer.exe process |
start |
Start explorer.exe process |
serve |
Start MCP server (requires mcp feature) |
MCP Server (AI Agent Integration)
Stuckbar can run as a Model Context Protocol (MCP) server, allowing AI agents to programmatically control Windows Explorer operations.
Features
When running as an MCP server, stuckbar exposes three tools:
| Tool | Description |
|---|---|
kill_explorer |
Terminate the explorer.exe process |
start_explorer |
Start the explorer.exe process |
restart_explorer |
Restart explorer.exe (recommended for stuck taskbar) |
Running the MCP Server
STDIO Transport (for direct process communication)
# Requires: cargo install stuckbar --features mcp
This is the recommended transport for most MCP clients like Claude Desktop.
HTTP Transport (SSE-based, for network communication)
# Requires: cargo install stuckbar --features mcp-full
# With custom host and port
The HTTP server uses Server-Sent Events (SSE) and exposes:
- SSE endpoint:
http://<host>:<port>/sse - Message endpoint:
http://<host>:<port>/message
Configuration Examples
Claude Desktop
Add to your claude_desktop_config.json:
Windows:
Or with full path:
Other MCP Clients
For clients that support SSE transport:
# Connect to: http://localhost:8080/sse
Feature Flags
| Feature | Description |
|---|---|
| (default) | Basic CLI functionality |
mcp |
MCP server with STDIO transport |
mcp-http |
MCP server with SSE HTTP transport (includes mcp) |
mcp-full |
All MCP features (alias for mcp-http) |
Building from Source
# Clone the repository
# Build with default features
# Build with MCP support
# Run tests
# Run tests with all features
How It Works
When the Windows taskbar becomes unresponsive or stuck (often happens with auto-hide enabled), the typical fix is to restart Windows Explorer. This tool automates that process by:
- Kill: Forcefully terminating
explorer.exeusingtaskkill /F /IM explorer.exe - Wait: Pausing briefly (500ms) to ensure the process is fully terminated
- Start: Launching a new instance of
explorer.exe
This restores the taskbar, desktop icons, and file explorer functionality.
Platform Support
This tool is Windows-only. Running on macOS or Linux will display an error message:
stuckbar is a Windows-only tool.
Current platform 'linux' is not supported.
This tool restarts explorer.exe which only exists on Windows.
License
MIT License - see LICENSE for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request :)