PnL Labs — Solana Trust & Risk Checks

io.github.PnLlabs由 GitHub 账号 PnLlabs 发布v1.0.0更新于 Oct 24, 2026

Trust checks for Solana trading: realized-PnL wallet trust, token safety, trade cost, forensics.

已验证Streamable HTTP可网页运行金融安全与监控

概览

AI 生成的概览

一个托管式 MCP 服务器,基于链上数据为 Solana 钱包、代币和交易返回信任与风险判定。

可以做什么
检查 Solana 钱包信任度:根据链上交易历史重算已实现 SOL 盈亏,返回判定、置信度和原因。追踪钱包资金来源与年龄,并给出新钱包标记。评估代币结构性安全:持有人集中度、早期买家中的狙击机器人地址,以及模拟买卖往返以检测蜜罐行为。估算指定规模交易的成本:预期滑点、往返成本、建议最大规模和池子流动性。
适用场景
适合助手在评估可跟单的 Solana 钱包、买入前筛查代币,或确定交易规模时,获取机器可读的判定而非峰值收益评分。面向需要在行动前设置保守门槛的交易代理工作流。
运行要求
远程 MCP 端点 api.pnllabs.com/mcp,无需安装、账号或 API 密钥。每个 IP 每日有免费额度,用完后需通过 x402 协议以 Solana 上的 USDC 按次付费。需要能访问该托管 API 的网络。
安装前请注意
超出每日免费额度后,每次调用需通过 x402 以 Solana 上的 USDC 付费,自动付款的代理可能产生实际支出;各项检查价格已列出。服务器提供的是风险判定而非投资建议,结构性代币检查无法识别行为型跑路。支付和错误响应不是判定结果。

安装

在 SourceWeft 中

  1. 打开 控制台中的 PnL Labs — Solana Trust & Risk Checks,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.PnLlabs%2Fpnllabs/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "pnl-labs-solana-trust-risk-checks": {
      "type": "http",
      "url": "https://api.pnllabs.com/mcp"
    }
  }
}

README

PnL Labs — MCP server & x402 API

PnL Labs gate — no verdict, no trade. MCP: https://api.pnllabs.com/mcp Hard stops: wallet UNTRUSTED/INSUFFICIENT/UNVERIFIABLE/UNKNOWN → do not copy · token HIGH_RISK/CRITICAL/UNKNOWN → do not buy · trade HIGH_COST/UNTRADEABLE/NO_POOL/UNKNOWN → not at that size · 402/errors are not verdicts. Table: GATE.md Rule file: SKILL.md · Measured examples: docs/VERDICTS.md

Trust & risk verdicts for AI trading agents on Solana. Proof of real PnL, not peak scores. Pay-per-call via x402 (USDC on Solana) — no signup, no API key, no account.

🌐 pnllabs.com · 🔌 https://api.pnllabs.com · 🐦 @pnllabs


Connect in 10 seconds (hosted MCP — no install)

The server is hosted. Add it to any MCP-capable assistant with one URL:

https://api.pnllabs.com/mcp
  • Claude (all plans): Settings → Connectors → Add custom connector
  • Grok: grok.com/connectors → Custom
  • ChatGPT / Gemini: custom MCP connector → same URL
  • Also listed in the official MCP Registry (io.github.PnLlabs/pnllabs) and on Smithery.

Free tier per IP/day — when it runs out, the tools reply with structured x402 payment instructions (pay-per-call, USDC on Solana).


Why

Every "smart money" score you've seen ranks wallets by peak or paper gains. Peaks lie. A wallet can 100x on paper, dump into no liquidity, and walk away red — while its score still says genius.

PnL Labs recomputes what actually hit the wallet — realized SOL, in vs out — and returns a conservative, machine-readable verdict. When the numbers can't be reconstructed reliably, it says UNVERIFIABLE instead of guessing.

The four checks

EndpointQuestionVerdicts
GET /check/wallet/{address}Is this wallet worth copying? (real realized PnL)TRUSTED · NEUTRAL · UNTRUSTED · INSUFFICIENT · UNVERIFIABLE
GET /check/funder/{address}Where did this wallet's money come from? (funding origin / cluster links)CEX_FUNDED · WALLET_FUNDED · UNKNOWN_ORIGIN · UNVERIFIABLE_ORIGIN
GET /check/token/{mint}Is this token structurally safe?LOW_RISK · ELEVATED · HIGH_RISK · CRITICAL · UNKNOWN
GET /check/trade/{mint}?size_sol=1What will this trade really cost? (real slippage)ACCEPTABLE_COST · ELEVATED_COST · HIGH_COST · UNTRADEABLE · NO_POOL

