🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

smartguard-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smartguard-mcp

SmartGuard MCP Server - AI-powered smart contract security audit tools for Claude Code, Cursor, and AI coding agents. Detect reentrancy, access control, and quantum vulnerabilities.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

SmartGuard MCP

AI-powered smart contract security audit tools for Claude Code, Cursor, and AI coding agents.

Detect reentrancy, access control, overflow, oracle manipulation, and quantum vulnerabilities in Solidity contracts — directly from your AI assistant.

Quick Start

{
  "mcpServers": {
    "smartguard": {
      "command": "npx",
      "args": ["-y", "smartguard-mcp"]
    }
  }
}

Tools (5)

ToolDescription
scan_contractScan a single Solidity file for vulnerabilities
scan_contracts_directoryRecursively scan all .sol files in a directory
scan_contract_snippetScan a Solidity code snippet (no file needed)
list_vulnerability_patternsList all detectable vulnerability patterns
gas_optimizationAnalyze gas optimization opportunities

Detected Vulnerabilities (18 patterns)

CategoryPatternsSeverity
ReentrancyExternal calls before state updatesCritical
Access ControlMissing modifiers, tx.origin, unprotected selfdestructCritical-High
DelegatecallUntrusted delegatecall targetsCritical
ArithmeticInteger overflow (pre-0.8), unchecked blocksHigh-Medium
Oracle ManipulationDirect reserve reading, balance-based pricingHigh
FrontrunningERC20 approve race conditionMedium
Timestampblock.timestamp dependenceMedium
Gas DoSUnbounded loops, long revert stringsMedium-Low
StorageUninitialized storage pointersHigh
Quantum (PQC)ECDSA/ecrecover quantum vulnerabilityMedium
Best PracticeFloating pragma, TODO commentsLow-Info

Example Output

# SmartGuard Audit Report

**File**: contracts/Vault.sol
**Risk Score**: 65/100 (HIGH)

## Findings

### 🔴 SG-001: External call with value before state update (potential reentrancy)
- **Severity**: CRITICAL
- **Location**: contracts/Vault.sol:15:9
- **SWC**: SWC-107

**Recommendation**: Use checks-effects-interactions pattern or ReentrancyGuard.

Used With

  • quantumguard-mcp — Post-quantum cryptography audit (complementary)

Together, QuantumGuard + SmartGuard provide full-spectrum smart contract security: traditional vulnerabilities + quantum-future threats.

License

MIT

Keywords

mcp

FAQs

Package last updated on 27 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts