Solana Rent & Rug Shield MCP Gateway

com.rentandrugshield由 rentandrugshield.com 發布官方發布者v1.0.0更新於 Nov 17, 2026

Solana 10-layer token rug audit, CPI tx drain simulator, and ATA rent scanner via x402.

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

概覽

AI 產生的概覽

Solana 安全閘道,讓助理稽核代幣跑路風險、模擬交易排查盜幣行為,並掃描錢包中可回收的租金。

可以做什麼
  • 對 Solana 代幣鑄造地址做十層安全稽核,回傳 0 到 100 的安全分數與風險標記
  • 模擬序列化交易,檢查內部 CPI 呼叫中的權限接管、委託盜取與 SOL 轉移
  • 掃描公開錢包地址,找出空 SPL 與 Token-2022 代幣帳戶中可回收的租金
  • 回傳 x402 付款挑戰,並在重試時接受付款簽章或 Pro Pass 權杖
適用情境
適合處理 Solana 代幣與交易的代理程式或開發者,用於買入前安全檢查、簽署前交易審查,或唯讀查看錢包中未領取的租金。
執行需求
遠端 Streamable HTTP 端點,或透過 npx 使用 npm 套件、透過 pip/uvx 使用 PyPI 套件(需 Node.js 20+ 或 Python)。選用環境變數:RENTSHIELD_API_URL、X402_OPTION、RENTSHIELD_PRO_PASS_TOKEN、SOLANA_RPC_URL,以及用於自動付款的 SOLANA_PRIVATE_KEY 或 X402_SOLANA_PRIVATE_KEY。需要連線至閘道與 Solana 主網。
安裝前請注意
每個代理程式 ID 有 10 次免費請求,之後依 x402 付費,方案為 0.026 SOL 或 0.0003 SOL,付款至 Solana 金庫地址。設定 SOLANA_PRIVATE_KEY 或 X402_SOLANA_PRIVATE_KEY 後,伺服器會自動簽署並廣播真實 SOL 轉帳,應視為消費錢包私鑰。租金掃描據稱唯讀且只需公開地址;稽核與模擬會把鑄造地址、錢包與交易資料傳送到遠端閘道。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Solana Rent & Rug Shield MCP Gateway,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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

交給代理程式安裝

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

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

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

其他 MCP 客戶端

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

{
  "mcpServers": {
    "solana-rent-rug-shield-gateway": {
      "type": "http",
      "url": "https://rentandrugshield.com/mcp"
    }
  }
}

README

Solana Rent & Rug Shield MCP Gateway (@rentandrugshield/mcp-server & solana-rug-shield)

Production Model Context Protocol (MCP) security gateway and x402 Solana machine-payment toolkit powered by https://rentandrugshield.com. Built for autonomous Solana AI trading agents, IDE copilots, and DeFi wallets requiring <120ms pre-buy token rug protection, Layer 9 Inner CPI transaction drainer simulation, and read-only unclaimed ATA SOL rent discovery.

  • Registry Manifests Included: server.json (Official MCP Registry), smithery.yaml (Smithery.ai), glama.json (Glama.ai), Dockerfile (Node >=20 multi-stage container), and registry/mcp_so_submission.json (MCP.so).

Distribution Packages

  • TypeScript / NPX MCP Server: @rentandrugshield/mcp-server (npx -y @rentandrugshield/mcp-server or binary rentandrugshield-mcp)
  • Python / PyPI SDK & MCP Server: solana-rug-shield (pip install solana-rug-shield with built-in MCP stdio server mode and sync/async Python SDK)
  • Production Upstream Gateway: https://rentandrugshield.com
  • Official MCP Registry Namespace: io.github.sonnyman2014/solana-rent-rug-shield-mcp and com.rentandrugshield/mcp-server

