io.github.mastrophot/contract-security-scanner

Official registry Security

MCP smart contract scanner with NEAR-focused security context.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package mcp-contract-security
Claude Code
claude mcp add contract-security-scanner -- npx -y mcp-contract-security@0.1.1
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "contract-security-scanner": {
            "command": "npx",
            "args": [
                "-y",
                "mcp-contract-security@0.1.1"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. mcp-contract-security
  2. What it checks
  3. Install
  4. MCP config (Claude Desktop)
  5. Tool usage
  6. Local development
  7. Deliverable assets
  8. License

mcp-contract-security

MCP server for smart contract security scanning.

Implements the required tools:

  • scan_contract
  • compare_security_models
  • audit_checklist

Supports languages:

  • solidity
  • rust
  • typescript

What it checks

scan_contract currently detects heuristic patterns for:

  • Reentrancy
  • Integer overflow/underflow risk
  • Access control issues
  • Front-running exposure
  • Oracle manipulation risk

The output includes:

  • vulnerability list with severity/type/line
  • security_score
  • near_equivalent_score
  • NEAR-specific security notes and recommendation

Install

npm install -g mcp-contract-security

Published package:

MCP config (Claude Desktop)

{
  "mcpServers": {
    "contract-security": {
      "command": "mcp-contract-security"
    }
  }
}

Tool usage

scan_contract

Input:

{
  "code": "contract source code here",
  "language": "solidity"
}
compare_security_models

Input (optional):

{
  "language": "solidity"
}
audit_checklist

Input (optional):

{
  "language": "rust"
}

Local development

npm install
npm run check

Deliverable assets

Additional publish assets are prepared in deliverables/:

  • deliverables/mcp-registry-submission.md
  • deliverables/security-subreddit-posts.md
  • deliverables/blog-why-near-contracts-safer.md
  • server.json (MCP Registry metadata, schema-validated)

License

MIT

Frequently asked questions

What is io.github.mastrophot/contract-security-scanner?

MCP smart contract scanner with NEAR-focused security context.

How do I install io.github.mastrophot/contract-security-scanner?

It runs on your machine. In Claude Code: claude mcp add contract-security-scanner -- npx -y mcp-contract-security@0.1.1. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.mastrophot/contract-security-scanner need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.mastrophot/contract-security-scanner open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.mastrophot/contract-security-scanner?

It is published by mastrophot. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.