MCP Cryptography logo

MCP Cryptography

Cryptographic MCP tools for key generation, hashing, HMAC, key derivation, certificates, and secure random data.

Install MCP Cryptography

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-cryptography": {
      "command": "uvx",
      "args": [
        "mcp-cryptography"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The mcp-cryptography MCP server exposes cryptographic library functionality through MCP tools for key generation, hashing, HMAC, key derivation, certificates, and random data. It can generate Fernet, RSA, and X25519 keys; calculate SHA hashes; derive keys with PBKDF2 or scrypt; and create or inspect X.509 certificates. Reach for it when an MCP client needs discrete cryptographic operations without implementing each operation as a separate application integration.

Use cases

  • Generate symmetric or asymmetric keys for an agent workflow
  • Hash content with SHA-256, SHA-512, or SHA-1
  • Create and verify HMAC values
  • Derive keys from passwords with PBKDF2 or scrypt
  • Create or inspect X.509 certificates

Key features

  • Fernet, RSA, and X25519 key generation
  • SHA hashing and HMAC operations
  • PBKDF2 and scrypt key derivation
  • Self-signed certificate generation
  • X.509 certificate parsing
  • Random bytes and base64 generation

Tools14

What MCP Cryptography lets your agent do. Expand a tool for its parameters.

Self-reported~126 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 3d ago

Recent health check succeeded.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · mcp-cryptography (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit4mo agoMost recent push to the default branch.
Tools exposed14Callable tools this server registers over MCP.

How MCP Cryptography works

What mcp-cryptography MCP server does

The mcp-cryptography MCP server makes selected cryptographic operations available as MCP tools. Its capabilities cover key generation, message hashing, HMAC creation and verification, password-based key derivation, X.509 certificate handling, and random data generation.

Key-generation tools produce Fernet symmetric keys, RSA key pairs, and X25519 key pairs. Hashing tools calculate SHA-256, SHA-512, or SHA-1 digests. HMAC tools create and verify message authentication codes. PBKDF2 and scrypt tools derive keys from password material. Certificate tools generate self-signed certificates and parse X.509 certificates.

These operations are listed separately from the tool inventory supplied for this listing, so confirm the installed package version before depending on a specific encryption or signing tool.

How it works

An MCP client invokes an operation by its tool name and supplies the operation’s inputs. The server performs the corresponding cryptographic-library operation and returns the result through MCP. The available interface separates common tasks into narrowly named tools such as hash_sha256, hmac_verify, pbkdf2_derive, and parse_certificate.

The package exposes a Python mcp object. Running mcp.run() starts the server, allowing an MCP-compatible client to connect using the client’s normal server configuration. The repository’s development instructions use Python packaging and provide commands for tests, formatting, linting, and type checking.

Use the mcp-cryptography MCP server when an agent needs to request standard cryptographic primitives or certificate operations as tool calls. It is also suitable for workflows that need generated keys or random bytes returned to the calling client for subsequent processing.

Setup and configuration

Install the package from PyPI with:

Terminal
pip install mcp-cryptography

A minimal Python entry point imports mcp from the mcp_cryptography package and calls mcp.run() under the main-module guard.

For local development, the repository instructions install editable test dependencies with pip install -e ".[test]". Tests run with pytest; formatting uses ruff format src/ tests/; linting uses ruff check src/ tests/; and the documented type-check command is mcp_cryptography src/.

Tools and capabilities

  • Generate Fernet symmetric keys.
  • Generate RSA and X25519 key pairs.
  • Calculate SHA-256, SHA-512, and SHA-1 hashes.
  • Create and verify HMAC values.
  • Derive keys with PBKDF2 or scrypt.
  • Generate self-signed certificates and parse X.509 certificates.
  • Generate random bytes or random base64 data.
  • Use the README-documented Fernet, AES, and RSA encryption operations when available in the installed version.
  • Use the README-documented RSA signing and verification operations when available in the installed version.

Applications should decide how returned keys, passwords, signatures, and certificate data are handled.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Cryptography

mcp-cryptography is an MCP server that connects MCP clients to cryptography library functionality through tools for key generation, hashing, HMAC, key derivation, certificates, and random data. It provides Fernet, RSA, and X25519 key generation, SHA hashes, PBKDF2 and scrypt derivation, certificate operations, and random-byte utilities.

Install it from PyPI with `pip install mcp-cryptography`. The package exposes a Python `mcp` object; call `mcp.run()` from a Python entry point to start the server.

It supports key generation, SHA-256/SHA-512/SHA-1 hashing, HMAC creation and verification, PBKDF2 and scrypt derivation, self-signed certificate generation, X.509 parsing, and random data generation.

The documented setup uses a Python entry point that imports `mcp` and calls `mcp.run()`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Cryptography AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-cryptography?style=directory)](https://allmcps.com/mcp/mcp-cryptography)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-cryptography"><img src="https://allmcps.com/api/badge/mcp-cryptography?style=directory" alt="MCP Cryptography on AllMCPs" /></a>