Run sudo commands with a Fernet-encrypted password bound to machine-id + user.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MCP server for running sudo commands with encrypted password storage.
Exposes 4 tools to persist a sudo password (encrypted with a machine-bound key) and invoke privileged commands without re-entering credentials. Designed for single-user Linux workstations.
| Tool | Purpose |
|---|---|
store_password | Store sudo password (encrypted, one-time) |
sudo_exec | Run shell command with sudo |
has_password | Check if password is stored |
clear_password | Remove stored password |
machine-id + USER — never stored on disk.~/.config/claude-sudo-mcp/credential.enc (chmod 600).This is not a secrets manager. Treat this as "remember my sudo password for this session on this box." If your machine-id is copied to another box or another user reads the MCP process, the password can be recovered.
On first use, call store_password once to cache credentials.
Copyright © 2026 likezara™. All rights reserved. Developed by Kamaru (pen name).
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcp-sudo)<a href="https://allmcps.com/mcp/mcp-sudo"><img src="https://allmcps.com/api/badge/mcp-sudo?style=directory" alt="Mcp Sudo on AllMCPs" /></a>