smart-contract-scanner-api
Provides a smart contract vulnerability scanner for Solidity code, detecting 13 vulnerability classes including reentrancy, integer overflow, and access control issues.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@smart-contract-scanner-apiscan this Solidity contract for vulnerabilities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Smart Contract Scanner API
⭐ Building in public from $0 MRR. Star if you want to follow the journey — lazymac-mcp (42 tools, one MCP install) · lazymac-k-mcp (Korean wedge) · lazymac-sdk (TS client) · api.lazy-mac.com · Pro $29/mo.
🚀 Want all 42 lazymac tools through ONE MCP install?
npx -y @lazymac/mcp· Pro $29/mo for unlimited calls.
Premium Solidity smart contract vulnerability scanner — REST API and MCP server. Detects 13 vulnerability classes using pattern-based analysis with zero external dependencies.
Why This Exists
Professional smart contract audits cost $5K–$50K and take weeks. This API provides automated, instant security analysis for a fraction of the cost. No external API keys needed — all analysis is done locally via pattern matching and structural analysis.
Related MCP server: Slither MCP Server
Vulnerability Detection
ID | Name | Severity | SWC |
SCS-001 | Reentrancy | Critical | SWC-107 |
SCS-002 | Integer Overflow/Underflow | High | SWC-101 |
SCS-003 | Unchecked External Calls | High | SWC-104 |
SCS-004 | Access Control | Critical | SWC-105 |
SCS-005 | Timestamp Dependence | Medium | SWC-116 |
SCS-006 | tx.origin Authentication | Critical | SWC-115 |
SCS-007 | Delegatecall Injection | Critical | SWC-112 |
SCS-008 | Self-destruct | High | SWC-106 |
SCS-009 | Floating Pragma | Low | SWC-103 |
SCS-010 | Gas Limit Issues | Medium | SWC-128 |
SCS-011 | Front-running | Medium | SWC-114 |
SCS-012 | Missing Events | Low | N/A |
SCS-013 | Unused Variables | Info | SWC-131 |
Quick Start
npm install
npm start # REST API on port 5200
npm run mcp # MCP server (stdio)
npm test # Run test suiteAPI Endpoints
POST /api/v1/scan — Full Audit
curl -X POST http://localhost:5200/api/v1/scan \
-H "Content-Type: application/json" \
-d '{"code": "pragma solidity ^0.8.0; contract Foo { function withdraw() public { msg.sender.call{value: 1}(\"\"); } }"}'Returns: Full audit report with risk score (0–100), findings grouped by severity, gas optimization suggestions, and actionable recommendations.
POST /api/v1/quick-scan — Critical Checks Only
Same request format. Checks only the top 5 critical patterns (reentrancy, access control, tx.origin, delegatecall, unchecked calls). Faster response.
POST /api/v1/gas-analysis — Gas Optimization
Returns gas optimization suggestions with estimated savings per suggestion.
GET /api/v1/vulnerabilities — Detector Catalog
Lists all 13 detectable vulnerability types with descriptions and SWC references.
MCP Server
Add to your MCP client configuration:
{
"mcpServers": {
"smart-contract-scanner": {
"command": "node",
"args": ["src/mcp-server.js"],
"cwd": "/path/to/smart-contract-scanner-api"
}
}
}Tools:
scan_contract— Full security auditquick_scan_contract— Critical checks onlyanalyze_gas— Gas optimization analysislist_vulnerabilities— Detector catalog
Report Format
{
"report": {
"overview": {
"riskScore": 78,
"riskLevel": "High",
"summary": { "total": 8, "critical": 2, "high": 3, "medium": 2, "low": 1, "info": 0 }
},
"findings": { "bySeverity": { ... }, "total": 8 },
"gasOptimization": { "suggestions": [...] },
"recommendations": [...]
}
}Docker
docker build -t smart-contract-scanner .
docker run -p 5200:5200 smart-contract-scannerLicense
MIT
💡 Host your own stack? Get $200 DigitalOcean credit via lazymac referral link.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
Flicense-qualityDmaintenanceAI-powered security vulnerability detection for MCP-compatible agents, offering real-time scanning of code against a knowledge graph of 24,000+ vulnerability patterns.Last updated
Slither MCP Serverofficial
AlicenseAqualityDmaintenanceEnables static analysis of Solidity smart contracts using Slither, including contract metadata, function details, inheritance, and security detectors through MCP tools.Last updated2395AGPL 3.0- Alicense-qualityCmaintenanceEnables hybrid code audits using MCP tools across 12 domains, producing structured, scored, and actionable code quality reports.Last updated231MIT
- Flicense-qualityBmaintenanceAn 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.Last updated
Related MCP Connectors
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Scan any public GitHub MCP-server repo for security issues. 37 MCP-specific L1 rules, 8 languages.
Free MCP tools: the only MCP linter, health checks, cost estimation, and trust evaluation.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lazymac2x/smart-contract-scanner-api'
If you have feedback or need assistance with the MCP directory API, please join our Discord server