Skip to main content
Glama
seminar-cipher-mcp

seminar-cipher-mcp

by tranthethang

seminar-cipher-mcp

An MCP server (mcp >= 2.0) providing authenticated symmetric text encryption and decryption (AES-256-GCM + scrypt) over streamable-http (/mcp).

Setup & Run

python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

PORT=10000 python server.py

Supported environment variables:

  • MCP_SERVER_NAME (default cipher-service)

  • HOST (default 0.0.0.0)

  • PORT (default 10000, valid range 1..65535)

  • MCP_TRANSPORT (default streamable-http)

  • MCP_STATELESS_HTTP (default true)

  • MAX_PLAINTEXT_BYTES (default 1000000)

  • MAX_TOKEN_CHARS (default 2000000)

  • SCRYPT_N (default 16384), SCRYPT_R (default 8), SCRYPT_P (default 1)

Related MCP server: WebCrypt

Running Tests

python -m unittest -v test_server.py

Testing with client.openai.py

client.openai.py is an end-to-end demo client that connects an OpenAI-compatible LLM (/chat/completions) to the Cipher MCP server over streamable-http, discovers its tools via tools/list, and runs a tool-calling loop (up to 8 turns).

  1. Create .env from .env.example and configure your LLM credentials and MCP endpoint:

cp .env.example .env

Environment variables used by client.openai.py:

  • OPENAI_API_URL: OpenAI-compatible base URL or full /chat/completions URL (default https://api.openai.com/v1)

  • OPENAI_API_MODEL: Model name (default gpt-6-luna)

  • OPENAI_API_KEY: API key for the OpenAI-compatible endpoint

  • MCP_URL: Target Cipher MCP endpoint (default https://cipher-mcp.onrender.com/mcp)

  1. Run against the local server (after starting PORT=10000 python server.py in another terminal):

MCP_URL=http://127.0.0.1:10000/mcp python client.openai.py

Or run against the MCP_URL configured in .env with the default prompt or a custom prompt:

python client.openai.py
python client.openai.py "Encrypt 'hello world' with passphrase 'secret' and decrypt it back."

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server for sovereign AES-256-GCM backup encryption and decryption. Enables encrypting, decrypting, verifying, and scoring passphrases with zero network calls.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Zero-dependency Web Crypto suite & Model Context Protocol (MCP) server for AES-256-GCM, RSA-4096, and AI agent security.
      92 npm
      12
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AES-256-CBC encryption and decryption of messages with passphrase-derived keys, exposing tools, resources, and prompts for MCP clients like VS Code Copilot Chat.
      2
      ISC
    • A
      license
      C
      quality
      C
      maintenance
      Enables encrypting and decrypting plain-text messages with AES-256-CBC using any passphrase, with automatic scrypt key derivation and a fresh random IV per call. It also exposes a resource describing the algorithm and ready-to-use prompts, and can be run directly inside VS Code Copilot Chat or the MCP Inspector.
      2
      ISC