Skip to main content
Glama
SAFE MCP Server

SAFE MCP Server

by grittygrease

SAFE MCP Server

An MCP server that gives AI assistants the ability to encrypt and decrypt files using SAFE.

Prerequisites

The safe CLI must be installed and available in PATH. See thesafe.dev/download.

Related MCP server: cryptoseed-mcp

Setup

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "safe-encryption": {
      "command": "npx",
      "args": ["safe-mcp-server"]
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "safe-encryption": {
      "command": "npx",
      "args": ["safe-mcp-server"]
    }
  }
}

Available Tools

Tool

Description

safe_encrypt

Encrypt text or file with password, public key, or GitHub username

safe_decrypt

Decrypt a .safe file (auto-discovers keys from ~/.safe/ and ~/.ssh/)

safe_keygen

Generate encryption keypair (x25519, p-256, ml-kem-768)

safe_info

Inspect encrypted file metadata without decrypting

safe_keys

List identities and recipients

Usage

Once configured, ask your AI assistant:

  • "Encrypt this file with a password"

  • "Decrypt secrets.safe"

  • "Generate an encryption key"

  • "Encrypt this for github:alice"

  • "Who can decrypt this .safe file?"

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables secure local filesystem operations and interactive terminal sessions for AI assistants. Provides 12 tools for file management, directory operations, code searching, and running interactive REPLs with security protections.
      34 npm
      MIT
    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI agents to perform symmetric and asymmetric encryption of text and files using secure storage in the macOS Keychain. It provides tools for identity management and secure messaging compatible with the CryptoSeed iOS app and CLI.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to scan and audit environment files for leaked secrets, sanitize them, encrypt/decrypt vaults, and run processes with zero-disk secret injection.
      MIT