Agentrisk

io.github.Neurobyteio由 GitHub 帳號 Neurobyteio 發布v1.0.0更新於 Oct 25, 2026

Pre-trade token risk scoring API for Base tokens, paid via x402.

已驗證Streamable HTTP可網頁執行金融安全與監控

概覽

AI 產生的概覽

遠端 MCP 端點,在自主代理交易 Base 代幣前評估其風險,回傳風險評分、風險等級以及是否應執行的結論。

可以做什麼
在兌換前檢查 Base 代幣的安全性,取得風險評分、風險等級、一句白話結論與結構化原因,以及 shouldExecute 旗標和快取、時間戳欄位。
適用情境
適合 Base 上需要交易前安全把關的自主 DeFi 交易代理或腳本,用來防範蜜罐、惡意稅率與跑路專案,並且能夠按次付費。
執行需求
遠端端點位於 agentrisk.dev,無需 API 金鑰或帳號。每次呼叫需透過 x402 在 Base 上支付 0.15 USDC 微支付,因此需要一個有 USDC 和用於 gas 的 ETH 的 Base 錢包,並需要網路存取。
安裝前請注意
每次掃描在 Base 主網花費 0.15 USDC,由 Coinbase 的 CDP facilitator 結算。README 中的 SDK 與整合範例要求提供 Base 錢包私鑰,應將該私鑰視為高度敏感。結果可能快取最多 30 秒,最終交易前需確認新鮮度。結論僅供參考,依賴 GoPlus、DexScreener 等第三方資料。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.Neurobyteio%2Fagentrisk/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "agentrisk": {
      "type": "http",
      "url": "https://agentrisk.dev/mcp/manifest"
    }
  }
}

README

AgentRisk M2M 🛡️

Pre-Trade Security Layer for Autonomous DeFi Agents on Base. Stop letting your autonomous trading bots get rekt by stealth honeypots, malicious taxes, and rugpulls.


⚡ The Problem

Autonomous trading bots are fast, but they are completely blind. Every minute, new unvetted tokens launch on Base. A significant share are deliberately engineered traps designed to block sells, drain executing wallets, or alter transfer taxes at the worst possible moment. Static blocklists (like standard free APIs) are useless against freshly deployed, obfuscated contracts. By the time human-curated lists update, your bot's capital is already gone.

🎯 The Solution

AgentRisk is an isolated, machine-readable security API built specifically for AI agents and automated scripts. Before your bot executes a swap() on Uniswap or Aerodrome, it pings AgentRisk. We run a deep runtime simulation combining direct on-chain checks, GoPlus Security, and DexScreener liquidity data, and return a strict verdict:

json
{  "riskScore": 20,  "riskLevel": "CAUTION",  "verdict": "PROCEED WITH CAUTION. Top 10 holders control 51.8% of supply.",  "shouldExecute": true,  "reasons": [    "Top 10 holders control 51.8% of supply."  ]}

What Makes This Different

  • Deployer wallet freshness — flags newly-created wallets used for one-off token launches
  • Brand impersonation detection — flags tokens named after known companies (Apple, Google, Meta, etc.)
  • Data source disagreement — flags cases where third-party APIs and our own on-chain checks disagree
  • Human-readable verdict — one plain-English sentence, not just raw scores
  • Sub-millisecond cached responses — repeat scans within 30 seconds return instantly, with a cached field so you know whether a result is fresh or reused

Quick Testing with MCP Inspector

Want to poke at the MCP server without writing any code? Run: npx @modelcontextprotocol/inspector

Then connect it to https://agentrisk.dev/mcp/manifest and call check_token_risk directly from the UI.

Cache Freshness Warning

Every response includes cached (boolean) and timestamp (unix seconds) fields. Cached results are served for up to 30 seconds — long enough to speed up repeat lookups, short enough to catch a rug pull or a newly-enabled honeypot function in most cases. For the final safety check immediately before executing a trade, we recommend either calling with a fresh request or checking that cached is false / timestamp is very recent before trusting a shouldExecute: true result.

⚙️ How It Works (M2M Architecture)

  1. Agent Discovers Token via mempool or DEX router event.
  2. Agent Calls AgentRisk MCP Tool (check_token_risk) or the direct /scan endpoint.
  3. Instant x402 Micropayment ($0.15 USDC instantly settled on Base — no API keys, subscriptions, or credit cards; pure machine-to-machine payment).
  4. Binary Decision: The agent receives shouldExecute: true/false with a risk score and structured reasons.

📦 Python SDK