Zero-Install Remote Streamable HTTP MCP (https://rentandrugshield.com/mcp)

Connect any Streamable HTTP MCP client (Claude, Cursor, Windsurf, Cline, OpenAI Agents, LangGraph) directly with zero local installation:

json
{  "mcpServers": {    "rentandrugshield": {      "type": "streamable-http",      "url": "https://rentandrugshield.com/mcp"    }  }}
  • Zero-Install Streamable HTTP Endpoint: https://rentandrugshield.com/mcp (MCP 2025-03-26 and 2024-11-05)
  • Discovery Manifests: https://rentandrugshield.com/.well-known/mcp.json and https://rentandrugshield.com/.well-known/x402
  • Solana x402 V1 & V2 Auto-Pay: 10 free pings per X-Agent-Id, then 0.026 SOL ($1.99 Unlimited Pro Pass) or 0.0003 SOL (~$0.02 single scan) to 89Sv5FvnMNRid1bn8y2Ti1vJPSxWxgiW9GSLsPpBnKK1 via PAYMENT-SIGNATURE or X-Payment.

Quick Start Commands

Launch via NPX (@rentandrugshield/mcp-server)

bash
npx -y @rentandrugshield/mcp-server

Install and Launch via PyPI (solana-rug-shield)

bash
pip install solana-rug-shieldsolana-rug-shield --mcp-stdio

Direct Python SDK Usage (solana-rug-shield)

python
from solana_rug_shield import RugShieldClient
client = RugShieldClient(api_url="https://rentandrugshield.com")
audit = client.audit_solana_token_10_layer(    mint="So11111111111111111111111111111111111111112")sim = client.simulate_solana_tx_drain(transaction="AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAED")rent = client.scan_wallet_unclaimed_sol(    wallet="89Sv5FvnMNRid1bn8y2Ti1vJPSxWxgiW9GSLsPpBnKK1",    include_token_2022=True,)

Direct GitHub Release v1.0.0 Install (Zero Registry Wait)

bash
npx -y https://github.com/sonnyman2014/solana-rent-rug-shield-mcp/releases/download/v1.0.0/rentandrugshield-mcp-server-1.0.0.tgzpip install https://github.com/sonnyman2014/solana-rent-rug-shield-mcp/releases/download/v1.0.0/solana_rug_shield-1.0.0-py3-none-any.whl

Core Solana Security Tools (3 MCP Tools)

1. audit_solana_token_10_layer (<120ms Pre-Buy Token Safety Gate)

  • Purpose: High-speed <120ms warm-socket pre-buy anti-rug safety gate powered by persistent HTTP keep-alive connection pooling for autonomous sniper bots, DeFi execution agents, and trading terminals.
  • 10 Security Layers Evaluated: Mint authority status, freeze authority status, Token-2022 permanent delegate hooks, Token-2022 transfer fee mutations, non-transferable / close-authority traps, liquidity pool lock and burn ratio, top holder cluster concentration, metadata mutability, creator rug history, and live sellability verification (returning a 0 to 100 safety score plus actionable risk flags).
  • Inputs: mint (required base58 mint address), optional pool_address, wallet, payment_signature, pro_pass_token.

2. simulate_solana_tx_drain (Layer 9 Inner CPI Drainer Check)

  • Purpose: Pre-signing transaction firewall that simulates serialized Solana transactions (base64 or base58) and inspects full Layer 9 Inner Cross-Program Invocations (Inner CPI) before an agent or user wallet signs.
  • Threats Blocked: Stealth SetAuthority account ownership takeovers, hidden SPL / Token-2022 Approve delegate drains, multi-hop wrapper program SOL sweeps, and malicious CPI callback hooks disguised inside benign swap instructions.
  • Inputs: transaction (required serialized transaction), optional wallet, encoding (base64 or base58), payment_signature, pro_pass_token.

3. scan_wallet_unclaimed_sol (Read-Only ATA Rent Check)

  • Purpose: Zero-custody, strictly read-only Mainnet wallet scanner that discovers reclaimable rent-exempt SOL locked in empty SPL (Tokenkeg) and Token-2022 Associated Token Accounts (ATAs), dust accounts, and PumpSwap / Pump volume accumulator PDAs.
  • Safety Guarantee: Requires only a public base58 wallet address; never requests private keys for scanning and reports exact account counts plus net reclaimable SOL (95% user payout structure on https://rentandrugshield.com).
  • Inputs: wallet (required base58 wallet address), optional include_token_2022 (boolean, default true), payment_signature, pro_pass_token.

10 Free Pings + Native Solana x402 Machine Auto-Pay

Every agent and developer session connecting to https://rentandrugshield.com receives 10 free pings out of the box with zero API keys, zero credit cards, and zero setup.

When the 11th unpaid request triggers HTTP 402 Payment Required, the gateway returns standard Payment-Required and X-Payment-Required base64 JSON x402 v1 challenges targeting verified Solana Mainnet treasury 89Sv5FvnMNRid1bn8y2Ti1vJPSxWxgiW9GSLsPpBnKK1 with two instant machine-payable tiers:

  • Option A (option_a_pro_pass / Unlimited Pro Pass): 0.026 SOL (26,000,000 lamports, $1.99 Unlimited Pro Pass). Issues a signed X-Pro-Pass-Token cached automatically by @rentandrugshield/mcp-server and solana-rug-shield so all subsequent tool calls resolve 200 OK with zero per-call settlement overhead.
  • Option B (option_b_single_scan / Instant Single Scan): 0.0003 SOL (300,000 lamports, $0.02 single scan). Unlocks one immediate verified scan per unique Solana Mainnet transaction signature enforced by strict on-chain anti-replay verification.
  • Autonomous Agent Settlement: When SOLANA_PRIVATE_KEY (or X402_SOLANA_PRIVATE_KEY) is configured in the MCP environment, both @rentandrugshield/mcp-server and solana-rug-shield automatically build and broadcast the exact SOL transfer to 89Sv5FvnMNRid1bn8y2Ti1vJPSxWxgiW9GSLsPpBnKK1, attach the base64 X-Payment payload plus X-Solana-Tx-Signature, and retry the tool call transparently in a single turn.
  • Keyless / Manual Settlement: When no private key is configured, the MCP tool returns the structured x402 challenge instructions so human operators or external signers can pass payment_signature or pro_pass_token directly on retry.

Environment Variables

  • RENTSHIELD_API_URL: Upstream gateway base URL (defaults to https://rentandrugshield.com).
  • SOLANA_PRIVATE_KEY: Optional base58 string or JSON byte array [...] for automatic x402 HTTP 402 SOL settlement.
  • X402_SOLANA_PRIVATE_KEY: Optional dedicated alias for SOLANA_PRIVATE_KEY.
  • X402_OPTION: Select option_a_pro_pass (0.026 SOL $1.99 Unlimited Pro Pass, default) or option_b_single_scan (0.0003 SOL $0.02 single scan).
  • RENTSHIELD_PRO_PASS_TOKEN: Optional pre-provisioned X-Pro-Pass-Token for instant unlimited Pro Pass access.
  • SOLANA_RPC_URL: Solana Mainnet RPC URL used when broadcasting automatic x402 transfers (defaults to https://api.mainnet-beta.solana.com).

Client and Agent Framework Configurations

1. Claude Desktop (claude_desktop_config.json)

Option 1A: Node / NPX (@rentandrugshield/mcp-server)
json
{  "mcpServers": {    "rentandrugshield": {      "command": "npx",      "args": ["-y", "@rentandrugshield/mcp-server"],      "env": {        "RENTSHIELD_API_URL": "https://rentandrugshield.com",        "X402_OPTION": "option_a_pro_pass"      }    }  }}
Option 1B: Python / PyPI (solana-rug-shield)
json
{  "mcpServers": {    "rentandrugshield": {      "command": "uvx",      "args": ["solana-rug-shield", "--mcp-stdio"],      "env": {        "RENTSHIELD_API_URL": "https://rentandrugshield.com",        "X402_OPTION": "option_a_pro_pass"      }    }  }}

2. Cursor (.cursor/mcp.json)

json
{  "mcpServers": {    "rentandrugshield": {      "command": "npx",      "args": ["-y", "@rentandrugshield/mcp-server"],      "env": {        "RENTSHIELD_API_URL": "https://rentandrugshield.com",        "SOLANA_PRIVATE_KEY": "YOUR_OPTIONAL_AGENT_BASE58_KEY",        "X402_OPTION": "option_a_pro_pass"      }    }  }}

3. Windsurf (~/.codeium/windsurf/mcp_config.json)

json
{  "mcpServers": {    "rentandrugshield": {      "command": "npx",      "args": ["-y", "@rentandrugshield/mcp-server"],      "env": {        "RENTSHIELD_API_URL": "https://rentandrugshield.com",        "X402_OPTION": "option_a_pro_pass"      }    }  }}

4. Cline (cline_mcp_settings.json)

json
{  "mcpServers": {    "rentandrugshield": {      "command": "npx",      "args": ["-y", "@rentandrugshield/mcp-server"],      "disabled": false,      "autoApprove": [        "audit_solana_token_10_layer",        "simulate_solana_tx_drain",        "scan_wallet_unclaimed_sol"      ],      "env": {        "RENTSHIELD_API_URL": "https://rentandrugshield.com",        "X402_OPTION": "option_b_single_scan"      }    }  }}

5. OpenAI Agents SDK (openai-agents)

python
import asynciofrom agents import Agent, Runnerfrom agents.mcp import MCPServerStdio

async def main() -> None:    async with MCPServerStdio(        name="RentAndRugShield",        params={            "command": "npx",            "args": ["-y", "@rentandrugshield/mcp-server"],            "env": {                "RENTSHIELD_API_URL": "https://rentandrugshield.com",                "X402_OPTION": "option_a_pro_pass",            },        },    ) as rug_shield_mcp:        agent = Agent(            name="SolanaExecutionGuard",            instructions=(                "Always call audit_solana_token_10_layer before any token swap and "                "simulate_solana_tx_drain before signing any serialized transaction."            ),            mcp_servers=[rug_shield_mcp],        )        result = await Runner.run(            agent,            "Audit Solana mint So11111111111111111111111111111111111111112 and report safety score.",        )        print(result.final_output)

if __name__ == "__main__":    asyncio.run(main())

6. LangChain (langchain-mcp-adapters & solana-rug-shield)

python
import asynciofrom langchain_mcp_adapters.client import MultiServerMCPClientfrom langgraph.prebuilt import create_react_agent

async def run_guard() -> None:    client = MultiServerMCPClient(        {            "rentandrugshield": {                "command": "npx",                "args": ["-y", "@rentandrugshield/mcp-server"],                "transport": "stdio",                "env": {                    "RENTSHIELD_API_URL": "https://rentandrugshield.com",                    "X402_OPTION": "option_a_pro_pass",                },            }        }    )    tools = await client.get_tools()    agent = create_react_agent("openai:gpt-4o", tools)    response = await agent.ainvoke(        {            "messages": [                {                    "role": "user",                    "content": "Scan wallet 89Sv5FvnMNRid1bn8y2Ti1vJPSxWxgiW9GSLsPpBnKK1 for unclaimed ATA SOL rent.",                }            ]        }    )    print(response["messages"][-1].content)

if __name__ == "__main__":    asyncio.run(run_guard())

License and Links

來源:README.md,提交 27aa6a6

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v1.0.0最新Nov 17, 2026

評分

已滿足適用檢查項的 85%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分