# BRAINIAC Contract Security

> Paid Contract Security API via x402. Unpaid tool calls return 402.

- name: software.brainiac/contract-security
- version: 1.0.1
- connection class: R0 (autonomous)
- trust: 83/100 flags: no-repository
- quality: 80/100 (good)
- owner: not claimed
- descriptor: https://api.protogrid.dev/v1/servers/software.brainiac%2Fcontract-security
- tools: https://api.protogrid.dev/v1/servers/software.brainiac%2Fcontract-security/tools

**An agent can connect right now, no human step.** Remote endpoint, no authentication, reachable on the last probe.

## Connection (mcpServers)

```json
{
  "mcpServers": {
    "contract-security": {
      "type": "http",
      "url": "https://www.brainiac.software/mcp/contract-security"
    }
  }
}
```


## Trust

- hygiene: 80
- liveness: 100
- freshness: 100
- provenance: 55
- drivers: +dns-namespace +website +reachable +uptime-100% +updated-10d-ago -no-repository
- Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed.

## Quality 80/100 (good)

### protocol: 75 (weight 25)

- warn `protocol.modern`: newest supported version is 2025-11-25; 2026-07-28 not supported, older versions are deprecated until 2027-07-28
- n/a `protocol.stateless`: only applies to 2026-07-28 servers
- pass `protocol.transport`: streamable HTTP
- n/a `protocol.list_ttl`: only applies to 2026-07-28 servers

### authorization: n/a (weight 15)

- n/a `auth.prm`, `auth.as_metadata`, `auth.cimd`: no remote uses OAuth
- n/a `auth.secret_in_url`: no templated URL

### tool hygiene: 100 (weight 30)

- pass `tools.descriptions`: every tool has a description
- pass `tools.description_length`: descriptions are concise
- pass `tools.schemas`: every tool has an object input schema
- pass `tools.annotations`: 3 of 3 tools declare readOnlyHint or destructiveHint
- pass `tools.directory_hints`: every tool declares readOnlyHint, destructiveHint, idempotentHint and openWorldHint
- pass `tools.token_cost`: about 1,153 tokens to load every tool
- pass `tools.api_dump`: tools are not a one-to-one API dump
- pass `tools.hidden_text`: no hidden text in tool names, descriptions, schemas or annotations
- pass `tools.poisoning`: no instructions aimed at the model in tool definitions

### stability: 50 (weight 15)

- warn `stability.changes`: 9 tool changes in 30 days
- fail `stability.rug_pull`: 4 tools kept their name but changed most of their description in 30 days; review before trusting them
- pass `stability.new_links`: no tool change named a new site

### dependencies: n/a (weight 15)

- n/a `deps.known_vulns`, `deps.mcp_sdk_version`, `deps.resolvable`: no npm or PyPI package

