🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

drainbrain-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

drainbrain-mcp-server

MCP server for DrainBrain - AI-powered Solana token rug pull detection

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

DrainBrain MCP Server

MCP server for DrainBrain — AI-powered Solana token rug pull detection.

Gives any MCP-compatible AI agent (Claude, Copilot, Cursor, custom agents) the ability to scan Solana tokens for rug pull risk using DrainBrain's 4-model ML ensemble, trained on 175K+ labeled tokens.

Built by RugSlayer — the Solana pre-crime scanner.

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "drainbrain": {
      "command": "npx",
      "args": ["-y", "drainbrain-mcp-server"],
      "env": {
        "DRAINBRAIN_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Code (CLI)

claude mcp add drainbrain -- npx -y drainbrain-mcp-server

Then set your API key:

export DRAINBRAIN_API_KEY=your-api-key

Any MCP Client

DRAINBRAIN_API_KEY=your-key npx drainbrain-mcp-server

Tools

scan_token

Scan a Solana token for rug pull risk. Returns a comprehensive risk assessment including score, honeypot detection, risk flags, and temporal behavioral analysis.

Parameters:

NameTypeRequiredDescription
mintstringYesSolana token mint address (base58 public key)

Returns:

  • Risk score (0-100) with severity classification
  • Risk level (safe / low / medium / high / critical)
  • Rug detection status and rug stage (1-5 progression)
  • Honeypot analysis with buy/sell tax percentages
  • Score breakdown by model component
  • Risk flags (specific issues detected)
  • Temporal analysis (behavioral pattern prediction with confidence and estimated time to pull)

Example prompt:

"Scan this Solana token for rug pull risk: So11111111111111111111111111111111111111112"

Example output:

Token: So11111111111111111111111111111111111111112
Risk Score: 12/100 SAFE
Risk Level: low
Rug Detected: NO
Honeypot: No

Score Breakdown:
  heuristic: 15
  ml_v1: 8
  ml_v2: 10
  temporal: 14

batch_scan

Scan multiple Solana tokens in one call. Returns a summary table with risk scores for each token. Maximum 10 tokens per batch.

Parameters:

NameTypeRequiredDescription
mintsstring[]YesArray of Solana token mint addresses (1-10)

Example prompt:

"Batch scan these 3 tokens for rug pull risk: Mint1, Mint2, Mint3"

Example output:

Batch Scan Results (3 tokens):

So111111...1112: 12/100 SAFE | low | Rug: NO
EPjFWdd5...Dt1v: 8/100 SAFE | low | Rug: NO
DezXAZ8z...pump: 85/100 CRITICAL | critical | Rug: YES

health_check

Check if the DrainBrain API is operational and which ML models are available. Use this to verify the service is working before scanning tokens.

Parameters: None

Example prompt:

"Check if DrainBrain is online"

Example output:

Status: healthy
API Version: v1

Models:
  ml_v1: OK v1.0.0 (0.06ms)
  ml_v2: OK v2.0.0 (0.08ms)
  temporal: OK v2.0.0 (0.12ms)
  heuristic: OK v1.0.0

compare_rugcheck

Compare DrainBrain's ML-based score against RugCheck's heuristic-only score for the same token. Shows where ML analysis provides an advantage over traditional approaches.

Parameters:

NameTypeRequiredDescription
mintstringYesSolana token mint address (base58 public key)

Example prompt:

"Compare DrainBrain vs RugCheck for this token: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"

Example output:

Comparison for: DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263

DrainBrain (ML Ensemble):
  Score: 85/100 CRITICAL
  Risk Level: critical
  Method: ensemble-temporal

RugCheck (Heuristic):
  Trust Score: 45
  Risk Level: medium

Analysis:
  Agreement: No
  Note: DrainBrain detected temporal rug patterns not visible to heuristic analysis

Risk Score Guide

ScoreLevelMeaning
0-19SAFELow risk - no rug indicators detected
20-39LOWMinor concerns - exercise normal caution
40-59MEDIUMModerate risk - several warning signs present
60-79HIGHHigh risk - significant rug pull indicators
80-100CRITICALExtreme risk - strong rug pull signals detected

Configuration

VariableRequiredDefaultDescription
DRAINBRAIN_API_KEYYes-Your DrainBrain API key
DRAINBRAIN_API_URLNohttps://rugslayer.comAPI base URL

Get an API Key

How DrainBrain Works

DrainBrain uses a 4-model ML ensemble trained on 175K+ labeled Solana tokens to predict rug pulls before they happen. The system analyzes liquidity patterns, on-chain behavior, temporal signals, and token authority configuration to produce a single risk score (0-100) with 5-stage rug progression tracking.

Unlike heuristic-only tools, DrainBrain detects behavioral patterns that precede rug pulls - often identifying threats before any price movement occurs.

Requirements

License

MIT

Keywords

mcp

FAQs

Package last updated on 27 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts