Server data from the Official MCP Registry
MCP server to mount and unmount VeraCrypt containers with secure stdin password handling.
About
MCP server to mount and unmount VeraCrypt containers with secure stdin password handling.
Security Report
Well-designed security-focused MCP server with excellent password handling practices. The server intentionally avoids passing passwords via command-line arguments and prioritizes OS keyring integration. Minor code quality issues around input validation and error handling do not significantly impact the security posture. Supply chain analysis found 5 known vulnerabilities in dependencies (0 critical, 5 high severity). Package verification found 1 issue.
4 files analyzed · 12 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
What You'll Need
Set these up before or after installing:
Environment variable: VERACRYPT_MCP_CONTAINER
Environment variable: VERACRYPT_MCP_KEYCHAIN_ACCOUNT
Environment variable: VERACRYPT_MCP_MOUNT_POINT
Environment variable: VERACRYPT_PATH
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-bitterdev-veracrypt-mcp": {
"env": {
"VERACRYPT_PATH": "your-veracrypt-path-here",
"VERACRYPT_MCP_CONTAINER": "your-veracrypt-mcp-container-here",
"VERACRYPT_MCP_MOUNT_POINT": "your-veracrypt-mcp-mount-point-here",
"VERACRYPT_MCP_KEYCHAIN_ACCOUNT": "your-veracrypt-mcp-keychain-account-here"
},
"args": [
"veracrypt-mcp"
],
"command": "uvx"
}
}
}Documentation
View on GitHubFrom the project's GitHub README.
veracrypt-mcp
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
Features
- mount_container: mount a VeraCrypt container (optional mount point, PIM, read-only)
- unmount_container: dismount by container path or mount point
- list_mounted_containers: show all mounted VeraCrypt volumes
- Default vault: configure your container once via environment variables; "mount my vault" then works without any arguments
Security model
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:
1. OS keyring (recommended)
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):
security add-generic-password -s veracrypt-mcp -a my-container -w
# you will be prompted for the password interactively
Linux (libsecret / GNOME Keyring, requires libsecret-tools):
secret-tool store --label="veracrypt-mcp my-container" service veracrypt-mcp account my-container
Then mount with keychain_account: "my-container".
2. Direct password (fallback)
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:
- Passwords are never logged and never included in tool results or error messages.
- Python cannot securely wipe strings from memory; for maximum security, use the keyring source and a dedicated container password.
Requirements
- Python >= 3.10
- VeraCrypt with the command line binary available (
veracrypton PATH, the macOS app bundle, or setVERACRYPT_PATH) - macOS: macFUSE (required by VeraCrypt for mounting)
- Linux keyring source:
libsecret-tools(secret-tool)
Installation
pip install git+https://github.com/bitterdev/veracrypt-mcp.git
Or from a local clone:
git clone https://github.com/bitterdev/veracrypt-mcp.git
cd veracrypt-mcp
pip install .
Configuration
Claude Code
claude mcp add veracrypt -- veracrypt-mcp
With a default vault (recommended):
claude mcp add veracrypt \
-e VERACRYPT_MCP_CONTAINER="/path/to/vault.hc" \
-e VERACRYPT_MCP_KEYCHAIN_ACCOUNT="my-vault" \
-- veracrypt-mcp
Claude Desktop / generic MCP client
{
"mcpServers": {
"veracrypt": {
"command": "veracrypt-mcp",
"env": {
"VERACRYPT_MCP_CONTAINER": "/path/to/vault.hc",
"VERACRYPT_MCP_KEYCHAIN_ACCOUNT": "my-vault"
}
}
}
}
The server runs over stdio.
Usage examples
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"
Environment variables
| 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 |
License
MIT, see LICENSE.
Author
Fabian Bitter (fabian@bitter.de)
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Git
Freeby Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
Fetch
Freeby Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
MarkItDown
Freeby Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
