mcp-contract-security
mcp-contract-security
MCP-Server für die Sicherheitsprüfung von Smart Contracts.
Implementiert die erforderlichen Tools:
scan_contractcompare_security_modelsaudit_checklist
Unterstützte Sprachen:
solidityrusttypescript
Was geprüft wird
scan_contract erkennt derzeit heuristische Muster für:
Reentrancy
Integer-Overflow/Underflow-Risiko
Zugriffskontrollprobleme
Front-Running-Exposition
Oracle-Manipulationsrisiko
Die Ausgabe umfasst:
Schwachstellenliste mit Schweregrad/Typ/Zeile
security_scorenear_equivalent_scoreNEAR-spezifische Sicherheitshinweise und Empfehlung
Related MCP server: meok-mcp-injection-scan-mcp
Installation
npm install -g mcp-contract-securityVeröffentlichtes Paket:
MCP-Registry: https://registry.modelcontextprotocol.io/v0/servers/io.github.mastrophot%2Fcontract-security-scanner/versions/0.1.1
MCP-Konfiguration (Claude Desktop)
{
"mcpServers": {
"contract-security": {
"command": "mcp-contract-security"
}
}
}Tool-Nutzung
scan_contract
Eingabe:
{
"code": "contract source code here",
"language": "solidity"
}compare_security_models
Eingabe (optional):
{
"language": "solidity"
}audit_checklist
Eingabe (optional):
{
"language": "rust"
}Lokale Entwicklung
npm install
npm run checkLieferbare Assets
Zusätzliche Veröffentlichungs-Assets sind in deliverables/ vorbereitet:
deliverables/mcp-registry-submission.mddeliverables/security-subreddit-posts.mddeliverables/blog-why-near-contracts-safer.mdserver.json(MCP-Registry-Metadaten, schema-validiert)
Lizenz
MIT
Available Tools
3 toolsaudit_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
Scored across 3 tools
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.
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.
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.
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
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Scan any MCP server for tool-poisoning, security, auth & license. Trust score before install.
Scans an MCP server for security gaps before your agent connects. Free tier, no signup.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceSecurity scanner for MCP servers. Detects prompt injection, command injection, auth bypass, and excessive permissions across tools, resources, and prompts.75 npm3MIT
- AlicenseAqualityCmaintenanceScans MCP servers for prompt-injection, tool-poisoning, and SSRF vulnerabilities using 30+ canonical rules across 5 severity tiers, with optional signed safety reports for procurement.5MIT
- FlicenseNot gradedqualityDmaintenanceAn 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.-
- AlicenseNot gradedqualityDmaintenanceEnables 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