npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

solanashield-mcp

v2.0.0

Published

AI-powered smart contract security MCP server for Solana — x402 pay-per-audit, 12 tools, 40 vulnerability patterns

Readme

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

Quick Start

npm install -g solanashield-mcp

Or clone and build:

git clone https://github.com/ElromEvedElElyon/solanashield-mcp.git
cd solanashield-mcp
npm install && npm run build

Claude 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 | |------|-------------| | audit-program | Full security audit with severity-sorted findings | | check-accounts | Account validation (owner, signer, authority) | | check-cpi | Cross-Program Invocation safety analysis | | check-pda | PDA seed confusion and bump storage checks | | check-arithmetic | Integer overflow/underflow and precision loss | | check-tokens | SPL Token authority, mint, and freeze checks | | risk-score | Quick 0-100 risk score for triage | | list-patterns | Browse all vulnerability patterns | | explain-finding | Detailed exploit scenarios and remediation | | generate-fix | Auto-generate code fixes for findings | | compare-versions | Diff two code versions for regression analysis | | audit-json | 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 formatting

License

MIT

Author

PadraoBitcoin[email protected]