Skip to content

MCP Server

Cipher ships with a built-in MCP (Model Context Protocol) server. It lets Claude and other MCP-compatible clients encrypt files, decrypt files, look up public keys, and manage key operations over a JSON-RPC stdio transport.

Start the MCP server

mdstn-cipher mcp

The server communicates over stdin/stdout, which is what Claude Desktop and most MCP clients expect.

Claude Desktop configuration

Add Cipher to your claude_desktop_config.json:

{
  "mcpServers": {
    "cipher": {
      "command": "mdstn-cipher",
      "args": ["mcp"]
    }
  }
}

Restart Claude Desktop; the Cipher tools will appear in the tool panel.

Available MCP tools

The MCP server registers 11 tools:

ToolDescription
encrypt_fileEncrypt a file
decrypt_fileDecrypt a .mdstn file
create_keyCreate a new key
list_keysList managed keys
delete_keyDelete a key
export_keyExport a key
import_keyImport a key
get_statusReport Cipher status
share_keyShare a key with another user
lookup_keyLook up a public key by email via CKD
revoke_shareRevoke a share grant

Security notes

The MCP server runs with the same permissions as your user account and operates on the same local key store. Operations that require your private key follow the same Argon2id-wrapped key model as the CLI; the server never sees raw private keys.