bash
pip install agentriskm2m
python
import asynciofrom agentrisk import AgentRisk
async def main():    risk = AgentRisk(private_key="your_base_wallet_private_key")    result = await risk.scan("0xTokenAddressHere")    print(result["verdict"])
asyncio.run(main())

PyPI page

Or check a token instantly from the terminal, no code needed:

bash
export AGENTRISK_PRIVATE_KEY=your_base_wallet_private_keyagentriskm2m check 0xTokenAddressHere

🚀 Copy-Paste Integration (60 seconds)

Install the x402 SDK, then run this — it handles payment automatically:

python
pip install x402 eth-account
import asynciofrom eth_account import Accountfrom x402 import x402Clientfrom x402.http.clients import x402HttpxClientfrom x402.mechanisms.evm import EthAccountSignerfrom x402.mechanisms.evm.exact.register import register_exact_evm_client
PRIVATE_KEY = "your_base_wallet_private_key"TOKEN_ADDRESS = "0x..."  # the token you want to check
async def check_token():    account = Account.from_key(PRIVATE_KEY)    client = x402Client()    register_exact_evm_client(client, EthAccountSigner(account))    async with x402HttpxClient(client) as http:        response = await http.get(f"https://agentrisk.dev/scan?token={TOKEN_ADDRESS}")        print(response.json())
asyncio.run(check_token())

That's it. It pays 0.15 USDC automatically and prints the risk report. Your wallet needs a small amount of USDC and ETH (for gas) on Base.

Framework Integration Examples

Option 1: MCP (Claude, Cursor, any MCP-compatible agent)

No code needed — just point your MCP client config at:

json
{  "mcpServers": {    "agentrisk": {      "url": "https://agentrisk.dev/mcp/manifest"    }  }}

Your agent will automatically discover check_token_risk as an available tool.

Option 2: LangChain

python
from langchain.tools import toolfrom eth_account import Accountfrom x402 import x402Clientfrom x402.http.clients import x402HttpxClientfrom x402.mechanisms.evm import EthAccountSignerfrom x402.mechanisms.evm.exact.register import register_exact_evm_client
account = Account.from_key("your_base_wallet_private_key")client = x402Client()register_exact_evm_client(client, EthAccountSigner(account))
@toolasync def check_token_safety(token_address: str) -> dict:    """Check if a Base token is a honeypot or scam before buying or swapping."""    async with x402HttpxClient(client) as http:        response = await http.get(f"https://agentrisk.dev/scan?token={token_address}")        return response.json()
# Add check_token_safety to your agent's tools list

Option 3: Coinbase AgentKit

python
from coinbase_agentkit import action
@action(    name="check_token_safety",    description="Check if a Base token is safe to trade before executing a swap")async def check_token_safety(token_address: str) -> dict:    async with x402HttpxClient(client) as http:        response = await http.get(f"https://agentrisk.dev/scan?token={token_address}")        return response.json()

Option 4: Plain Python (any custom bot, no framework)

python
def buy_token(token_address, amount):    risk = check_token_safety(token_address)  # your call to AgentRisk    if not risk["shouldExecute"]:        print(f"Blocked: {risk['verdict']}")        return    execute_swap(token_address, amount)

Option 5: Automatic discovery via x402 Bazaar

If your agent searches the x402 Bazaar for tools, AgentRisk is discoverable automatically — no manual integration needed.

🚀 Other Integration Options

Option 1: MCP Server (For Claude, Cursor & Custom Agents)

MCP manifest is live at: https://agentrisk.dev/mcp/manifest

Tool endpoint: POST https://agentrisk.dev/mcp/tools/check_token_risk (x402-gated, 0.15 USDC per call). ### Option 2: Direct HTTP Call

GET https://agentrisk.dev/scan?token=<CONTRACT_ADDRESS>

Returns HTTP 402 with payment instructions until a valid x402 payment (0.15 USDC on Base) is attached.

💰 Economy

  • Model: Pay-per-scan via the x402 protocol on Base Mainnet.
  • Cost: 0.15 USDC per comprehensive scan.
  • Facilitator: Coinbase's official CDP facilitator — verifies and settles payments directly on Base.

🔎 Live Status

Built for autonomous systems that trust math, not hype.

來源:README.md,提交 eec5d8c

工具

1

check_token_risk

Checks whether a token on Base is safe enough for an autonomous agent to trade. Returns riskScore, riskLevel, and shouldExecute with structured reasons. Requires x402 payment.

輸入參數token_address必填

版本歷史

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

評分

已滿足適用檢查項的 90%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。