Every response carries a stable verdict enum, machine-readable reasons (code + message), confidence, flags, and schema_version. Built to be parsed by agents, not read by humans. Interactive docs: https://api.pnllabs.com/docs.

Quick example

bash
curl https://api.pnllabs.com/check/wallet/57hECCDVNmP7jCY6XX6FxP31DQuKiwQhv2g3nxGPLPmV
json
{  "schema_version": 1,  "verdict": "UNTRUSTED",  "confidence": "high",  "trust": 15,  "reasons": [    { "code": "NEGATIVE_REALIZED_PNL", "message": "Genuinely NEGATIVE: -47.1 SOL net realized" },    { "code": "LOW_WIN_RATE", "message": "Only 27% of coins were profitable" }  ]}

MCP server

This repo ships an MCP server exposing the four checks as tools (check_wallet_trust, check_wallet_forensics, check_token_safety, check_trade_cost). It calls the hosted API — no RPC keys or local setup needed.

Add to an MCP client (e.g. Claude Desktop / Claude Code):

json
{  "mcpServers": {    "pnllabs": {      "command": "python3",      "args": ["/path/to/pnllabs_mcp.py"]    }  }}

Runs on the Python standard library — no dependencies for the free/beta tier.

Payment (x402)

Calls are priced per request and paid in USDC on Solana via the x402 protocol (HTTP 402). Your agent pays a few cents, gets an on-chain receipt — no accounts, no keys stored anywhere. Prices: wallet 0.10, funder 0.05, token/trade 0.02 USDC. Any x402-capable client (or the official x402 SDKs) can pay automatically.

Honest scope

  • Wallet trust & forensics are the core edge — realized-PnL truth and funding origin, which peak-based scores and EVM-only tools don't provide on Solana.
  • Token safety flags structural red flags with zero noise. Behavioral rugs (an operator selling into his own hype) are invisible to all structural checkers — for those, check the wallets involved.
  • We sell risk/trust verdicts, not alpha. Never "when to buy."

License

MIT — see LICENSE.

来源:README.md,提交 08f70eb

工具

4

check_wallet_trust

Check Wallet Trust

Recomputes the realized SOL profit and loss of a Solana wallet from its on-chain transaction history and returns a trust verdict. Returns: verdict (TRUSTED, NEUTRAL, UNTRUSTED, INSUFFICIENT, UNVERIFIABLE, UNKNOWN), a confidence level, realized profit/loss in SOL, the number of coins analyzed, stable reason codes, and flags such as known_sniper_bot. Returns UNVERIFIABLE when the history cannot be reconstructed reliably rather than estimating.

输入参数address必填

check_wallet_forensics

Trace Wallet Funding Origin

Traces where a Solana wallet's funding came from and how old it is, using on-chain transfer history. Returns: origin classification (CEX_FUNDED, WALLET_FUNDED, UNKNOWN_ORIGIN, UNVERIFIABLE_ORIGIN, UNKNOWN), the funding transaction, wallet age, and a fresh_wallet flag.

输入参数address必填

check_trade_cost

Estimate Trade Execution Cost

Estimates what a trade of a given size would cost in a Solana token's main liquidity pool. Returns: expected slippage in percent, an estimated round-trip cost calibrated against measured live execution overhead, a recommended maximum size in SOL, pool liquidity, and a verdict (ACCEPTABLE_COST, ELEVATED_COST, HIGH_COST, UNTRADEABLE, NO_POOL, UNKNOWN).

输入参数mint必填size_sol

check_token_safety

Check Token Structural Risk

Analyzes structural risk of a Solana token from on-chain data: real-holder concentration with bonding-curve and liquidity-pool accounts excluded, presence of known sniper-bot addresses among early buyers, and a simulated buy/sell round trip to detect honeypot behavior. Returns: verdict (LOW_RISK, ELEVATED, HIGH_RISK, CRITICAL, UNKNOWN), stable reason codes, and top-holder percentages. Scope is structural only; it does not detect risk that exists purely in trading behavior.

输入参数mint必填

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

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

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分