Skip to main content
Glama
mcp-contract-security

mcp-contract-security

by mastrophot

mcp-contract-security

스마트 계약 보안 스캐닝을 위한 MCP 서버입니다.

필요한 도구를 구현합니다:

  • scan_contract

  • compare_security_models

  • audit_checklist

지원 언어:

  • solidity

  • rust

  • typescript

검사 내용

scan_contract는 현재 다음에 대한 휴리스틱 패턴을 감지합니다:

  • 재진입(Reentrancy)

  • 정수 오버플로/언더플로 위험

  • 접근 제어 문제

  • 프론트러닝 노출

  • 오라클 조작 위험

출력에는 다음이 포함됩니다:

  • 심각도/유형/라인이 포함된 취약점 목록

  • security_score

  • near_equivalent_score

  • NEAR 특화 보안 메모 및 권장 사항

Related MCP server: meok-mcp-injection-scan-mcp

설치

npm install -g mcp-contract-security

게시된 패키지:

MCP 구성 (Claude Desktop)

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

도구 사용법

scan_contract

입력:

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

compare_security_models

입력 (선택 사항):

{
  "language": "solidity"
}

audit_checklist

입력 (선택 사항):

{
  "language": "rust"
}

로컬 개발

npm install
npm run check

산출물 자산

추가 게시 자산이 deliverables/에 준비되어 있습니다:

  • deliverables/mcp-registry-submission.md

  • deliverables/security-subreddit-posts.md

  • deliverables/blog-why-near-contracts-safer.md

  • server.json (MCP 레지스트리 메타데이터, 스키마 검증됨)

라이선스

MIT

Available Tools

3 tools
audit_checklistB

Return a practical smart contract security checklist with NEAR-specific items.

Inputs: language.

compare_security_modelsB

Compare NEAR vs Ethereum security architecture and risk profile.

Inputs: language.

scan_contractB

Scan contract code for common vulnerabilities and include NEAR-specific security notes.

Inputs: code (required), language (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: scanning contracts for vulnerabilities, comparing architectures, and providing checklists. There is no meaningful overlap that would cause an agent to select the wrong tool.

    Naming Consistency4/5

    Two tools follow a verb_noun pattern (scan_contract, compare_security_models), while audit_checklist is more of a noun phrase. The pattern is mostly predictable and readable, with only a minor deviation.

    Tool Count4/5

    Three tools is a reasonable scope for a focused contract security server. It is slightly small but each tool serves a distinct, justified function within the domain.

    Completeness4/5

    The toolset covers scanning, comparative analysis, and actionable guidance, which gives agents a solid workflow. It lacks deeper features like detailed report generation or code fixes, but the core security assessment use case is well covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Security scanner for MCP servers. Detects prompt injection, command injection, auth bypass, and excessive permissions across tools, resources, and prompts.
      75 npm
      3
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that statically audits Solidity smart contracts for common vulnerabilities like reentrancy and access control, enabling developers to identify and fix security issues via natural language.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables scanning Solidity smart contracts for 13 vulnerability classes using pattern-based analysis; provides full audit, quick scan, gas analysis, and detector catalog through MCP tools.
      MIT