canonicalhash
Deterministic JSON hashing and EIP-712 attestations for AI agents via x402.
Should I use this
Quality & Safety
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
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-httpWhat it can do
Tool inventory
Tools (5)
⚪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
Evidence