MCP server to mount and unmount VeraCrypt containers with secure stdin password handling.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
MCP (Model Context Protocol) server for mounting and unmounting VeraCrypt containers, with a security-first approach to password handling.
Once a container is mounted, your MCP client (e.g. Claude Code) can read and edit the files inside it with its normal file tools. Say "mount my vault", work on the files, then "unmount my vault".
mcp-name: io.github.bitterdev/veracrypt-mcp
The volume password is never passed as a command line argument. Command line arguments are visible to every process on the machine (ps aux), so this server always pipes the password to VeraCrypt via stdin using VeraCrypt's official --stdin option.
There are two password sources:
Store the password once in the OS keyring. The MCP tool then only receives a keyring account name, so the password never enters the LLM context, chat logs, or transcripts.
macOS (Keychain):
Linux (libsecret / GNOME Keyring, requires libsecret-tools):
Then mount with keychain_account: "my-container".
You can pass password directly to the tool. It is still piped via stdin to VeraCrypt (never visible in the process list), but it passes through the LLM conversation and may be stored in chat logs. Use the keyring source whenever possible.
Additional notes:
veracrypt on PATH, the macOS app bundle, or set VERACRYPT_PATH)libsecret-tools (secret-tool)Or from a local clone:
With a default vault (recommended):
The server runs over stdio.
With a configured default vault:
Mount my vault
Unmount my vault
Explicit, without defaults:
Mount the container /Users/me/secret.hc using the keychain account "my-container"
Mount read-only at a specific mount point:
Mount /Users/me/secret.hc read-only at ~/mnt/secret, keychain account "my-container"
| Variable | Description |
|---|---|
VERACRYPT_MCP_CONTAINER | Default container path used when no container_path is given |
VERACRYPT_MCP_KEYCHAIN_ACCOUNT | Default keyring account used when no password source is given |
VERACRYPT_MCP_MOUNT_POINT | Default mount directory (otherwise VeraCrypt auto-selects) |
VERACRYPT_PATH | Absolute path to the VeraCrypt binary if it is not on PATH |
MIT, see LICENSE.
Fabian Bitter (fabian@bitter.de)
No reviews yet β be the first to share how this listing worked for you.
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/veracrypt-mcp)<a href="https://allmcps.com/mcp/veracrypt-mcp"><img src="https://allmcps.com/api/badge/veracrypt-mcp?style=directory" alt="Veracrypt MCP on AllMCPs" /></a>