io.github.mastrophot/contract-security-scanner
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).
mcp-contract-securityclaude mcp add contract-security-scanner -- npx -y mcp-contract-security@0.1.1
{
"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
mcp-contract-security
MCP server for smart contract security scanning.
Implements the required tools:
scan_contractcompare_security_modelsaudit_checklist
Supports languages:
solidityrusttypescript
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_scorenear_equivalent_score- NEAR-specific security notes and recommendation
Install
npm install -g mcp-contract-security
Published package:
- npm: https://www.npmjs.com/package/mcp-contract-security
- MCP Registry: https://registry.modelcontextprotocol.io/v0/servers/io.github.mastrophot%2Fcontract-security-scanner/versions/0.1.1
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.mddeliverables/security-subreddit-posts.mddeliverables/blog-why-near-contracts-safer.mdserver.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.