MCP.so
Sign In
Servers

Tiny Cryptography MCP Server

@anton10xr

Tiny MCP server with cryptography tools, sufficient to establish end-to-end encryption between LLM agents

Overview

What is 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. It is powered by the Stanford Javascript Crypto Library (SJCL) and is aimed at developers needing secure communication within MCP-based AI applications.

How to use Tiny Cryptography MCP Server?

Clone the repository, install dependencies with npm install, set the PORT environment variable (default: 3006), then run npm run dev for development or npm run build && npm start for production. Connect via GET /sse and send messages to POST /messages/:id. The server exposes four tools: generateKeyPair, deriveSharedSecret, encrypt, and decrypt.

Key features of Tiny Cryptography MCP Server

  • 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

Use cases of Tiny Cryptography MCP Server

  • Establishing encrypted channels between two AI agents to prevent eavesdropping
  • Exchanging sensitive data securely within a multi-robot or multi-agent conversation
  • Demonstrating end-to-end encryption workflows in MCP-based applications

FAQ from Tiny Cryptography MCP Server

What cryptographic library does it use?

It uses the Stanford Javascript Crypto Library (SJCL).

What algorithms are supported?

Key generation uses P-256 (ECDH), and message encryption/decryption uses AES-CCM via SJCL.

How do I install and run the server?

Clone the repo, run npm install, optionally set the PORT environment variable, then use npm run dev for development or npm run build && npm start for production.

What are the API endpoints?

GET /sse connects to the server via server-sent events, and POST /messages/:id sends messages to a specific connection.

What is the license?

The server is licensed under the MIT License.

Tags

More from Other