Soldefi Mcp

io.github.thomenz由 GitHub 账号 thomenz 发布v0.5.2更新于 Oct 24, 2026

Solana DeFi risk intel over x402: rug/honeypot scans, pool analysis, wash-filtered pools.

已验证STDIO仅桌面金融安全与监控

概览

AI 生成的概览

本地 MCP 服务器,为助手提供付费的 Solana DeFi 风险情报:蜜罐扫描、池子分析与退出风险,按次以 USDC 通过 x402 结算。

可以做什么
  • 扫描代币与钱包的跑路/蜜罐风险,返回风险评分与结论,支持单个与批量
  • 分析 Raydium、Orca、Meteora、pumpswap 的流动性池,并给出风险调整后最优池排名
  • 按指定美元规模检查可卖出性与退出风险,并查看部署者信誉与 LP 耐久度
  • 一次调用完成蜜罐、LP、部署者与退出风险的组合全面体检
  • 构建带跑路检查的未签名 Jupiter 兑换交易,并免费校验 mint 地址格式
适用场景
适合在交易前让助手核查 Solana 代币或池子、判断持仓能否顺利退出,或筛查某钱包持仓的跑路风险。它是按次付费服务,更适合已在 Solana 或 Base 上持有 USDC、希望在对话中自动完成尽职调查的用户。
运行要求
通过 npx 在本地运行(需 Node.js)。需要一个有余额的付款钱包:SOLANA_PRIVATE_KEY 和/或 EVM_PRIVATE_KEY,并在所选链上持有 USDC。可选 SOLANA_RPC_URL、SOLDEFI_BASE_URL 与 X402_NETWORK(设为 base-sepolia 走测试网)。默认需访问托管 API 的网络连接。
安装前请注意
私钥可支配真实资金,每个付费工具都会花费 USDC;请使用余额很少的专用钱包,切勿使用个人或金库私钥,因为任何能读取该进程环境的人都可从中付款。build_guarded_swap 返回未签名交易,卖出为 USDC/SOL 时含 0.5% 费用,需由你的钱包签名。除非自托管,代币与池子数据会发送到第三方托管 API。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Soldefi Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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

ToolPriceWhat it does
scan_honeypot$0.005Rug/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.015Deep 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.02The 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.005Liquidity 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.01Deployer 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.003Real-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.015Can 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.03One-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.03Portfolio 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.02Batch 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_mintfreeLocal base58 mint-address format check. No payment.

Install & configure

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

json
{  "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

VarDefaultNotes
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_URLhttps://soldefi.thomenz.mePoint at your own Worker if self-hosting.
X402_NETWORKbasebase (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

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

License

MIT

来源:README.md,提交 78557d0

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.5.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分