SolanaShield MCP
Click on "Deploy 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., "@SolanaShield MCP audit my Anchor program for security 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.
SolanaShield MCP
AI-powered smart contract security for Solana programs via Model Context Protocol
SolanaShield is a specialized MCP server that brings 40+ Solana vulnerability patterns to any AI assistant. It detects critical security issues in Anchor/Solana programs including missing owner checks, arbitrary CPI, PDA confusion, integer overflow, reentrancy, and more.
Built for the Colosseum Frontier Hackathon (Apr 6 — May 11, 2026).
Features
40 Vulnerability Patterns — 8 Critical, 12 High, 12 Medium, 8 Low
12 MCP Tools — Full audit, targeted checks, risk scoring, fix generation
Zero Dependencies — Pure static analysis, no external APIs needed
Solana-Native — Every pattern is specific to Solana/Anchor programs
JSON Output — Machine-readable results for CI/CD integration
Related MCP server: cabal-radar-mcp
Quick Start
npm install -g solanashield-mcpOr clone and build:
git clone https://github.com/ElromEvedElElyon/solanashield-mcp.git
cd solanashield-mcp
npm install && npm run buildClaude Desktop Configuration
Add to ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"solanashield": {
"command": "node",
"args": ["/path/to/solanashield-mcp/dist/index.js"]
}
}
}MCP Tools
Tool | Description |
| Full security audit with severity-sorted findings |
| Account validation (owner, signer, authority) |
| Cross-Program Invocation safety analysis |
| PDA seed confusion and bump storage checks |
| Integer overflow/underflow and precision loss |
| SPL Token authority, mint, and freeze checks |
| Quick 0-100 risk score for triage |
| Browse all vulnerability patterns |
| Detailed exploit scenarios and remediation |
| Auto-generate code fixes for findings |
| Diff two code versions for regression analysis |
| Structured JSON output for programmatic use |
Vulnerability Categories
Category | Patterns | Example |
Access Control | 3 | Missing owner check, missing signer |
CPI Safety | 4 | Arbitrary CPI, reentrancy, privilege escalation |
PDA Safety | 2 | Seed confusion, bump not stored |
Token Safety | 4 | Authority mismatch, mint/freeze authority |
Arithmetic | 2 | Integer overflow, precision loss |
State Safety | 5 | Reinitialization, account close, rent exemption |
DeFi | 1 | Flash loan via CPI |
Oracle Safety | 1 | Stale price feed |
Deserialization | 2 | Type cosplay, unsafe deserialization |
Anchor | 2 | Missing constraints, init_if_needed |
DoS | 1 | Unbounded iteration |
Logic | 1 | Timestamp dependence |
Observability | 2 | Missing events, missing logging |
Optimization | 2 | Unused accounts, CU optimization |
Code Quality | 3 | Magic numbers, test code, missing docs |
Configuration | 1 | Hardcoded addresses |
Error Handling | 1 | Missing error context |
Maintenance | 1 | Deprecated API usage |
Example Output
Risk Score: 62/100 (HIGH)
Critical: 1 | High: 3 | Medium: 1 | Low: 3
Total findings: 8 across 19 lines
RECOMMENDATION: Do NOT deploy without fixing critical and high findings.Architecture
src/
index.ts # MCP server with 12 tool registrations
patterns/
solana-patterns.ts # 40 vulnerability pattern definitions
analyzers/
static-analyzer.ts # Pattern matching engine + report formattingColosseum Frontier Hackathon
SolanaShield is competing in the Solana Frontier Hackathon (Apr 6 — May 11, 2026):
$30K Grand Champion + $250K pre-seed funding
Category: Security / Developer Tools
Status: Registered and building
Why SolanaShield?
Every Solana program deployed without a security audit is a potential exploit waiting to happen. SolanaShield makes security accessible to every developer by integrating directly into their AI workflow via MCP. No expensive audit firms, no waiting weeks — instant security analysis.
Roadmap
40 vulnerability patterns (8 critical, 12 high)
12 MCP tools
Published on npm (
solanashield-mcp)x402 pay-per-audit server
Real-time monitoring (watch deployed programs)
Anchor IDL parsing
Multi-program analysis (CPI chains)
VS Code extension
CI/CD GitHub Action
License
MIT
Author
PadraoBitcoin — standardbitcoin.io@gmail.com
Available Tools
12 toolsaudit-jsonC
Run audit and return structured JSON results for programmatic consumption.
Inputs: source_code (required).
audit-programA
Run a full security audit on Solana/Anchor program source code. Returns findings sorted by severity with fix suggestions.
Inputs: source_code (required), severity_filter.
check-accountsC
Check account validation: owner checks, signer verification, authority, token accounts, duplicate mutable accounts.
Inputs: source_code (required).
check-arithmeticB
Detect integer overflow/underflow, precision loss, and unsafe type casting.
Inputs: source_code (required).
check-cpiA
Analyze Cross-Program Invocations for safety: arbitrary CPI, reentrancy, privilege escalation, program ID validation.
Inputs: source_code (required).
check-pdaA
Audit PDA (Program Derived Address) usage: seed confusion, bump storage, collisions.
Inputs: source_code (required).
check-tokensB
Analyze SPL Token operations: authority checks, mint validation, freeze authority, token-2022 compatibility.
Inputs: source_code (required).
compare-versionsB
Compare two versions of code to see if fixes resolved previous findings or introduced new issues.
Inputs: new_code (required), old_code (required).
explain-findingA
Get detailed explanation, exploit scenario, and remediation for a specific vulnerability pattern.
Inputs: pattern_id (required).
generate-fixC
Generate a code fix suggestion for a specific finding at a given line.
Inputs: pattern_id (required), line_number (required), source_code (required).
list-patternsB
List all vulnerability patterns SolanaShield checks for, optionally filtered by severity or category.
Inputs: category, severity.
risk-scoreB
Calculate a 0-100 risk score for Solana program code. Quick triage without full details.
Inputs: source_code (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
The check-* family cleanly partitions the vulnerability domain (accounts, CPI, PDA, arithmetic, tokens), and audit-program vs audit-json vs risk-score are distinguishable by depth/output format. There is still mild overlap between audit-program, audit-json, and risk-score, which all effectively audit code and could be confused by an agent choosing how deep to go.
All 12 tools use consistent kebab-case with a verb-first pattern (check-*, audit-*, generate-*, list-*, explain-*, compare-*). The only deviation is risk-score, which is noun-based rather than verb-based, but it remains readable and unambiguous.
Twelve tools is well within the sweet spot for a security-audit server, with each tool covering a distinct check category or workflow step. No tool feels redundant or filler.
The surface covers the full audit lifecycle: pattern discovery, targeted category checks, full audit, triage scoring, fix generation, explanation, and version comparison. Minor gaps exist around persisting/exporting reports beyond JSON and filtering or paging findings by ID, but core workflows have no dead ends.
Maintenance
Related MCP Connectors
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Audit your MCP servers for poisoned tools and leaked secrets, and check AI-generated code for flaws.
The OpenZeppelin Solidity Contracts MCP server integrates OpenZeppelin's security and style rules into AI-driven development workflows, enabling AI assistants to generate safe, correct, and production-ready smart contracts. It automatically validates generated code against OpenZeppelin standards (including imports, modifiers, naming conventions, and security checks) and supports various contract types including ERC-20, ERC-721, ERC-1155, Stablecoins, RWA, Governor, and Account contracts through prompt-driven workflows.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI agents to run deterministic, fully local static security and compliance audits of code, configurations, and dependencies through 32 MCP tools covering 24 vulnerability categories. It also detects the project stack, generates risk reports and checklists, suggests stack-aware remediations, and re-validates fixes to confirm vulnerabilities were eliminated.321MIT
- AlicenseBqualityBmaintenanceEnables MCP assistants to run heuristic risk scans on Solana and Base tokens, covering mint/freeze authorities, Token-2022 controls, holder concentration, dangerous bytecode patterns and transfer restrictions. It also supports Pro workflows for detecting block-0 bundlers, tracing mother-wallet funding clusters and batch-auditing watchlists, with local license activation via on-chain payment receipts.6MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI editors to run local security scans for vulnerabilities, leaked secrets, risky dependencies, IaC, container, license, and posture issues through MCP. It lets assistants surface findings and fix them in the same turn.6MIT
- AlicenseNot gradedqualityBmaintenanceEnables coding assistants to perform real-time security auditing of MCP servers and AI agents, including code security scanning, prompt-injection fuzzing, and verification badge generation.MIT