Paid Contract Security API via x402. Unpaid tool calls return 402.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Decode two caller-supplied EVM bytecodes, or two instruction lists, into opcodes and compare the instruction sequence. Similarity ignores PUSH immediates. The risk delta counts CALL, SSTORE, CREATE, DELEGATECALL, CALLCODE, and SELFDESTRUCT. A high similarity is not proof that the contracts behave the same. No chain is queried. Price $0.04 USDC. POST /api/v1/contract-security/bytecode-structure-diff. An unpaid call returns the x402 payment terms and does not run.
This tool isn't marked read-only, so it may change something on the server or in an account you connected.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http contract-security https://www.brainiac.software/mcp/contract-security
Decode two caller-supplied EVM bytecodes, or two instruction lists, into opcodes and compare the instruction sequence. Similarity ignores PUSH immediates. The risk delta counts CALL, SSTORE, CREATE, DELEGATECALL, CALLCODE, and SELFDESTRUCT. A high similarity is not proof that the contracts behave the same. No chain is queried. Price $0.04 USDC. POST /api/v1/contract-security/bytecode-structure-diff. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| left* | any | |
| right* | any |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"left",
"right"
],
"properties": {
"left": {
"anyOf": [
{
"type": "string",
"pattern": "^(0x)?[0-9a-fA-F]*$",
"maxLength": 200000
},
{
"type": "object",
"required": [
"ops"
],
"properties": {
"ops": {
"type": "array",
"items": {
"type": "object",
"required": [
"op"
],
"properties": {
"op": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9]{0,31}$"
},
"arg": {
"type": "string",
"pattern": "^(0x)?[0-9a-fA-F]{0,64}$"
}
}
},
"maxItems": 1500,
"minItems": 1
}
}
}
]
},
"right": {
"anyOf": [
{
"type": "string",
"pattern": "^(0x)?[0-9a-fA-F]*$",
"maxLength": 200000
},
{
"type": "object",
"required": [
"ops"
],
"properties": {
"ops": {
"type": "array",
"items": {
"type": "object",
"required": [
"op"
],
"properties": {
"op": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9]{0,31}$"
},
"arg": {
"type": "string",
"pattern": "^(0x)?[0-9a-fA-F]{0,64}$"
}
}
},
"maxItems": 1500,
"minItems": 1
}
}
}
]
}
}
}Compare two caller-supplied EVM bytecodes. mode exact compares every byte. An omitted mode is exact. mode normalized masks only the supplied immutable ranges and a trailing Solidity CBOR metadata suffix when bytecodeKind is not creation and that suffix is present on both bytecodes. comparison_status is identical, different, partially_comparable, or invalid. Hashes are keccak256 of the supplied bytes. Similarity is the share of equal compared bytes, truncated to 4 decimal places. A difference is not a judgment that either bytecode is malicious, and similar bytecode is not equivalent behavior. No source code is verified and no chain is queried. Price $0.05 USDC. POST /api/v1/contract-security/contract-bytecode-compare. An unpaid call returns the x402 payment terms and does not run.
| Argument | Type | Description |
|---|---|---|
| mode | string | |
| candidate* | string | |
| reference* | string | |
| bytecodeKind | string | |
| immutableRanges | array | |
| compilerMetadata | object | |
| expectedDifferences | array | |
| constructorArguments |
We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 19, 2026.
No readOnlyHint / destructiveHint annotations, so clients can't tell a read from a write without asking.
Fix: Add annotations to each tool, e.g. { readOnlyHint: true } for tools that only read.
| string |
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"reference",
"candidate"
],
"properties": {
"mode": {
"enum": [
"exact",
"normalized"
],
"type": "string"
},
"candidate": {
"type": "string",
"pattern": "^0x(?:[0-9a-fA-F]{2})*$",
"maxLength": 262146
},
"reference": {
"type": "string",
"pattern": "^0x(?:[0-9a-fA-F]{2})*$",
"maxLength": 262146
},
"bytecodeKind": {
"enum": [
"runtime",
"creation"
],
"type": "string"
},
"immutableRanges": {
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "integer",
"maximum": 131072,
"exclusiveMinimum": 0
},
"start": {
"type": "integer",
"maximum": 131072,
"minimum": 0
}
},
"additionalProperties": false
},
"maxItems": 32
},
"compilerMetadata": {
"type": "object",
"properties": {
"version": {
"type": "string",
"maxLength": 40,
"minLength": 1
},
"compiler": {
"type": "string",
"maxLength": 80,
"minLength": 1
}
},
"additionalProperties": false
},
"expectedDifferences": {
"type": "array",
"items": {
"type": "object",
"required": [
"start",
"end"
],
"properties": {
"end": {
"type": "integer",
"maximum": 131072,
"exclusiveMinimum": 0
},
"start": {
"type": "integer",
"maximum": 131072,
"minimum": 0
}
},
"additionalProperties": false
},
"maxItems": 32
},
"constructorArguments": {
"type": "string",
"pattern": "^0x(?:[0-9a-fA-F]{2})*$",
"maxLength": 262146
}
},
"additionalProperties": false
}