security-crypto
20 Security MCP tools: X.509, SAML, JWT, PGP, SSH, CSP/CORS, SBOM, lockfiles, AES/scrypt.
Should I use this
Quality & Safety
Findings (2)
- LOWin saml_assertion_decode
- LOWin aes_gcm_encrypt_decrypt
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.
Install
One-Click Install
Add this to your `claude_desktop_config.json` file:
{
"mcpServers": {
"security-crypto": {
"url": "https://api.quickcoderhub.com/mcp/security-crypto"
}
}
}Remote endpoints
https://api.quickcoderhub.com/mcp/security-cryptostreamable-httpWhat it can do
Tool inventory
Tools (20)
🟢x509_certificate_inspect(filePath, text, base64Data)
Inspect an X.509 PEM/DER TLS certificate using Node crypto.X509Certificate for subject, issuer, SANs, expiry, fingerprint256, and key type.
Input Schema
{
"type": "object",
"properties": {
"filePath": {
"type": "string"
},
"text": {
"type": "string"
},
"base64Data": {
"type": "string"
}
}
}🟢saml_assertion_decode(text)
Decode Base64 / URL-encoded / Deflate SAML 2.0 AuthnRequests or Responses and extract Issuer, NameID, Audience, and validity timestamps.
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string",
"description": "SAMLRequest/SAMLResponse base64 or raw XML."
}
}
}⚪jwt_decode_and_audit(token, text, hmacSecret)
Decode JWT header & payload, flag alg=none / weak secrets / expired exp claims, and optionally verify HS256/HS512 signatures.
Input Schema
{
"type": "object",
"properties": {
"token": {
"type": "string"
},
"text": {
"type": "string"
},
"hmacSecret": {
"type": "string"
}
}
}🟢pgp_packet_inspect(filePath, text)
Parse ASCII-armored OpenPGP public/private keys or signatures to decode RFC-4880 packet tags, RSA/EdDSA versions, CRC24 armor checksum, and User IDs.
Input Schema
{
"type": "object",
"properties": {
"filePath": {
"type": "string"
},
"text": {
"type": "string"
}
}
}⚪crypto_keypair_generate(algorithm, rsaBits)
Generate fresh Ed25519 or RSA-2048/4096 PKCS#8/SPKI PEM keypairs and SHA-256 public key fingerprints via Node crypto.
Input Schema
{
"type": "object",
"properties": {
"algorithm": {
"type": "string",
"enum": [
"ed25519",
"rsa"
],
"default": "ed25519"
},
"rsaBits": {
"type": "integer",
"default": 2048
}
}
}⚪ssh_config_generate_and_audit(alias, hostName, user, port, identityFile, ...)
Generate hardened ~/.ssh/config stanzas (JumpHost/ProxyJump, IdentityFile, IdentitiesOnly, ServerAliveInterval) or audit existing SSH configs.
Input Schema
{
"type": "object",
"properties": {
"alias": {
"type": "string",
"default": "prod"
},
"hostName": {
"type": "string",
"default": "10.0.0.10"
},
"user": {
"type": "string",
"default": "ubuntu"
},
"port": {
"type": "integer",
"default": 22
},
"identityFile": {
"type": "string",
"default": "~/.ssh/id_ed25519"
},
"proxyJump": {
"type": "string"
},
"text": {
"type": "string"
}
}
}🟢ssh_known_hosts_inspect(filePath, text)
Inspect ~/.ssh/known_hosts entries for hashed vs plaintext hostnames, deprecated ssh-dss/ssh-rsa keys, and duplicate key fingerprints.
Input Schema
{
"type": "object",
"properties": {
"filePath": {
"type": "string"
},
"text": {
"type": "string"
}
}
}🟢csp_parse_and_audit(policy, text)
Parse, build, or security-audit Content-Security-Policy (CSP) headers for unsafe-inline, unsafe-eval, wildcard sources, and missing frame-ancestors.
Input Schema
{
"type": "object",
"properties": {
"policy": {
"type": "string"
},
"text": {
"type": "string"
}
}
}🟢cors_preflight_simulate(requestOrigin, allowOrigin, allowCredentials, method, allowMethods)
Simulate a browser CORS preflight check against Access-Control-Allow-Origin, Allow-Credentials, and Allow-Methods rules and flag RFC misconfigurations.
Input Schema
{
"type": "object",
"properties": {
"requestOrigin": {
"type": "string",
"default": "https://app.example.com"
},
"allowOrigin": {
"type": "string",
"default": "*"
},
"allowCredentials": {
"type": "boolean",
"default": false
},
"method": {
"type": "string",
"default": "POST"
},
"allowMethods": {
"type": "string",
"default": "GET, POST, OPTIONS"
}
}
}🟢permissions_policy_audit(policy, text)
Parse or build HTTP Permissions-Policy feature allowlists (camera, microphone, geolocation, usb, payment) and flag wildcard feature exposure.
Input Schema
{
"type": "object",
"properties": {
"policy": {
"type": "string"
},
"text": {
"type": "string"
}
}
}🟢referrer_policy_audit(policy, text)
Evaluate HTTP Referrer-Policy values for cross-origin query string/URL leakage risk and recommend strict alternatives.
Input Schema
{
"type": "object",
"properties": {
"policy": {
"type": "string",
"default": "strict-origin-when-cross-origin"
},
"text": {
"type": "string"
}
}
}⚪ioc_defang_and_refang(mode, text)
Safely defang or refang malicious IOC URLs, domains, email addresses, and IPv4 indicators (hxxp://, [.], [@]) for SOC reports.
Input Schema
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"defang",
"refang"
],
"default": "defang"
},
"text": {
"type": "string"
}
}
}🟢sbom_inspect_and_audit(filePath, text)
Inspect CycloneDX or SPDX JSON Software Bill of Materials (SBOM) to count components, extract PURLs, and summarize license distribution.
Input Schema
{
"type": "object",
"properties": {
"filePath": {
"type": "string"
},
"text": {
"type": "string"
}
}
}⚪spdx_license_compatibility(licenses, text)
Classify SPDX open-source license identifiers (MIT, Apache-2.0, BSD, GPL-3.0, AGPL-3.0) by copyleft tier, patent grant, and commercial risk.
Input Schema
{
"type": "object",
"properties": {
"licenses": {
"type": "array",
"items": {
"type": "string"
}
},
"text": {
"type": "string"
}
}
}⚪package_json_audit(filePath, text)
Audit an npm package.json manifest for unpinned git/http dependencies, risky preinstall/postinstall lifecycle hooks, and missing engines/exports.
Input Schema
{
"type": "object",
"properties": {
"filePath": {
"type": "string"
},
"text": {
"type": "string"
}
}
}⚪lockfile_integrity_audit(filePath, text)
Audit npm package-lock.json (v2/v3) for non-HTTPS registry URLs, missing SHA-512 integrity hashes, and total transitive package footprint.
Input Schema
{
"type": "object",
"properties": {
"filePath": {
"type": "string"
},
"text": {
"type": "string"
}
}
}⚪password_kdf_hash_and_verify(password, verifyHash, kdf, text)
Hash and verify passwords using cryptographic scrypt or PBKDF2-SHA512 with random 16-byte salts via Node crypto.
Input Schema
{
"type": "object",
"properties": {
"password": {
"type": "string"
},
"verifyHash": {
"type": "string"
},
"kdf": {
"type": "string",
"enum": [
"scrypt",
"pbkdf2"
],
"default": "scrypt"
},
"text": {
"type": "string"
}
}
}⚪aes_gcm_encrypt_decrypt(mode, text, keyHex, ivHex, authTagHex)
Authenticated AES-256-GCM encryption and decryption using Node crypto with random 96-bit IVs and 128-bit GCM auth tags.
Input Schema
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"encrypt",
"decrypt"
],
"default": "encrypt"
},
"text": {
"type": "string"
},
"keyHex": {
"type": "string"
},
"ivHex": {
"type": "string"
},
"authTagHex": {
"type": "string"
}
}
}🟢hmac_sign_and_verify(text, secret, algorithm, verifyHex)
Compute or timing-safe verify HMAC-SHA256 / HMAC-SHA512 message authentication codes.
Input Schema
{
"type": "object",
"properties": {
"text": {
"type": "string"
},
"secret": {
"type": "string",
"default": "secret-key"
},
"algorithm": {
"type": "string",
"enum": [
"sha256",
"sha512"
],
"default": "sha256"
},
"verifyHex": {
"type": "string"
}
}
}⚪bip39_entropy_mnemonic(bits, entropyHex)
Generate 128-bit or 256-bit cryptographic entropy with its exact BIP-39 SHA-256 checksum bits and 11-bit word indices.
Input Schema
{
"type": "object",
"properties": {
"bits": {
"type": "integer",
"enum": [
128,
256
],
"default": 128
},
"entropyHex": {
"type": "string"
}
}
}Community
Evidence