gibber-mcp

This repository hosts a Model Context Protocol (MCP) server, offering cryptographic tools like key pair generation, shared secret derivation, and message encryption/decryption using the Stanford Javascript Crypto Library.

173
17

Tiny Cryptography MCP Server

A Model Context Protocol server built with Express.js, providing cryptographic tools for AI model communication.

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 for AI model and tool communication, enabling interoperability and effective tool usage.

Features

  • Generates SJCL P-256 key pairs.
  • Derives shared secrets for secure communication.
  • Encrypts/decrypts messages using SJCL AES-CCM.
  • Uses server-sent events (SSE) for real-time communication.

Installation

git clone https://github.com/anton10xr/gibber-mcp
cd mcp-server
npm install

Environment Variables

  • PORT: Server port (default: 3006)

Development

npm run dev

Production

npm run build
npm start

API Endpoints

  • GET /sse: Connect via server-sent events.
  • POST /messages/:id: Send messages to a connection.

Tools

  1. generateKeyPair: Generates a P-256 key pair.
  2. deriveSharedSecret: Derives a shared secret.
  3. encrypt: Encrypts messages using AES-CCM.
  4. decrypt: Decrypts messages using AES-CCM.

Example

The README provides an example of a Sonnet 3.7 LLM thread connected to this MCP server, demonstrating secure communication using the provided tools.

License

MIT

Repository

AN
anton10xr

anton10xr/gibber-mcp

Created

March 2, 2025

Updated

March 27, 2025

Language

JavaScript

Category

Communication