Token Safety X402

by Br0ski777

299 downloads
Not rated
GitHub

About

Token contract safety scanner (honeypot, tax, proxy, blacklist, risk score) -- x402 micropayment API + MCP server for AI agents

Details

Author
Br0ski777
Downloads
299
Categories
Other, API

- Detects honeypots (cannot sell)
- Reports buy/sell taxes and proxy risk
- Checks ownership renounced status
- Identifies blacklist functionality
- Provides overall risk score (0–100)
- No API key, signup, or rate limits
- Pay-per-call via x402 with USDC on Base L2

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Token Safety X402
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Add the MCP server URL to your MCP client config (e.g., Claude Desktop, Cursor, ElizaOS) with the URL "https://token-safety.api.klymax402.com/mcp". Alternatively, make HTTP GET requests to "/api/check" with parameters address and chain; x402-aware clients handle the payment cycle automatically.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "token safety x402": {
            "token-safety": {
                "url": "https://token-safety-x402-production.up.railway.app/mcp",
                "transport": "sse"
            }
        }
    }
}

McpServers

{
    "token-safety": {
        "url": "https://token-safety-x402-production.up.railway.app/mcp",
        "transport": "sse"
    }
}

Token Safety & Contract Risk API

MCP Server
x402
License: MIT

Token contract safety scanner — honeypot, tax, proxy risk, blacklist, ownership. GoPlus-powered. Pay-per-call via x402 (USDC on Base L2) — no API key, no signup, no rate-limit wall.

Part of the klymax402 marketplace — 100 x402 micropayment APIs for AI agents, one wallet, USDC on Base.

Quickstart — MCP

Add to your MCP client config (Claude Desktop, Cursor, ElizaOS, etc.):

{
  "mcpServers": {
    "token-safety": {
      "url": "https://token-safety.api.klymax402.com/mcp"
    }
  }
}

Quickstart — HTTP (x402)

curl "https://token-safety.api.klymax402.com/api/check?address=0x...&chain=base"

→ 402 Payment Required, with an x402 payment challenge in the response body

Any x402-aware client (@x402/fetch, x402-agent-tools, ATXP) handles the 402 → sign → retry cycle automatically. No manual key exchange.

Tools

| Tool | Method | Path | Price | Description |
|---|---|---|---|---|
| token_check_safety | GET | /api/check | $0.003 | Check token contract safety and risk score |

token_check_safety

Use this when you need to check if a token is safe before buying or interacting with it. Returns a comprehensive safety report in JSON.

Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| address | string | yes | Token contract address (e.g. 0x...) |
| chain | string | no | Chain to check on: ethereum or base (default: ethereum) |

Returns

- isHoneypot — whether the token traps buyers (cannot sell)
- ownershipRenounced — whether the contract owner has renounced control
- isProxy — whether the contract is upgradeable (proxy risk)
- buyTax / sellTax — percentage tax on buy/sell transactions
- maxTxPercent — maximum transaction size as percent of supply
- liquidityLocked — whether liquidity is locked
- hasBlacklist — whether the contract has a blacklist function
- holderCount — total number of token holders
- riskScore — overall risk score (0 = safe, 100 = dangerous)

Example response:

{"isHoneypot":false,"ownershipRenounced":true,"isProxy":false,"buyTax":0,"sellTax":0,"maxTxPercent":100,"liquidityLocked":true,"hasBlacklist":false,"holderCount":15420,"riskScore":12}

When to use: before buying any new or unknown token — essential for rug-pull protection and due diligence.

Not for: token prices (use dex_get_swap_quote), wallet balance (use wallet_get_portfolio), holder distribution (use token_get_holder_analysis).

Example agent prompts

- "Is this token safe to buy? 0x1234...5678 on Base"
- "Check for honeypot risk before I swap into this contract"
- "Run a rug-pull check on this new token launch before I ape in"

Payment

- Protocol: x402 — HTTP-native pay-per-call, no signup, no API key
- Network: Base L2 (eip155:8453)
- Asset: USDC
- Facilitator: Coinbase CDP (primary), PayAI (fallback)
- Also reachable via ATXP (OAuth-wrapped x402, RFC 9728 protected-resource metadata)

Part of klymax402

100 x402 micropayment APIs for AI agents — one wallet, USDC on Base, zero signup.

- Catalog: https://klymax402.com/llms.txt
- Full API reference: https://klymax402.com/llms-full.txt
- Live stats: https://klymax402.com/stats

License

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.