canonicalhash

Deterministic JSON hashing and EIP-712 attestations for AI agents via x402.

Should I use this

Quality & Safety

A
Description quality
100%
Schema completeness
98%
Naming quality
88%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~470Tokens (tool definitions)
~731 BTypical response size
Minimal attention impact (0.37% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "canonicalhash": {
      "url": "https://canonicalhash-production.up.railway.app/mcp"
    }
  }
}

Remote endpoints

https://canonicalhash-production.up.railway.app/mcpstreamable-http

What it can do

Tool inventory

Tools (5)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
⚪canonicalize(payload, algorithm)

Canonicalize JSON with RFC 8785 and return a SHA-256 hash plus an EIP-712 signed attestation.

Input Schema

{
  "type": "object",
  "properties": {
    "payload": {
      "type": "string",
      "description": "The JSON payload stringified (e.g., '{\"b\":2,\"a\":1}')"
    },
    "algorithm": {
      "default": "sha256",
      "type": "string",
      "enum": [
        "sha256",
        "sha512"
      ]
    }
  },
  "required": [
    "payload"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪batch_canonicalize(payloads)

Batch canonicalize up to 1000 JSON payloads in one call.

Input Schema

{
  "type": "object",
  "properties": {
    "payloads": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of JSON payloads, each stringified"
    }
  },
  "required": [
    "payloads"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡create_receipt(action, metadata)

Generate a tamper-evident EIP-712 action receipt for an agent decision.

Input Schema

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "description": "Description of the action"
    },
    "metadata": {
      "description": "Additional metadata stringified JSON",
      "type": "string"
    }
  },
  "required": [
    "action"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢structure_extraction(text, schema)

Extract structured JSON from messy text (emails, logs, tickets) using regex or Needle 3.

Input Schema

{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "description": "The messy text to extract from"
    },
    "schema": {
      "description": "Optional output schema stringified JSON",
      "type": "string"
    }
  },
  "required": [
    "text"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪verify_attestation(attestation)

Verify an EIP-712 attestation against the published public key. Always free.

Input Schema

{
  "type": "object",
  "properties": {
    "attestation": {
      "type": "string",
      "description": "The attestation object stringified JSON"
    }
  },
  "required": [
    "attestation"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded5 tools
verifiedversion not recorded5 tools
verifiedversion not recorded5 tools