vtt-standardnotes-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
vtt-standardnotes-mcp
Private stdio MCP server giving Lumo (or any MCP client) end-to-end encrypted read/write access to a Standard Notes vault.
Why
No credentials in your MCP client settings. A one-time interactive
loginstores an encrypted session in the OS keychain (Windows Credential Manager, macOS Keychain, or Linux Secret Service via gnome-keyring). The MCP client config only ever holds your email - nothing secret.E2EE intact. Password and master key never leave this machine's RAM. Standard Notes' servers see ciphertext only, same as the official apps.
Local stdio only. No network port is opened. Ever.
Single repo, complete package. Clone, install, build, login, connect. Nothing else to fetch.
Related MCP server: notes-box
Requirements
Node.js >= 20
Windows / macOS / Linux with a working OS keychain (Linux needs gnome-keyring or another Secret Service provider, plus libsecret)
A Standard Notes account on protocol 004 (any account created or upgraded since 2020)
Setup
git clone https://github.com/vtttech/vtttech-standardnotes-mcp.git
cd vtt-standardnotes-mcp
npm install
npm run buildOne-time login (per machine)
npm run loginPrompts for email, password, and 2FA code. Derives your master key in RAM via Argon2id, signs in, and stores the session in the OS keychain. The password is discarded immediately after key derivation - never written to disk, never stored anywhere.
After login, the server resumes from the keychain session automatically on every start. No password needed again until the session is revoked or you run logout.
Linux specifics
The code is identical on every platform. The keychain layer (@napi-rs/keyring) handles the backend swap automatically: on Windows it uses the Credential Manager, on Linux it talks to the Secret Service (D-Bus API), normally provided by gnome-keyring. Your session lands there instead of the Windows Credential Vault - same schema, same login flow.
Packages needed (Debian/Ubuntu/Mint):
sudo apt install gnome-keyring libsecret-1-0gnome-keyring- runs the Secret Service daemon that stores the sessionlibsecret-1-0- the D-Bus library the prebuilt keyring binary talks tobuild-essential+python3- only needed if you develop or rebuild from source; the release binary ships prebuilt, no compilation onnpm install
Other distros: install gnome-keyring and libsecret from your package manager (Fedora: gnome-keyring libsecret; Arch: libsecret and a Secret Service implementation such as gnome-keyring or keepassxc).
Verify the keychain works before logging in (optional but recommended):
secret-tool store --service=vtt-sn-mcp-test account probe # type a password, then
secret-tool lookup --service=vtt-sn-mcp-test account probe # should echo it back
secret-tool clear --service=vtt-sn-mcp-test account probe # cleanupIf secret-tool hangs or errors, the Secret Service is not running (common on headless/Wayland-started-without-keyring setups). On Mint/Cinnamon, GNOME session keyring is started by libpam-gnome-keyring at login; if your session was restored by a display-manager restart the daemon may not be active - see docs/troubleshooting.md.
Headless / SSH notes:
The keyring must be unlocked to store/retrieve the session. Logging into your desktop normally unlocks the
loginkeyring automatically; over SSH there is no PAM keyring unlock, sonpm run loginmay prompt for a keyring password or fail to reach the D-Bus session bus. Runnpm run loginfrom a normal desktop session.If you truly cannot run a desktop session, export
DBUS_SESSION_BUS_ADDRESSpointing at the user bus (unix:path=/run/user/<uid>/bus) and unlock the keyring withgnome-keyring-daemon --unlock, entering the keyring password at the prompt.
MCP client paths on Linux: the Windows example above uses C:\path\...; on Linux it is simply /home/<user>/path/to/vtt-standardnotes-mcp/dist/index.js.
{
"mcpServers": {
"standard-notes": {
"type": "stdio",
"command": "node",
"args": ["/home/<user>/vtt-standardnotes-mcp/dist/index.js"],
"env": { "SN_EMAIL": "you@example.com" }
}
}
}Keychain library. As of v0.7.0 this project uses @napi-rs/keyring (Rust bindings to keyring-rs, actively maintained) instead of the abandoned keytar package. Benefits: prebuilt native binaries per platform, so no node-gyp and no ABI mismatch on Node upgrades. Existing sessions written by old keytar builds use a different Secret Service attribute layout (account vs username); run the one-time migration below, or simply npm run login again.
One-time migration of an existing keytar session (Linux):
pip install secretstorage
python3 - << 'EOF'
import secretstorage
conn = secretstorage.dbus_init()
coll = secretstorage.get_default_collection(conn)
for item in coll.get_all_items():
attrs = item.get_attributes()
if attrs.get('service') == 'mcp-standardnotes' and 'account' in attrs:
account = attrs['account']
secret = item.get_secret()
item.delete()
coll.create_item(f'keyring:{account}@mcp-standardnotes',
{'service': 'mcp-standardnotes', 'username': account,
'xdg:schema': 'org.freedesktop.Secret.Generic'}, secret)
print(f'MIGRATED: {account}')
EOFWire it into Lumo
In Lumo's MCP server settings, add a server:
ID:
standard-notesDisplay name:
Standard NotesTransport: Local (command)
Command:
nodeArgs:
"C:\path\to\vtt-standardnotes-mcp\dist\index.js"(wherever the repo lives on this machine)Environment:
SN_EMAIL=you@example.comSecret environment: leave empty
Other MCP clients
{
"mcpServers": {
"standard-notes": {
"type": "stdio",
"command": "node",
"args": ["/absolute/path/to/vtt-standardnotes-mcp/dist/index.js"],
"env": { "SN_EMAIL": "you@example.com" }
}
}
}Tools
Tool | What it does |
| Browse, search, read notes (filter by tag with |
| Write notes (markdown, super, code, rich-text, task, spreadsheet, plain-text) |
| Batch-create up to 50 notes in one sync push |
| Vault stats: counts, sizes, oldest/newest/largest note |
| Full tag CRUD |
| Link/unlink tags to notes |
| Force a sync with the server |
Configuration
Variable | Default | Description |
| required | Account email. Must match the email used at |
|
| Sync server. Change for self-hosted. |
|
| Keychain service name (useful for multiple accounts). |
| unset | SHA-256 TLS cert pin for self-hosted servers. See docs/self-hosted.md. |
Auth lifecycle
npm run login- one-time, interactive: email + password + 2FA. Session lands in the OS keychain.Every server start - reads the keychain session, no login round-trip, decrypts locally with the stored master key.
Access token expiry - refreshed automatically from the stored refresh token. Invisible to you.
npm run logout- wipes the keychain session. Use this to revoke MCP access without touching your SN password.
Security
Password exists in RAM only during login key derivation. Never logged, never stored.
Session tokens and master key hex live in the OS keychain only.
stdio transport. No HTTP listener.
Logs go to stderr through a redactor that masks passwords, keys, JWTs, and token-like strings.
All tool inputs validated with zod.
Crypto primitives from
libsodium-wrappers-sumo(Argon2id + XChaCha20-Poly1305).
Troubleshooting
Credits & license
MIT. Based on lozit/mcp-standardnotes by Guillaume Ferrari. Cryptographic primitives by libsodium. Developed in collaboration with Lumo, Proton's private AI assistant.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Notes, files, GitHub, and Drive through one MCP connection.
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceLets MCP clients search, read, create, append, replace, move, and batch-update local Markdown notes safely, with conflict detection via SHA-256 and optional managed update blocks, without requiring a vector database.MIT
- AlicenseNot gradedqualityDmaintenanceEnables creating, retrieving, updating, deleting, and listing notes through a simple MCP interface, with configurable note storage.MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible clients to create, list, search, and delete notes, read all notes as markdown, and use prompts to summarize or clean up notes.MIT
- FlicenseNot gradedqualityCmaintenanceEnables MCP clients to add, retrieve, update, delete, and list notes stored in a configurable local JSON file, with atomic saves behind a write lock.-