Token Verdict

io.github.QuincyGB由 GitHub 帳號 QuincyGB 發布v0.1.2更新於 Oct 29, 2026

MCP server for Token Verdict — pay-per-call token risk verdicts over x402 ($0.02 USDC on Base)

已驗證STDIO僅桌面金融AI 與機器學習

概覽

AI 產生的概覽

本機 stdio MCP 伺服器,為助理提供一個按次付費的代幣風險判定工具,每次呼叫透過 x402 在 Base 上支付 0.02 USDC。

可以做什麼
  • 針對 base、ethereum 或 solana 上的代幣合約地址請求風險判定
  • 取得 SOLID / CAUTION / DANGER 結論、0-100 風險分數、六項加權市場結構訊號以及一段分析師評語
  • 檢視判定所依據的原始市場資料,以便重新核對計算
  • 未設定簽章錢包時回傳結構化的 payment_required 錯誤與價格資訊
適用情境
適合在買入、兌換或把資金投入某個代幣之前,需要快速做一次市場結構風險篩檢,並願意用自有錢包按次支付少量 USDC 的情境。
執行需求
需要 Python 3.10 以上版本並在本機安裝 token-verdict-mcp 套件,以及支援 stdio 的 MCP 主機(例如 Claude Desktop、Cursor)。付費呼叫需要持有 USDC 的 EVM 錢包私鑰,透過 AGENT_PRIVATE_KEY 或 AGENT_KEY_FILE 提供,並需要連線至服務的網路。可選 TOKEN_VERDICT_URL 與 TOKEN_VERDICT_MAX_AMOUNT_UNITS。
安裝前請注意
需要 EVM 私鑰(AGENT_PRIVATE_KEY 或金鑰檔案)來簽署 Base 上真實的 USDC 付款,建議使用只存放周轉資金的專用錢包。每次呼叫預設花費 0.02 USDC,由 TOKEN_VERDICT_MAX_AMOUNT_UNITS 限制上限。私鑰僅在本機用於簽章、不會被傳送,但仍屬可動用的敏感憑證。分析僅涵蓋市場結構,不檢查蜜罐與持幣集中度。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Token Verdict,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

token-verdict-mcp

[M8ven Score]

Standalone home: This server was split out of QuincyGB/token-verdict-tools so each MCP server has its own GitHub repository for directory ingestion and maintenance. The PyPI package name (token-verdict-mcp), version, and install command are unchanged.

An MCP server (stdio transport) that exposes Token Verdict as a native tool for any MCP host — Claude Desktop, Cursor, or your own agent runtime.

Token Verdict is a pay-per-call token risk screen for AI agents: send a token contract address, get back a verdict (SOLID / CAUTION / DANGER), a 0–100 risk score, six weighted market-structure signals explained in plain English, and a written analyst take. It costs $0.02 USDC per call on Base, paid via the x402 protocol — no accounts, no API keys; the payment is the authentication.

The tool

token_verdict — one tool, the service's real contract:

InputTypeNotes
addressstring (required)Token contract address (0x...)
chainstring, default "base"base · ethereum · solana — which token market to analyze. Payment always settles in USDC on Base.

Output is the service's verdict JSON: token, verdict, score, signals (exactly six), take, and market (the raw data the verdict derives from, so callers can re-check the math). Market-structure analysis only — honeypot simulation and holder concentration are not checked, and the product says so in every take.

Install

bash
pip install token-verdict-mcp
# Or from a checkout of this repository:pip install .

Requires Python ≥ 3.10. The server pins the MCP v1 SDK API (mcp>=1.2,<2).

Configuration

All configuration is the operator's own environment — whoever runs this server supplies their own wallet. No key material ships in this package, and the package author never sees your key.

Env varRequiredPurpose
AGENT_PRIVATE_KEYfor paid callsEVM private key (0x...) of a wallet holding USDC on Base. Used locally to sign the x402 EIP-3009 authorization.
AGENT_KEY_FILEalternativePath to a file containing that key.
TOKEN_VERDICT_URLnoService base URL override (default: production).
TOKEN_VERDICT_MAX_AMOUNT_UNITSnoSpend guard per call in USDC micro-units (default 20000 = $0.02, the known price). The client refuses to sign anything priced above it.

Without a signer configured the tool never pays. On a 402 it returns the parsed challenge as a structured error — error: "payment_required" with the full accepts array (scheme, network, asset, amount, payTo) — so the calling agent can see the price and decide what to do, or settle the challenge with its own x402 client.

MCP host configuration

Claude Desktop (claude_desktop_config.json) — same shape for other stdio MCP hosts:

json
{  "mcpServers": {    "token-verdict": {      "command": "token-verdict-mcp",      "env": {        "AGENT_PRIVATE_KEY": "0xYOUR_OWN_WALLET_KEY"      }    }  }}

From a checkout instead of an install:

json
{  "mcpServers": {    "token-verdict": {      "command": "python",      "args": ["-m", "token_verdict_mcp"],      "env": {        "PYTHONPATH": "/path/to/token-verdict-mcp/src",        "AGENT_KEY_FILE": "/path/to/your/agent.key"      }    }  }}

Prefer AGENT_KEY_FILE over inlining a key in a config file when your host setup allows it.

How payment works

The client mirrors the standard x402 v2 flow (the same flow used for the service's own live cataloging payment):

  1. POST /v1/verdict unpaid → HTTP 402, challenge base64-encoded in the payment-required header.
  2. Pick the exact / eip155:8453 entry from accepts.
  3. Build an EIP-3009 TransferWithAuthorization (validAfter: 0, validBefore: now + maxTimeoutSeconds, random 32-byte nonce) and sign it as EIP-712 typed data against the USDC domain the challenge advertises (extra.name / extra.version).
  4. Retry the identical POST with the payload in the PAYMENT-SIGNATURE header. The service verifies and settles through its facilitator (PayAI) server-side; the settlement receipt comes back in the payment-response header.

Tests

bash
pip install -e ".[dev]"pytest

14 tests, all payments mocked (httpx MockTransport, throwaway signer generated at test time). The 402 fixture is the real challenge captured from production; the paid-flow test verifies the EIP-712 signature actually recovers to the signer address.

Security notes

  • Your private key is read from your environment at runtime and used only to sign payment authorizations locally. It is never transmitted — the x402 payload contains a signature, not a key.
  • The spend guard caps any single call at the configured amount (default: exactly the $0.02 price).
  • Run this with a dedicated agent wallet holding only working funds, the same way you would fund any agent.

來源:README.md,提交 a1d5622

工具

1

token_verdict

Get a risk verdict for a token before buying, swapping, or routing funds into it. Calls Token Verdict (POST /v1/verdict, $0.02 USDC on Base via x402). Returns verdict (SOLID / CAUTION / DANGER), a 0-100 risk score, six weighted market-structure signals (liquidity depth, volume churn, sell pressure, price action, trader breadth, pair age), a written analyst take, and the raw market data the verdict derives from. Args: address: Token contract address (0x...). chain: Chain label — "base" (default), "ethereum", or "solana".

輸入參數chainaddress必填

版本歷史

2
  1. v0.1.2最新Oct 26, 2026
  2. v0.1.1Oct 23, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分