Skip to main content
Glama
soldefi-mcp

soldefi-mcp

by thomenz

soldefi-mcp

An MCP (Model Context Protocol) server that gives AI agents paid access to Solana DeFi risk intelligence — rug/honeypot scans, deep liquidity-pool analysis, and a wash-trade-filtered "real best pools" ranking. Each paid call settles an x402 micropayment in USDC (on Solana or Base) automatically, using a wallet you configure. A call is charged only on success — malformed input is rejected for free.

It talks to the hosted Solana DeFi Intelligence API (https://soldefi.thomenz.me by default). This package is a thin payment-client bridge; the intelligence runs server-side.

Tools

Tool

Price

What it does

scan_honeypot

$0.005

Rug/honeypot scan of an SPL token by mint: mint/freeze authority renounced?, Token-2022 transfer tax, top-holder concentration, and a live Jupiter buy→sell round trip as a strong signal the token is sellable at scan time (catches most honeypots). Returns a 0–100 risk score + AVOID/CAUTION/LOW RISK verdict.

analyze_pools

$0.015

Deep liquidity-pool analysis across Raydium/Orca/Meteora/pumpswap: real fee APR, wash-trade risk, age, TVL, a token rug verdict, and a real Jupiter slippage ladder ($100/$1k/$10k). Recommends the best risk-adjusted pool.

top_pools

$0.02

The real best Solana DEX pools — wash-traded/fake-volume pools filtered out, the rest ranked by risk-adjusted fee yield, with an excluded list of what was dropped and why.

check_lp_status

$0.005

Liquidity durability / rug-pull exposure: pools (TVL, age, DEX), largest-pool depth, burned-supply share, and whether mint/freeze authority is still live. Returns a 0-100 liquidity-risk score + verdict (DURABLE/SHAKY/FRAGILE/RUG-PRONE).

check_deployer

$0.01

Deployer reputation: creator wallet address, creator's remaining holding %, wallet age, and token age. Verdict flags fresh wallets, heavy insider holding, and brand-new tokens.

can_i_sell

$0.003

Real-time sellability check at YOUR size: simulates exiting a specific USD amount of a Solana token via a live Jupiter buy→sell round trip and reports USDC recovered, real sell price impact, and tax/friction loss.

check_exit_risk

$0.015

Can I get out, and at what cost? Crosses Birdeye smart-money flow (whale net buy/sell 24h, bundler/sniper manipulation tags, 1h sell-pressure, holder count) with a live Jupiter exit-slippage ladder ($1k/$10k) → LOW/ELEVATED/HIGH exit-risk. The sellability wedge: are whales dumping into a thin book that traps you?

full_scan

$0.03

One-call full workup: bundles honeypot + LP durability + deployer + exit-risk into a single verdict with an aggregated overall {riskScore, riskLevel, verdict, topFlags} — cheaper than buying the four separately (~$0.035).

scan_wallet_risk

$0.03

Portfolio rug scan: reads a wallet's SPL holdings and runs the full honeypot/rug scan on each (up to 10 positions), returning per-token risk and which mints to exit.

scan_honeypot_batch

$0.02

Batch rug/honeypot scan: submit up to 10 Solana token mints and get the full per-token honeypot verdict for each in one paid call (cheaper than scanning individually).

build_guarded_swap

$0.001 + 0.5%

Build a ready-to-sign Jupiter swap with the rug check in front: a critical verdict on the token you are BUYING returns the verdict and no transaction. Returns an UNSIGNED versioned transaction — your wallet signs, this service never custodies funds. The 0.5% platform fee applies only when SELLING into USDC/SOL (buying is fee-free) and rides inside the transaction you sign.

validate_mint

free

Local base58 mint-address format check. No payment.

Related MCP server: Cabal-Hunter

Install & configure

Add it to your MCP client (Claude Code, Claude Desktop, …). Only a paying wallet is required — everything else defaults to production.

{
  "mcpServers": {
    "soldefi": {
      "command": "npx",
      "args": ["-y", "soldefi-mcp"],
      "env": {
        "SOLANA_PRIVATE_KEY": "<base58-or-JSON-array secret key of a DEDICATED Solana wallet holding USDC>"
      }
    }
  }
}

You can pay on Base instead of (or in addition to) Solana by setting EVM_PRIVATE_KEY (0x…). If both are set, the x402 layer uses whichever rail the server's payment challenge advertises.

Environment

Var

Default

Notes

SOLANA_PRIVATE_KEY

—

base58 or JSON-array secret key (32 or 64 bytes) of the paying Solana wallet.

EVM_PRIVATE_KEY

—

0x-prefixed key of the paying Base wallet.

SOLDEFI_BASE_URL

https://soldefi.thomenz.me

Point at your own Worker if self-hosting.

X402_NETWORK

base

base (mainnet → Solana mainnet) or base-sepolia (testnet → Solana devnet).

SOLANA_RPC_URL

—

Optional RPC used to build the Solana payment (e.g. a Helius URL). Public default otherwise.

🔐 Security: these keys control real funds. Use a dedicated wallet with a small balance, never a personal/treasury key. Anything that can read this process' environment can spend from it.

The wallet needs

  • A little USDC on the chosen chain to pay per call.

  • On Solana, a tiny bit of SOL is not required for the payment itself (the facilitator sponsors the transaction fee), but the receiving side must have a USDC token account — which it does on the hosted service.

Develop

pnpm install
pnpm --filter soldefi-mcp build      # tsc → dist/
SOLANA_PRIVATE_KEY=… pnpm --filter soldefi-mcp dev   # run from source

License

MIT

Available Tools

10 tools
analyze_poolsDeep Solana liquidity-pool analysis for a tokenA

Deep liquidity-pool analysis for a Solana token across Raydium, Orca, Meteora and pumpswap. Per pool: real fee APR (volume x fee / TVL), wash-trade risk (turnover + executable-depth cross-check), age and TVL. Plus a token rug/honeypot verdict and a real Jupiter slippage ladder for true liquidity depth. Recommends the best risk-adjusted pool. Paid ($0.04).

Inputs: mint (required), tradeSizesUsd.

can_i_sellReal-time Solana sellability check at your sizeA

Simulate exiting a specific USD amount of a Solana token via a live Jupiter buy->sell round trip: whether you can actually sell, USDC recovered, real sell price impact and tax/friction loss. Answers 'can I get $X out right now, and at what cost?' — catches honeypots and thin books at your real trade size. Paid ($0.01).

Inputs: mint (required), usd.

check_deployerSolana token deployer reputationA

Trace who launched a Solana token: the mint's creator wallet, how much of the token the deployer still holds, the deployer wallet's age and the token's age. Returns a 0-100 risk score + verdict flagging fresh wallets, heavy insider self-holding and brand-new tokens. Paid ($0.03).

Inputs: mint (required).

check_exit_riskSolana exit-risk: can I get out, and at what cost?B

Answer 'can I actually EXIT this Solana token right now, or am I trapped?' Crosses Birdeye smart-money signals — whale net buy/sell flow (24h), bundler/sniper manipulation tags, 1h sell-pressure and holder count — with a LIVE Jupiter exit-slippage ladder at $1k and $10k. Returns an exit_risk verdict (LOW/ELEVATED/HIGH): are the whales dumping into a thin book that traps you, or is the exit clean? The sellability wedge — for exit-planning and trading agents. Paid ($0.04).

Inputs: mint (required).

check_lp_statusSolana token liquidity durability / rug-pull exposureA

Assess how durable a Solana token's liquidity is and whether a dev could pull it: pools (TVL, age, DEX), largest-pool depth, burned-supply share, and whether mint/freeze authority is still live. Returns a 0-100 liquidity-risk score + verdict (DURABLE/SHAKY/FRAGILE/RUG-PRONE). A durability signal, not a cryptographic LP time-lock proof. Paid ($0.02).

Inputs: mint (required).

scan_honeypotSolana token rug / honeypot scanA

Rug & honeypot scan of a Solana SPL token by mint. On-chain: mint/freeze authority renounced?, Token-2022 transfer tax, top-holder concentration, plus a live Jupiter buy->sell round trip proving the token is actually sellable (not a honeypot). Returns a 0-100 risk score, machine flags and an agent-readable verdict (AVOID/CAUTION/SAFE). Paid ($0.02).

Inputs: mint (required).

scan_honeypot_batchBatch Solana rug/honeypot scan (up to 10 mints)A

Scan up to 10 Solana token mints in one paid call and get the full per-token honeypot verdict (0-100 risk score, flags, sellability) for each — cheaper than scanning individually. For vetting a watchlist or a set of launch candidates at once. Paid ($0.10).

Inputs: mints (required).

scan_wallet_riskPortfolio rug scan for a Solana walletA

Read a Solana wallet's SPL holdings and run the full honeypot/rug scan on each (up to 10 positions). Returns per-token risk plus a summary of how many holdings are critical/high/medium/low and which mints to exit. For portfolio-manager and risk agents auditing exposure. Paid ($0.05).

Inputs: address (required).

top_poolsReal best Solana DEX pools (wash-filtered)A

The real best Solana DEX pools: the same top-pools feed a free API returns, but wash-traded and fake-volume pools are filtered out and the rest ranked by risk-adjusted fee yield (Raydium/Orca/Meteora). Returns clean, decision-ready pools plus an excluded list showing exactly which pools were dropped and why. Paid ($0.05).

Inputs: limit, minTvlUsd.

validate_mintValidate a Solana mint address (free)A

Free local base58 address-format validation of a single Solana mint. No payment required. Use it to avoid paying on a malformed mint.

Inputs: mint (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 10 tools

    Disambiguation4/5

    Tools have largely distinct purposes, such as pool analysis, deployer check, honeypot scan, and exit risk. Some overlap exists between 'can_i_sell' and 'check_exit_risk' as both involve selling, but their focus differs (simulation vs. risk assessment). Overall, agents should be able to differentiate based on descriptions.

    Naming Consistency5/5

    All tools use consistent snake_case with a verb_noun pattern (e.g., analyze_pools, check_deployer, scan_honeypot). Even compound names like 'can_i_sell' follow a predictable style. No mixing of conventions.

    Tool Count5/5

    With 10 tools covering various aspects of Solana token risk analysis, the count is well-scoped. Each tool has a clear role, and the set is neither too sparse nor bloated.

    Completeness4/5

    The tool set covers major workflows: deployer analysis, honeypot detection, exit risk, liquidity assessment, and pool ranking. A minor gap is the lack of a basic token metadata tool (e.g., supply, decimals). However, the focus on risk assessment is adequately covered.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      AI-powered Solana DEX smart money signals. Detects whale/dolphin accumulation, divergence patterns, and market phase across 170+ tokens. Pay-per-call via x402 USDC micropayments.
      126 npm
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      On-chain Solana token safety for trading agents — traces coordinated wallet funding, same-block Jito bundles, serial-rug deployers and live coordinated dumps into one Exit-Liquidity Risk verdict before a swap. Free tier, then $0.02 USDC/query via x402.
      1
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to access Solana wallet analytics, token data, and DeFi tools via pay-per-request USDC micropayments using the x402 protocol, without API keys or subscriptions.
      13
      61 npm
      MIT