MCP server by Ajnasz
sekretlink-mcp
An MCP (Model Context Protocol) server that integrates with sekret.link to create encrypted, self-destructing secret links you can share securely.
Features
- Encrypt and share secrets via a one-time URL
- Configurable expiration time (default: 24 hours)
- Configurable maximum read count (default: 1)
Installation
Download the latest release from the GitHub releases page or install via Go:
go install github.com/Ajnasz/sekretlink-mcp@latest
Or build from source:
git clone https://github.com/Ajnasz/sekretlink-mcp.git
cd sekretlink-mcp
go build -o sekretlink-mcp .
Usage
The server communicates over stdio using the MCP protocol.
sekretlink-mcp [flags]
Flags
| Flag | Default | Description |
| ------------ | --------------------- | ----------------------------------------------------- |
| --debug | false | Enable debug logging |
| --log-file | /tmp/mcp_server.log | Path to the log file (used when --debug is enabled) |
MCP Client Configuration
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"sekretlink": {
"command": "sekretlink-mcp"
}
}
}
With debug logging enabled:
{
"mcpServers": {
"sekretlink": {
"command": "sekretlink-mcp",
"args": ["--debug", "--log-file", "/tmp/sekretlink-mcp.log"]
}
}
}
Tool
createSecret
Creates an encrypted secret on sekret.link and returns a shareable URL. The secret is only accessible once (by default) before being permanently deleted.
Parameters:
| Parameter | Type | Description |
| ------------ | ------ | --------------------------------------------------------------------------- |
| secret | string | The secret text to encrypt and share |
| expiration | number | Expiration time in seconds (default: 86400 = 24 hours) |
| max_reads | number | Maximum number of times the secret can be read before deletion (default: 1) |
Example Prompts
Basic secret sharing:
Share this API key securely:
sk-abc123xyz
With custom expiration:
Create a secret link for the password
hunter2that expires in 1 hour
Share this token
ghp_xxxxxxxxxxxxas a secret that expires in 10 minutes
With custom max reads:
Create a secret for
my-db-passwordthat can be read up to 3 times
Share this SSH key passphrase
correct-horse-battery-stapleso that 5 people can read it
Combining expiration and max reads:
Create a secret link for
postgres://user:pass@host/dbthat expires in 2 hours and can only be read twice
Share the credentials
admin / P@ssw0rd!as a secret valid for 30 minutes and readable only once
License
MIT