token-safety-check
This server lets you run a paid rug-check on a single token across six chains, returning a risk score, the facts behind it, and what changed since a prior check.
Check token safety: call
check_token_safetywith a token contract (0x…) or Solana mintaddressto get a 0–100 risk score with plain-language reasons (mint, freeze, blacklist, fee or pause powers, upgradeable code, holder concentration, thin liquidity).Choose a chain: optionally pass
chain—base,eth,arbitrum,optimism,polygonorsolana; it defaults tosolanafor base58 addresses andbaseotherwise.Monitor for changes: pass a previous
watch.fingerprintassinceto learn what changed (new risks, authority changes, liquidity or price moves).Get market facts: the result includes USD price and liquidity alongside the underlying facts.
Pay per call: each check costs $0.01 in USDC on Base via x402 — no account or API key.
Note: the README also describes
token_verdict,screen_addressandwatch_tokens(plus a hosted remote MCP endpoint), but this schema exposes onlycheck_token_safety.
Provides a Coinbase AgentKit action provider (customActionProvider) that lets AgentKit agents rug-check any token by passing a contract or mint address and chain, returning a 0-100 risk score with reasons as JSON.
Supports rug-checking tokens on Ethereum (chain eth), reporting mint/freeze/blacklist/pause powers, upgradeable code, holder concentration, liquidity, price and authority changes between checks.
Exposes the token safety check as a LangChain JS tool that agents can call with a token address and optional chain to get a JSON rug-check report with risk score, reasons, market data and a change fingerprint.
Supports rug-checking tokens on the Optimism chain, returning risk scores with plain-language reasons, market data and a fingerprint to track changes over time.
Supports rug-checking tokens on the Polygon chain, returning risk scores with plain-language reasons, market data and a fingerprint to track changes over time.
Supports rug-checking Solana tokens by mint address, including Token-2022 permanent delegates, transfer fees and hooks, plus holder concentration, liquidity and authority change tracking.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@token-safety-check rug check this token on Base: 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
token-safety-check
Is this token safe? A rug check for any token on Base, Ethereum, Arbitrum, Optimism, Polygon or Solana, for AI agents and scripts. Each check returns:
a 0–100 risk score and level (low, medium, high, critical) with plain-language reasons:
who can mint, freeze, blacklist, pause or change fees
upgradeable contract code
Token-2022 permanent delegates, transfer fees and hooks
holder concentration
thin or missing liquidity
a deployer whose earlier tokens lost their liquidity, or who launches tokens in bulk
the facts behind the score: owner, authorities, supply, top holders, pools, and the deployer's launch record when we saw the token launch;
USD price and liquidity;
a fingerprint. Pass it back as
sinceand the next check tells you what changed: new risks, authority changes, liquidity or price moves. That makes it easy to monitor tokens on a schedule.
A verdict call turns the same facts into a grade (CLEAN, MID, SKETCHY or RUGGY), a one-liner, a short take and a link to a share card, for chat replies and quests.
A watchlist call re-checks up to 5 tokens at once for the same $0.01, returning a compact entry per token and one-line alerts for whatever changed since your last call.
Checks, verdicts and watchlist calls cost $0.01 each in USDC on Base, paid automatically with x402 from a wallet you control. There's no account or API key. Errors and invalid input are never charged, and a spending cap stops any call priced above your limit (default $0.05).
The score is rules-based and is not investment advice. Powers count for less on tokens with deep liquidity, where they're usually a large issuer's compliance controls (USDC can freeze and mint, for example).
Use it from Claude Desktop, Cursor or any MCP client
Create a new wallet just for this and send it a little USDC on Base: $1 covers 100 checks. Then
add to your MCP config (for Claude Desktop, that's claude_desktop_config.json):
{
"mcpServers": {
"token-safety-check": {
"command": "npx",
"args": ["-y", "token-safety-check"],
"env": { "X402_PRIVATE_KEY": "0x<private key of the dedicated wallet>" }
}
}
}The server has four tools:
check_token_safety(address, optionalchainandsince): the full check for one token.token_verdict(address, optionalchain): a grade, one-liner, short take and share-card link.screen_address(address, optionalchainandexpect): check an address before sending it money; ok, caution or block with reasons.watch_tokens(tokens: up to 5 of{ address, chain?, since? }): re-checks them all in one paid call and, given each token's earlier fingerprint, reports what changed with one-line alerts.
Optional environment variables:
TOKEN_SAFETY_MAX_USD: per-check spending cap, default0.05.TOKEN_SAFETY_ENDPOINT: point at another deployment.
Related MCP server: Base Pulse
Use it from code
npm install token-safety-checkimport { createTokenSafetyClient } from "token-safety-check";
const client = createTokenSafetyClient({ privateKey: process.env.X402_PRIVATE_KEY as `0x${string}` });
const first = await client.checkToken({ chain: "base", address: "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed" });
console.log(first.risk.score, first.risk.level, first.risk.summary);
// 15 low Low risk: the owner can pause all transfers; ownership is not renounced.
// Later: what changed since then?
const later = await client.checkToken({ address: first.address, chain: "base", since: first.watch.fingerprint });
if (later.watch.changes?.anythingChanged) console.log(later.watch.changes);A verdict for a chat reply
const v = await client.verdict({ address: "0xe468f13905669748bf312611b9ebcc8ccc6db5d9" });
console.log(v.grade, v.oneLiner); // SKETCHY Liquidity: two coins and a prayer
console.log(v.take, v.card); // "$KTI: 60/100 risk. ..." and a signed share-card link
// Pass requestKey (8-128 letters, digits or _.:-) and a retry with the same key is never charged twice.Watch what you hold
let list = [
{ chain: "base", address: "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed" },
{ chain: "solana", address: "JUPyiwrYJFskUPiHa7hkeR8VUtAeFoSYbKedZNsDvCN" },
] as const;
let fingerprints: (string | undefined)[] = [];
// Every hour (or however often): one $0.01 call for the whole list.
const w = await client.watchlist(list.map((t, i) => ({ ...t, since: fingerprints[i] })));
for (const alert of w.alerts) console.log(alert); // e.g. "PEPINA (eth): risk 0 -> 30 (medium); liquidity -99.99%"
fingerprints = w.tokens.map((t) => t.fingerprint);Check an address before your agent pays it
import { SendBlockedError } from "token-safety-check";
try {
await client.beforeSend({ to: recipient, chain: "base" }); // $0.01: OFAC sanctions, wallet age, first funder, large transfers
await sendUsdc(recipient, amount); // your own transfer code
} catch (e) {
if (e instanceof SendBlockedError) console.log(e.screen.verdict, e.screen.reasons); // "block" or "caution", with plain reasons
else throw e;
}beforeSend passes only an ok verdict (add allowCaution: true to let caution through; block never passes).
client.screenAddress({ address, chain }) returns the same screen without throwing. The MCP server and the AI SDK tools
include it as screen_address / screenAddress.
The screen also carries a labels array: what OnchainCheck has recorded about the address, such as an x402 seller's
payTo, a token deployer, or a repeat deployer whose earlier pools lost their liquidity (empty when there is nothing).
The /check, /check/lite/batch, /deployer and /address/label routes return the same field.
const screen = await client.screenAddress({ address: recipient, chain: "base" });
for (const l of screen.labels ?? []) console.log(l.label, l.category, l.first_seen); // e.g. "token-deployer deployer 2026-11-02T..."Use it in the Vercel AI SDK or Mastra
token-safety-check/ai gives four ready tools (checkTokenSafety, tokenVerdict, screenAddress, watchTokens),
plain { description, inputSchema, execute } objects that both take as tools:
import { generateText } from "ai";
import { createTokenSafetyClient } from "token-safety-check";
import { tokenSafetyTools } from "token-safety-check/ai";
const tools = tokenSafetyTools(createTokenSafetyClient({ privateKey: process.env.X402_PRIVATE_KEY as `0x${string}` }));
const { text } = await generateText({ model, tools, prompt: "Is 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed on Base safe to buy?" });Use it in ElizaOS
token-safety-check/eliza is an ElizaOS 1.x plugin with one action, CHECK_TOKEN_SAFETY. When a
message names a token address ("is 0x… on Base safe?", "rug check "), the agent replies with
the verdict and a share-card link.
import { tokenSafetyPlugin } from "token-safety-check/eliza";
export const character = {
name: "trader",
plugins: [tokenSafetyPlugin],
settings: { secrets: { TOKEN_SAFETY_PRIVATE_KEY: process.env.TOKEN_SAFETY_PRIVATE_KEY } },
};Settings: TOKEN_SAFETY_PRIVATE_KEY (a dedicated wallet with a little USDC on Base; falls back to
X402_PRIVATE_KEY), optional TOKEN_SAFETY_MAX_USD (default 0.05) and TOKEN_SAFETY_ENDPOINT.
Use it in Coinbase AgentKit
import { customActionProvider } from "@coinbase/agentkit";
import { z } from "zod";
import { createTokenSafetyClient } from "token-safety-check";
const safety = createTokenSafetyClient({ privateKey: process.env.X402_PRIVATE_KEY as `0x${string}` });
export const tokenSafety = customActionProvider({
name: "check_token_safety",
description: "Rug check a token on Base, Ethereum, Arbitrum, Optimism, Polygon or Solana: 0-100 risk score with reasons.",
schema: z.object({
address: z.string().describe("Token contract or Solana mint address"),
chain: z.enum(["base", "eth", "arbitrum", "optimism", "polygon", "solana"]).optional(),
}),
invoke: async (args) => JSON.stringify(await safety.checkToken(args)),
});
// Add tokenSafety to the actionProviders you pass to AgentKit.from(...).Use it in LangChain (JS)
token-safety-check/langchain gives the four checks as LangChain tools (check_token_safety, token_verdict,
screen_address, watch_tokens) and a middleware for createAgent that screens the recipient of every money-sending
tool call before the tool runs. When the screen says block (OFAC-sanctioned, or a recorded drainer) the transfer tool is
never called: the model gets a refusal with the reasons instead. Needs langchain 1.x (npm i langchain @langchain/core).
import { createAgent, tool } from "langchain";
import { z } from "zod";
import { createTokenSafetyClient } from "token-safety-check";
import { tokenSafetyLangChainTools, recipientScreenMiddleware } from "token-safety-check/langchain";
const client = createTokenSafetyClient({ privateKey: process.env.X402_PRIVATE_KEY as `0x${string}` });
const sendUsdc = tool(async ({ to, amount }) => wallet.sendUsdc(to, amount), {
name: "send_usdc",
description: "Send USDC on Base",
schema: z.object({ to: z.string(), amount: z.number() }),
});
const agent = createAgent({
model: "anthropic:claude-sonnet-5-5",
tools: [...tokenSafetyLangChainTools(client), sendUsdc],
middleware: [recipientScreenMiddleware({ client })],
});How the middleware decides:
Which calls it screens: tools whose name contains send, transfer, pay or withdraw (
SEND_TOOL). Passtools: ["send_usdc", "bridge"], a RegExp or a function to choose exactly.Where the recipient is: the first of
to,recipient,toAddress,to_address,destination,destinationAddress,payTo,pay_to,receiverholding an EVM or Solana address; or your ownrecipient: (args, toolName) => string | undefined. A call with no readable recipient address (an ENS name, a contact name) is held when you listed the tool intools, and runs unscreened with the default filter; setmissingRecipientto choose.The chain: the call's own
chainargument when it is one of ours, elsechainfrom the options, else detected.What runs: only
ok, orcautiontoo withallowCaution: true.blocknever runs.If the screen fails (network, price above your cap, a mistyped address): the send is held.
onScreenError: "allow"runs it anyway.Each screen costs $0.01 in USDC on Base;
onScreen: (screen, toolName) => ...sees every result for your logs.
Example output (trimmed)
{
"address": "0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed",
"chain": "base",
"name": "Degen",
"symbol": "DEGEN",
"risk": {
"score": 15,
"level": "low",
"reasons": [
{ "code": "can-pause", "points": 10, "text": "The owner can pause all transfers." },
{ "code": "owner-not-renounced", "points": 5, "text": "Ownership is not renounced." }
],
"summary": "Low risk: the owner can pause all transfers; ownership is not renounced."
},
"market": { "dex": "uniswap-v3", "pairedWith": "WETH", "priceUsd": 0.000963, "quoteSideLiquidityUsd": 134000 },
"watch": { "fingerprint": "eyJzIjoxNSwi…", "changes": null }
}Agent Skills
skills/ has three Agent Skills for Claude Code, Codex, Cursor and other skill-aware agents:
token-rug-check, polymarket-trader-lookup and wallet-screen. Each is a SKILL.md with exact steps and a
small x402 script that pays from your own wallet, with a spending cap (ONCHAINCHECK_MAX_USD, default $0.05).
npx skills add lx1112/token-safety-checkIn Claude Code they also install as a plugin:
/plugin install onchaincheck --marketplace lx1112/token-safety-checkWithout this package
Both are plain x402 endpoints, so any x402 client can call them directly:
GET https://onchaincheck.dev/token?chain=<chain>&address=<address>[&since=<fingerprint>] and
GET https://onchaincheck.dev/watchlist?tokens=<chain>:<address>,...[&since=<fp>,...].
It's also listed in the x402 Bazaar. All of OnchainCheck's tools are also served as a remote MCP
server at https://onchaincheck.dev/mcp (streamable HTTP, paid per call; Glama connector).
Safety notes
Use a dedicated wallet with a small balance. The key never leaves your machine; it only signs USDC payments of the quoted price.
Each check's price is read from the server's payment request before paying, and anything above
maxUsdPerCheck/TOKEN_SAFETY_MAX_USDis refused.
MIT licensed.
Available Tools
1 toolcheck_token_safetyA
Rug check a token on Base, Ethereum, Arbitrum, Optimism, Polygon or Solana: a 0-100 risk score with plain reasons (mint, freeze, blacklist, fee or pause powers, upgradeable code, holder concentration, thin liquidity), the facts behind it, and USD price and liquidity. Pass a previous watch.fingerprint as since to see what changed. Costs $0.01 in USDC on Base per check.
Inputs: address (required), chain, since.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no risk of selecting the wrong operation. Its purpose is clearly scoped to token rug/safety checks.
The single tool uses a clear snake_case verb_noun pattern: check_token_safety. With only one tool there is no inconsistency, and the name directly describes the action and target.
The server is intentionally single-purpose, so one tool is defensible, but a one-tool surface is thin and offers no separate discovery, batch, or historical comparison operations. It sits at the borderline for an MCP tool set.
The tool covers the core domain well: risk score, explanatory reasons, underlying facts, price, liquidity, multi-chain support, and change tracking via a previous fingerprint. No obvious lifecycle gaps exist for a token safety check.
Related MCP Connectors
Pre-trade token safety check for AI agents and people. check_token scans contract security (honeypot, taxes, owner powers), liquidity, slippage at your size and unlocks on 11 chains, and returns OK / CAUTION / AVOID with reasons. 3 free checks a day per client, then $0.01 per check via x402 (USDC on Base or Solana). No API key. Information only, not financial advice.
Rug-risk checks for Solana + Base tokens (free trial), token data, tx explainer. x402 pay-per-call.
Pay-per-call rug-pull, honeypot and token safety checks for any ERC-20 on Base (x402, USDC).
Solana token rug-risk scores. Free basic score; full report pay-per-call via x402 (0.03 USDC).
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to check an EVM address on Base for risk (safe, caution, danger) before sending funds, with reasons, paid per call via x402 from the user's own wallet.762 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to run honeypot and owner-power safety checks on Base tokens and to read wallet ETH and USDC balances, with every answer sourced from real chain data and paid per call in USDC via x402.MIT

Rugsightofficial
AlicenseAqualityBmaintenanceSolana token rug-risk scores. Free basic score tool; full report tool paid per call via x402 (0.03 USDC on Solana). Not financial advice.2492 npmMIT
ChainK9 MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to perform token risk checks across BNB Smart Chain, Ethereum, Base, and Arc by simulating real buys and sells plus 70+ contract checks, with tools for reports, feeds, trade simulation, liquidity analysis, and fund tracing. Successful paid calls settle automatically in USDC on Base via x402, with no account or API key required.123 npmMIT