RugShield 402 MCP Server
Real-time token contract safety scanner and honeypot auditor via x402 on Base.
RugShield 402 scores 65 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Finance. GitHub shows 2 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
65 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 65 comes from
22 + 20 + 2 + 10 + 4 + 7 = 65. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: No sign-in detected. Our check reached the endpoint without being asked for credentials. Some servers only check keys after connecting, so follow the provider's setup notes. Security tips
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "ak10082247-max-rugshield-402": { "url": "https://rugshield-402.onrender.com/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
RugShield 402 π‘οΈ β Open-Source MCP Server for DEX Security & Honeypot Detection
This repository contains the complete open-source Model Context Protocol (MCP) server implementation of RugShield 402. It equips LLMs, autonomous trading agents, and IDEs (Claude Desktop, Cursor, Windsurf) with tools to simulate token buys/sells, analyze honeypot traps, inspect Token-2022 extensions/transfer taxes, and verify swap routes on Base (Uniswap V2) and Solana (Token-2022 + Jupiter/Raydium) β settled pay-per-call via x402 v2 on both Coinbase CDP and PayAI.
π οΈ MCP Tools Implemented
This MCP server provides the following tools via standard stdio and streamable HTTP transports:
| Tool Name | Description | Key Parameters |
|---|---|---|
rugshield_pre_swap_scan | Comprehensive pre-trade swap simulation: detects honeypots, malicious transfer limits, and liquidity drain traps. | token_address (string, 42-char hex), simulate_sell (boolean, default: true) |
check_honeypot | Decompiles token bytecode and executes buy/sell test against Base RPC. Returns exact buy/sell tax in basis points (bps), blacklist checks, and risk score. | token_address (string, 42-char hex) |
verify_liquidity_lock | Analyzes DEX pool reserves (Uniswap v3, Aerodrome), LP token lock status, bonding curve state, and total USD liquidity depth. | token_address (string, 42-char hex) |
detect_holder_clusters | Maps top token holder distributions, detects Sybil wallet clusters, and computes developer concentration risk. | token_address (string, 42-char hex) |
π Running from Source (Local Stdio Transport)
You can run this MCP server locally on your machine from source code using Node.js and the Model Context Protocol SDK.
1. Installation & Build
# Clone the open-source repository
git clone https://github.com/ak10082247-max/rugshield-402.git
cd rugshield-402
# Install dependencies
npm install
# Build the TypeScript source code
npm run build
2. Configure with Claude Desktop
Add this server to your claude_desktop_config.json:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"rugshield-402": {
"command": "node",
"args": [
"/absolute/path/to/rugshield-402/dist/mcp/server.js"
]
}
}
}
Or run directly with tsx during development without building:
{
"mcpServers": {
"rugshield-402": {
"command": "npx",
"args": [
"-y",
"tsx",
"/absolute/path/to/rugshield-402/src/mcp/server.ts"
]
}
}
}
3. Configure with Cursor or Windsurf
Add to your workspace .cursor/mcp.json or Windsurf MCP settings:
{
"mcpServers": {
"rugshield-402": {
"command": "node",
"args": ["dist/mcp/server.js"]
}
}
}
π Connecting to the Hosted Remote MCP Endpoint
If you prefer connecting to a hosted cloud instance without local dependencies, RugShield is deployed 24/7 on high-availability cloud infrastructure:
- Remote MCP URL:
https://rugshield-402.onrender.com/mcp - Protocol: Model Context Protocol (Streamable HTTP / SSE JSON-RPC 2.0)
- Discovery Manifest:
https://rugshield-402.onrender.com/.well-known/mcp/server-card.json - x402 Manifest:
https://rugshield-402.onrender.com/.well-known/x402.json
ποΈ Simulation Engine Architecture
sequenceDiagram
autonumber
actor LLM as Claude / Agent / Cursor
participant MCP as RugShield MCP Server (Local / Remote)
participant Simulator as EVM Bytecode Simulator
participant Base as Base Mainnet RPC
participant DEX as Aerodrome / Uniswap v3
LLM->>MCP: tools/call ("rugshield_pre_swap_scan", { token_address })
MCP->>Simulator: Fork State & Simulate Buy/Sell
Simulator->>Base: Fetch Bytecode, Balances & Storage Slots
Simulator->>DEX: Simulate Swap on Liquidity Pool
Simulator-->>MCP: Honeypot Verdict, Tax Rates, Risk Score
MCP-->>LLM: Structured JSON Analysis & Safety Attestation
π οΈ Multi-Chain Micropayment Rails (x402 V2)
All paid routes support HTTP 402 Payment Required with gasless facilitators on Base and Solana:
| Parameter | Base Mainnet (eip155:8453) | Solana Mainnet (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) |
|---|---|---|
| Merchant Recipient | 0x80E0Ae84679b7f11bE171DaADd492FBECf628cd6 | 9wuMysgXwNhtQeqJgGByAiMYc4EjzZ5wUSmnjrrt3ffh |
| Merchant USDC ATA | Direct ERC-20 mapping | DD3A7jaXFeHcif9eYj6Vhomuxypat5Yxi8ow6wxz27yL |
| USDC Mint / Contract | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v |
| Settlement Standard | EIP-712 TransferWithAuthorization (EIP-3009) | SPL Token TransferChecked (Opcode 12) |
| Price Tier | 0.010 USDC (10000 micro-USDC) | 0.010 USDC (10000 micro-USDC) |
| Gas Sponsorship | 100% Gasless (Coinbase CDP Facilitator) | 100% Gasless (PayAI Facilitator feePayer) |
π¦ Developer SDK & Framework Integrations
RugShield is packaged for automated multi-agent frameworks with 100% gasless autonomous payment settlement ($0 ETH / $0 SOL required):
1. Autonomous Agent Auto-Pay Quickstart (TypeScript)
Wrap standard fetch with @x402/fetch to automatically handle HTTP 402 challenges, sign EIP-712 transfer authorizations on Base, and retry in under 15ms:
npm install @x402/fetch @x402/core @x402/evm viem
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY as `0x${string}`);
const client = new x402Client();
client.register("eip155:8453", new ExactEvmScheme(account));
// 1-line wrapper automatically signs & unlocks full 100% honeypot simulation
const xFetch = wrapFetchWithPayment(fetch, client);
const res = await xFetch("https://rugshield-402.onrender.com/v1/scan", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ token_address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", simulate_sell: true }),
});
const report = await res.json();
console.log("Full Verified Analysis:", report);
2. Autonomous Agent Auto-Pay Quickstart (Python)
Using the built-in Python client (sdk/python/rugshield.py):
from rugshield import RugShieldClient
# Pass your agent wallet private key - automatically handles 402 challenges & EIP-712 signing
client = RugShieldClient(private_key="0xYOUR_AGENT_PRIVATE_KEY")
report = client.scan_token("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913")
print(f"Honeypot: {report.get('is_honeypot')}")
print(f"Exact Sell Tax: {report.get('sell_tax_bps')} bps")
3. ElizaOS Autonomous Agent Plugin
npm install @kurox_real/plugin-rugshield-402
import { rugshieldPlugin } from "@kurox_real/plugin-rugshield-402";
export const character = {
name: "AutonomousDeFiTrader",
plugins: [rugshieldPlugin],
};
4. Coinbase AgentKit (LangChain / Python / TS)
npm install @kurox_real/agentkit-rugshield-402
import { rugshieldActionProvider } from "@kurox_real/agentkit-rugshield-402";
import { AgentKit } from "@coinbase/agentkit";
const agentKit = await AgentKit.from({
actionProviders: [rugshieldActionProvider()],
});
5. Direct REST API (cURL)
# Returns 402 with structured 50% free preview + unlock instructions:
curl -X POST https://rugshield-402.onrender.com/v1/scan \
-H "Content-Type: application/json" \
-d '{"token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", "simulate_sell": true}'
π³ Optional Cloud Subscriptions (MCPize / Apify)
For teams seeking turnkey managed infrastructure with flat monthly credit card billing rather than self-hosting:
- MCPize Directory: Connect via mcpize.com/dashboard
- Apify Pay-Per-Event: Actor distribution on apify.com
π License
This open-source project is licensed under the MIT License β see the LICENSE file for details.
Frequently asked questions
What is RugShield 402 MCP Server?
Real-time token contract safety scanner and honeypot auditor via x402 on Base.
How do I install RugShield 402 MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. RugShield 402 MCP Server connects to the remote endpoint https://rugshield-402.onrender.com/mcp, so there is nothing to install locally.
Is RugShield 402 MCP Server free and open source?
Yes. RugShield 402 MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does RugShield 402 MCP Server support remote (HTTP) connections?
Yes. RugShield 402 MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
How is RugShield 402 MCP Server's trust score calculated?
RugShield 402 MCP Server scores 65 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetβBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.