Tiny Cryptography MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tiny Cryptography MCP Server
A Model Context Protocol server built with Express.js that provides cryptographic tools including key pair generation, shared secret derivation, and message encryption/decryption.
Now available at: http://104.248.174.57/sse
Powered by Stanford Javascript Crypto Library (SJCL)
What is MCP?
The Model Context Protocol (MCP) is an open standard that defines how AI models and tools communicate. It enables seamless interoperability between language models and external capabilities, allowing AI systems to use tools more effectively. MCP standardizes the way models request information and actions, making it easier to build complex AI applications with multiple components.
Features
- Generate SJCL P-256 key pairs
- Derive shared secrets for secure communication
- Encrypt messages using SJCL AES-CCM
- Decrypt encrypted messages
- Server-sent events (SSE) for real-time communication
Installation
Environment Variables
The server uses the following environment variables:
PORT
: The port on which the server will run (default: 3006)
Development
Production
API Endpoints
GET /sse
: Connect to the server using server-sent eventsPOST /messages/:id
: Send messages to a specific connection
Tools
The server provides the following cryptographic tools:
- generateKeyPair: Generate a new SJCL P-256 key pair (without exposing the private key)
- deriveSharedSecret: Derive a shared secret from private and public keys for secure communication
- encrypt: Encrypt messages using SJCL AES-CCM encryption with the derived shared secret
- decrypt: Decrypt messages using SJCL AES-CCM with the shared secret
Example of a full Sonnet 3.7 LLM thread connected to this MCP server:
System message:
Messages
License
This server cannot be installed
A Model Context Protocol server built with Express.js that provides cryptographic tools including key pair generation, shared secret derivation, and message encryption/decryption.