Sudo
FreeNot checkedMCP server for executing sudo commands with encrypted password storage, allowing privileged operations without re-entering credentials.
About
MCP server for executing sudo commands with encrypted password storage, allowing privileged operations without re-entering credentials.
README
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.
Tools
| 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 |
Security model
- Password is encrypted with Fernet (AES-128-CBC + HMAC-SHA256).
- Encryption key is derived from
machine-id+USER— never stored on disk. - Decryption only succeeds on the same machine with the same user.
- Encrypted blob lives at
~/.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.
Install
cd /path/to/mcp-sudo
uv venv --python 3.12 .venv
uv pip install --python .venv/bin/python mcp cryptography
claude mcp add sudo -s user -- \
/path/to/mcp-sudo/.venv/bin/python /path/to/mcp-sudo/server.py
On first use, call store_password once to cache credentials.
Support the project ❤
- Ko-fi: https://ko-fi.com/kamaru
Contact
- Portfolio / general: [email protected]
- Commercial / licensing: [email protected]
Copyright © 2026 likezara™. All rights reserved. Developed by Kamaru (pen name).
Install Sudo in Claude Desktop, Claude Code & Cursor
unyly install mcp-sudoInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add mcp-sudo -- uvx mcp-sudoFAQ
Is Sudo MCP free?
Yes, Sudo MCP is free — one-click install via Unyly at no cost.
Does Sudo need an API key?
No, Sudo runs without API keys or environment variables.
Is Sudo hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Sudo in Claude Desktop, Claude Code or Cursor?
Open Sudo on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare Sudo with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
