API & MCP

Everything a person can do on Emoji Cipher Playground, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://emojicipherplayground.usefulweb.site/api/v1/calculate – run Emoji Cipher Playground
  • GET https://emojicipherplayground.usefulweb.site/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Emoji Cipher Playground

Encode or decode text with three emoji ciphers: a keyed substitution (your key shuffles the emoji alphabet), a Caesar shift over an emoji alphabet, or base-emoji, which turns every UTF-8 byte into one of 256 emoji so any text survives. Round trips are exact — and the tool shows why none of this is real encryption.

Inputs of Emoji Cipher Playground
FieldTypeDefaultDescription
actionselect (encode, decode)"encode"Action
schemeselect (substitution, caesar, base-emoji)"substitution"Cipher
text (required)textarea—Text
keytext—Key. Substitution: shuffles the emoji alphabet (empty = the default key “emoji”). Base-emoji: optional shuffle of the byte table (empty = standard table). Not used by Caesar.
shiftinteger3Caesar shift. Letters move by this many places (mod 26), digits too (mod 10).

Example request

Secret note with a keyed substitution

curl -X POST https://emojicipherplayground.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"action":"encode","scheme":"substitution","text":"Meet me at 7 by the old oak tree!","key":"picnic"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

  • Streamable HTTP endpoint: https://emojicipherplayground.usefulweb.site/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: emoji_cipher_playground
  • Local stdio connector: node src/mcp-stdio.ts --tool=emoji-cipher-playground
{
  "mcpServers": {
    "emoji-cipher-playground": { "type": "http", "url": "https://emojicipherplayground.usefulweb.site/mcp" }
  }
}