- tools: 3, about 1,153 tokens to load them all
- tool set hash: 0445589ab3c9b331492f4960a08899ae
- tools last changed: 2026-11-25T15:34:15.485Z
- badge: [![protogrid quality](https://protogrid.dev/badge/software.brainiac/contract-security.svg)](https://protogrid.dev/servers/software.brainiac/contract-security)
- Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed.

### Definition changes

- 2026-11-25 `contact_us` added no new version (still 1.0.0)
  - How to contact BRAINIAC.software support: email, page URL, what to include in a message, and what not to send. Free. Does not send email.
- 2026-11-23 `contract-security_bytecode-structure-diff` changed (description) **meaning changed**
  - before: Decode two caller-supplied EVM bytecodes, or two instruction lists, into opcodes and compare the instruction sequence before you trust or deploy a contract. 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. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you trust or deploy a contract, left, right, similarity index, similarity_index, risk delta score, risk_delta_score, divergence points, divergence_points, Diff bytecode structure, bytecode structure diff.
  - after: Decode two caller-supplied EVM bytecodes, or two instruction lists, into opcodes and compare the instruction sequence. Docs: https://www.brainiac.software/api/contract-security/bytecode-structure-diff Keywords: before you trust or deploy a contract, left, right, similarity index, similarity_index, risk delta score, risk_delta_score, divergence points, divergence_points, Diff bytecode structure, bytecode structure diff.
- 2026-11-23 `contract-security_contract-bytecode-compare` changed (description, outputSchema) **meaning changed**
  - before: Compare two caller-supplied EVM bytecodes before you trust or deploy a contract. 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. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you trust or deploy a contract, reference, candidate, bytecodeKind, mode, compilerMetadata, constructorArguments, immutableRanges, expectedDifferences, comparison status, comparison_status, reference hash, reference_hash, candidate hash, candidate_hash.
  - after: Compare two caller-supplied EVM bytecodes. Docs: https://www.brainiac.software/api/contract-security/contract-bytecode-compare Keywords: before you trust or deploy a contract, reference, candidate, bytecodeKind, mode, compilerMetadata, constructorArguments, immutableRanges, expectedDifferences, comparison status, comparison_status, reference hash, reference_hash, candidate hash, candidate_hash.
- 2026-11-21 `contract-security_bytecode-structure-diff` changed (description)
  - before: 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. Use when you need diff bytecode structure as a paid JSON result with no API key.
  - after: Decode two caller-supplied EVM bytecodes, or two instruction lists, into opcodes and compare the instruction sequence before you trust or deploy a contract. 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. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you trust or deploy a contract, left, right, similarity index, similarity_index, risk delta score, risk_delta_score, divergence points, divergence_points, Diff bytecode structure, bytecode structure diff.
- 2026-11-21 `contract-security_contract-bytecode-compare` changed (description) **meaning changed**
  - before: Use when you need compare contract bytecode as a paid JSON result with no API key.
  - after: Compare two caller-supplied EVM bytecodes before you trust or deploy a contract. 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. HTTP 200 with status complete, partial, or failed is charged at the full listed price. HTTP 4xx/5xx are not charged. Keywords: before you trust or deploy a contract, reference, candidate, bytecodeKind, mode, compilerMetadata, constructorArguments, immutableRanges, expectedDifferences, comparison status, comparison_status, reference hash, reference_hash, candidate hash, candidate_hash.
- 2026-11-20 `contract-security_bytecode-structure-diff` changed (description)
  - before: 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.
  - after: 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. Use when you need diff bytecode structure as a paid JSON result with no API key.
- 2026-11-20 `contract-security_contract-bytecode-compare` changed (description) **meaning changed**
  - before: 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.
  - after: Use when you need compare contract bytecode as a paid JSON result with no API key.
- 2026-11-20 `contract-security_bytecode-structure-diff` changed (inputSchema, outputSchema, annotations)
- 2026-11-20 `contract-security_contract-bytecode-compare` changed (inputSchema, outputSchema, annotations)

Full history: https://api.protogrid.dev/v1/servers/software.brainiac%2Fcontract-security/changes

## Remotes

- https://www.brainiac.software/mcp/contract-security (streamable-http, auth none, reachable true, uptime30d 1)

## Packages

_none_

## Tools (3)

- `contact_us`: How to contact BRAINIAC.software support: email, page URL, what to include in a message, and what not to send. Free. Does not send email.
- `contract-security_bytecode-structure-diff`: Decode two caller-supplied EVM bytecodes, or two instruction lists, into opcodes and compare the instruction sequence. Docs: https://www.brainiac.software/api/contract-security/bytecode-structure-diff Keywords: before you trust or deploy a contract, left, right, similarity index, similarity_index, risk delta score, risk_delta_score, divergence points, divergence_points, Diff bytecode structure, bytecode structure diff.
- `contract-security_contract-bytecode-compare`: Compare two caller-supplied EVM bytecodes. Docs: https://www.brainiac.software/api/contract-security/contract-bytecode-compare Keywords: before you trust or deploy a contract, reference, candidate, bytecodeKind, mode, compilerMetadata, constructorArguments, immutableRanges, expectedDifferences, comparison status, comparison_status, reference hash, reference_hash, candidate hash, candidate_hash.
