Linkgard
OfficialWrites collected secrets to [.env](/mcp/integrations/dotenv) files with mode 0600 and can create encrypted pages from values in the environment, supporting environment-variable based secret management without exposing secret values to the model.
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.
Linkgard MCP + CLI
Move secrets between people and your project without putting them in chat. When an AI agent needs an API key, you fill it in on an encrypted Linkgard page and the key goes straight into .env. The model only learns that it arrived. When credentials need to go to a client, the agent creates a Linkgard page from local values it never sees.
End-to-end encrypted in the local process (WebCrypto, AES-256-GCM). The same scheme as linkgard.nl, which can't read anything.
Zero npm dependencies. Node ≥ 20.
Local stdio server. Secrets never leave your machine unencrypted.
Paid with Linkgard credits (one per page or request) from https://linkgard.nl/bundel. No account, no subscription.
Tools
Tool | What it does | What the model gets back |
| Creates a request page for named variables (e.g. | link + check code |
| Waits for the answer, writes it to | names and lengths only |
| Creates an encrypted page from | link, PIN, manage link (or a local |
| Shows credits left | counts |
Related MCP server: secrets-mcp-server
Setup
Buy credits at https://linkgard.nl/bundel (from 5 credits, volume discount from 10) and copy your credits link. It's also emailed to you.
Add Linkgard to your client.
Claude Code: plugin (recommended). Adds the MCP tools, the skill, and a paste guard that stops a prompt containing an API key or private key before it reaches the model:
/plugin marketplace add nordgardco/linkgard-mcp
/plugin install linkgard@linkgardClaude Code asks for your credits link once and stores it in your keychain.
Claude Code: MCP only
claude mcp add linkgard -e LINKGARD_BUNDLE='https://linkgard.nl/bundel#c=YOUR_KEY' -- npx -y linkgard mcpClaude Desktop / Cursor / Windsurf / VS Code (claude_desktop_config.json, .cursor/mcp.json, …):
{
"mcpServers": {
"linkgard": {
"command": "npx",
"args": ["-y", "linkgard", "mcp"],
"env": { "LINKGARD_BUNDLE": "https://linkgard.nl/bundel#c=YOUR_KEY" }
}
}
}Without the plugin you can still install the skill: copy
skills/linkgard-secrets/to~/.claude/skills/. It teaches the agent to never ask for secrets in chat.
Paste guard
The plugin's UserPromptSubmit hook (hooks/guard-secrets.mjs) recognises Stripe, Anthropic, OpenAI, GitHub, GitLab, AWS, Google, Slack, npm, Hugging Face and similar keys, private keys, database URLs with a password and *_SECRET=… assignments. A matching prompt is not sent; you get a hint to use a Linkgard request instead. It runs locally, needs no credits and sends nothing anywhere. Add #allow-secret to a message to send it anyway (e.g. a revoked test key).
CLI
export LINKGARD_BUNDLE='https://linkgard.nl/bundel#c=YOUR_KEY'
linkgard request STRIPE_SECRET_KEY DATABASE_URL # link + check code; waits; writes .env
linkgard send --title "Keys for ACME" --env STRIPE_SECRET_KEY --file certs/server.pem --expires 7d
linkgard creditsSafety boundaries
An agent can be tricked by text it reads (prompt injection), so the tools are deliberately narrow:
Paths must stay inside the project directory.
.., absolute paths and symlinks out of it are refused, and so are.ssh,.aws,.git,.configand similar.Values are written only to
.env-style files, and only the names that were requested.LINKGARD_*variables (your credits key) can't be read or sent.Results never contain secret values. For
linkgard_sendthe PIN is returned unless you passsecrets_file. Prefer that when the conversation is stored somewhere you don't control.Request pages can't be used for phishing. They show only variable names and fixed Linkgard text (no custom text or logo), plus a check code the user compares with what the agent shows. They're always paid, valid for at most 60 minutes, answerable once, and the answer is deleted from the server after collection.
Your MCP client asks for permission before each tool call. Read the arguments, especially
files, before approving.
Configuration
Variable | Default | |
| (required) | Credits link or key from https://linkgard.nl/bundel |
|
| For self-hosting or local testing |
Development
This repository is published from the Linkgard monorepo. lib/shared/ is copied from the website's browser code so both encrypt the same way. npm test runs the paste guard tests.
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
Send encrypted files and secrets, collect files and get documents signed, from your AI.
Encrypted secret store and rotation for autonomous agent credentials
A secret store for AI agents: the agent never sees the plaintext.
Project memory, documentation and controlled secret access for AI coding agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to write .env files with secrets stored locally, allowing search by name/description while keeping actual secret values private and never exposed to the AI.5MIT
- AlicenseCqualityCmaintenanceEnables AI agents to securely store and manage encrypted secrets locally while using them indirectly through environment-variable injection or file writes, so plaintext values never enter the agent's context.8MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to securely inject API keys and secrets into environment files, configs, or commands without the agent ever seeing the secret values.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to fetch API keys and tokens on demand from an encrypted local vault instead of pasting them into chats, and to scan project folders for plaintext secrets. It also manages credential entries with templates, rotation tracking, usage logs, backups, and .env export.1MIT