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必填
io.github.Neurobyteio由 GitHub 账号 Neurobyteio 发布v1.0.0更新于 Oct 25, 2026
Pre-trade token risk scoring API for Base tokens, paid via x402.
远程 MCP 端点,在自主代理交易 Base 代币前评估其风险,返回风险评分、风险等级以及是否应执行的结论。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.Neurobyteio%2Fagentrisk/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"agentrisk": {
"type": "http",
"url": "https://agentrisk.dev/mcp/manifest"
}
}
}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.
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.
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:
cached field so you know whether a result is fresh or reusedWant 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.
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.
check_token_risk) or the direct /scan endpoint.shouldExecute: true/false with a risk score and structured reasons.Or check a token instantly from the terminal, no code needed:
Install the x402 SDK, then run this — it handles payment automatically:
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.
No code needed — just point your MCP client config at:
Your agent will automatically discover check_token_risk as an available tool.
If your agent searches the x402 Bazaar for tools, AgentRisk is discoverable automatically — no manual integration needed.
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.
/.well-known/agent.json/mcp/manifest/v1/track-recordBuilt for autonomous systems that trust math, not hype.
来源:README.md,提交 eec5d8c
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必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在仓库或注册中心条目中声明许可证。
{ "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." ]}pip install agentriskm2mimport 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())export AGENTRISK_PRIVATE_KEY=your_base_wallet_private_keyagentriskm2m check 0xTokenAddressHerepip 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()){ "mcpServers": { "agentrisk": { "url": "https://agentrisk.dev/mcp/manifest" } }}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 listfrom 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()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)