# ChainGuard Web3 Security & DeFi MCP

> ChainGuard Web3 Security & DeFi MCP is a freemium MCP server for finance and payments. Web3 security MCP server for auditing contracts, tokens and wallets from AI clients. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI, Web, Self-hosted
- **Website:** https://chainguard-studio-production.up.railway.app
- **Repository:** https://github.com/ezequiellech/chainguard-mcp
- **MCP Registry name:** io.github.EzequielLech/chainguard-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [security](https://ai-powered.com/categories/security), [smart contract security](https://ai-powered.com/categories/smart-contract-security)
- **Listing updated:** 2026-11-27

## About

ChainGuard exposes a set of Web3 security checks as a Model Context Protocol server, so assistants like Claude, Cursor and Windsurf can inspect EVM and Solana activity before a transaction or code change goes out. Its tools cover EIP-7702 delegation hijacks, Solana Token-2022 mint risks, suspicious ERC-20 approvals, calldata review and frontend script integrity.

Beyond the MCP endpoint, the project offers a GitHub Action that scans pull requests for patterns such as tx.origin auth, reentrancy and leaked keys, and exports results as SARIF 2.1.0 for GitHub code scanning. A zero-dependency offline CLI can run the same firewall checks without network calls.

It suits developers and security-minded teams shipping smart contracts or wallet-facing apps, and people who want to find and revoke old token allowances or reclaim small balances on Solana and several EVM chains. The hosted endpoint has a free hourly quota, with paid passes listed for higher volume.

## Features

- **EIP-7702 delegation detection:** Flags active EOA delegations on Ethereum, Base, Arbitrum and Polygon that could hand control of a wallet to another contract.
- **Solana Token-2022 audit:** Inspects SPL and Token-2022 mints for permanent delegate, transfer hook and authority risks.
- **Pre-flight transaction firewall:** Reviews EVM calldata for unlimited approvals, setApprovalForAll and proxy upgrade patterns.
- **Allowance revocation builder:** Constructs unsigned approve-to-zero calldata to revoke open ERC-20 router allowances.
- **GitHub SARIF security gate:** Runs as a GitHub Action on pull requests and exports findings in SARIF 2.1.0 for code scanning.
- **Offline CLI scanner:** Scans repositories, transaction data and MCP configs locally with no API key required.

## Good for

- Check a wallet's token approvals and revoke stale router permissions
- Gate pull requests on smart contract security findings in CI
- Screen a Solana token mint for permanent delegate or transfer hook risks before trading
- Let an AI coding assistant review calldata or MCP configs for injected or hidden content
- Reclaim rent from empty Solana token accounts

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http chainguard-mcp https://chainguard-studio-production.up.railway.app/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "type": "http",
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://chainguard-studio-production.up.railway.app/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "type": "http",
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://chainguard-studio-production.up.railway.app/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add chainguard-mcp --url https://chainguard-studio-production.up.railway.app/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.chainguard-mcp]
url = "https://chainguard-studio-production.up.railway.app/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "httpUrl": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http chainguard-mcp https://chainguard-studio-production.up.railway.app/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "serverUrl": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "url": "https://chainguard-studio-production.up.railway.app/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "type": "streamableHttp",
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "chainguard-mcp": {
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://chainguard-studio-production.up.railway.app/mcp
```

Enter a Name (for example "ChainGuard Web3 Security & DeFi MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "chainguard-mcp": {
      "type": "http",
      "url": "https://chainguard-studio-production.up.railway.app/mcp"
    }
  }
}
```

## Tools

The server marks 2 of 15 tools as able to change data. From the server's own tool labels and tool names; not verified by us.

- `check_eip7702_delegation` (says read-only): Inspect a single EVM externally owned account (EOA) via live eth_getCode RPC to detect active Pectra EIP-7702 delegation hijacks (0xef0100...23-byte designator). Read-only, non-destructive lookup on Ethereum, Base, Arbitrum, or Polygon (5 free calls/hour per IP; paid API keys use the plan's remaining quota). Returns JSON with `address`, `network`, `delegated` (boolean), `delegate_contract` (0x add
- `check_solana_token2022` (says read-only): Inspect a Solana SPL or Token-2022 mint account via live Solana mainnet RPC and RugCheck to detect `PermanentDelegate` drain authorities, arbitrary `TransferHook` programs, active `FreezeAuthority`/`MintAuthority`, and hidden transfer fee basis points. Read-only, non-destructive analysis (5 free calls/hour per IP; paid API keys use the plan's remaining quota). Returns JSON with `mint`, `program`, 
- `check_tx_firewall` (says read-only): Perform a read-only pre-flight security check on an unsigned EVM transaction (`to`, `calldata`, `network`) before signing or broadcasting. Screens 4-byte function selectors against unlimited ERC-20 `approve(MAX_UINT256)` (`0x095ea7b3`), NFT `setApprovalForAll(true)` (`0xa22cb465`), Permit2 drainer signatures (`0xd505accf`), UUPS proxy upgrades (`0x3659cfe6`), and verifies whether the spender is an
- `check_mcp_poisoning` (says read-only): Scan untrusted runtime text, MCP tool descriptions, or prompt payloads for invisible zero-width/bidirectional Unicode smuggling (`U+200B`..`U+202E`), prompt-injection override directives, and exposed 64-byte Solana keypairs or private keys. Purely read-only static text inspection with zero code execution (5 free calls/hour per IP; paid API keys use the plan's remaining quota). Returns JSON with `v
- `audit_solidity_or_mcp` (says read-only): Run a read-only static security and token-efficiency audit on Solidity smart contract source code (`.sol`) or MCP server JSON configuration files. Detects reentrancy, `tx.origin` auth, unchecked external calls, uninitialized proxies, and redundant prompt token bloat without executing the submitted code (5 free calls/hour per IP; paid API keys use the plan's remaining quota). Returns JSON with `ris
- `reclaim_solana_rent` (says read-only): Scan a Solana wallet via live mainnet RPC for empty 0-balance SPL and Token-2022 token accounts (~0.002039 SOL trapped rent per account) and optionally construct an unsigned base64 `CloseAccount` batch transaction. Read-only and non-custodial: never broadcasts or signs transactions (unlimited free calls; user receives +88% net reclaimed SOL when they sign and broadcast, with a 12% atomic recovery 
- `check_frontend_hijack` (says read-only): Inspect a live DeFi web application HTTPS URL and optional EIP-1967 proxy contract for supply-chain hijack indicators: missing Content-Security-Policy (CSP), external `<script>` tags lacking Subresource Integrity (`integrity="sha384-..."`), suspicious third-party domains, and EIP-1967 implementation slot state. Read-only inspection over HTTPS and EVM RPC (5 free calls/hour per IP; paid API keys us
- `scan_evm_dust_and_hygiene` (says read-only): Scan an EVM wallet across up to 8 chains (`base`, `arbitrum`, `optimism`, `polygon`, `ethereum`, `bsc`, `linea`, `avalanche`) to discover all ERC-20 token holdings priced in USD, identify sweepable non-stablecoin dust tokens, and summarize open unlimited router approvals. Read-only, zero-connect multi-chain portfolio lookup with unlimited free calls. Returns JSON with `address`, `total_sweepable_u
- `build_erc20_approval_revoke` (says read-only): Construct unsigned non-custodial EVM calldata (`approve(spender, 0)`, selector `0x095ea7b3`) to revoke an open ERC-20 token allowance granted to a router or spender contract on any of 8 EVM networks. Read-only calldata generator: never signs or broadcasts transactions (unlimited free calls, 0% fee). Returns JSON with `network`, `to` (token contract), `spender`, `data` (68-byte hex calldata), `valu
- `build_evm_dust_to_usdt_sweep` (says read-only): Build unsigned non-custodial SAME-CHAIN swap calldata (exact-amount ERC-20 `approve` + audited KyberSwap/OpenOcean router swap) converting an ERC-20 token into USDT or USDC on the SAME EVM network (`base`, `arbitrum`, `optimism`, `polygon`, `ethereum`, `bsc`, `linea`, or `avalanche`). Read-only calldata builder: does not sign or broadcast transactions (unlimited free calls; embeds a 1.00% on-chain
- `build_cross_chain_consolidation` (says read-only): Build unsigned non-custodial CROSS-CHAIN bridge and swap calldata via LI.FI Diamond moving an ERC-20 or native token from `from_network` to a DIFFERENT destination `to_network` (settling in `USDC`, `USDT`, or destination `NATIVE` gas across `base`, `arbitrum`, `optimism`, `polygon`, `ethereum`, `bsc`, `linea`, `avalanche`). Read-only calldata builder: does not sign or broadcast transactions (unlim
- `find_best_defi_yields` (says read-only): Query live DeFiLlama yield pools across Base, Arbitrum, Solana, Ethereum, Optimism, Polygon, and BSC ranked by risk-adjusted sustainable APY and TVL safety score. Read-only market scan (5 free calls/hour per IP returning top 3 pools; full top-25 available via X-API-Key or $0.02 USDC x402 API). Returns JSON with `count`, `chain_filter`, `asset_filter`, and `pools` array (`project`, `symbol`, `chain
- `analyze_token_alpha` (says read-only): Aggregate live DexScreener market metrics (USD price, liquidity, FDV, 24h volume, 24h buy/sell order-flow ratio) with GoPlus ERC-20 honeypot/tax checks (for EVM `0x...` tokens) or Token-2022/RugCheck checks (for Solana base58 mints). Read-only composite market + security lookup (5 free calls/hour per IP; paid API keys use the plan's remaining quota). Returns JSON with `chain`, `market` (`price_usd
- `create_usdt_invoice` (says it can change data): Create a new non-custodial multi-chain USDT/USDC payment invoice and hosted checkout page on Polygon, BSC, Arbitrum, Base, Ethereum, or Solana settling 100% directly to `merchant_wallet` with 0% platform custody. State-changing operation creating a single-use `pending` invoice record (unlimited free calls, no authentication required). Supports recurring SaaS subscriptions via optional `customer_re
- `verify_usdt_invoice` (says it can change data): Verify and settle a confirmed on-chain USDT/USDC transaction hash (`tx_hash`) against a PayGate `invoice_id` via live JSON-RPC receipt log inspection. Idempotent state-changing operation (unlimited free calls, anti-replay enforced): confirms recipient address, token contract, and minimum USD amount, transitions the invoice to `paid`, extends recurring `subscription_expires_at` if configured, and d

## FAQ

### Is there a free way to try ChainGuard Web3 Security & DeFi MCP?

The hosted MCP endpoint allows a limited number of calls per hour without signup, and the offline CLI runs without an API key.

### Which chains are covered?

EVM checks cover Ethereum, Base, Arbitrum, Optimism, Polygon, BSC, Linea and Avalanche, and Solana is supported for token and rent checks.

### How do I connect ChainGuard Web3 Security & DeFi MCP to Claude Desktop or Cursor?

Add the hosted Streamable-HTTP URL to your MCP server configuration, or run the local stdio bridge installed with pip.

### How do I add ChainGuard Web3 Security & DeFi MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http chainguard-mcp https://chainguard-studio-production.up.railway.app/mcp

### What are the best alternatives to ChainGuard Web3 Security & DeFi MCP?

The closest alternatives to ChainGuard Web3 Security & DeFi MCP are ChainGuard Web3 & MCP Shield, Diogenes Web3, DeFi & 402 Security MCP, AgentDiet Base EVM & Solana Smart Contract Security Scanner, Ingravity Autonomous EVM Security & DeFi Guard (x402 v2) and Contract Security Scanner.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 29 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [ChainGuard Web3 & MCP Shield](https://ai-powered.com/mcp/chainguard-web3-and-mcp-shield): ChainGuard Web3 & MCP Shield is a paid MCP server for smart contract security.
- [Diogenes Web3, DeFi & 402 Security MCP](https://ai-powered.com/mcp/diogenes-web3-defi-and-402-security-mcp): Diogenes Web3, DeFi & 402 Security MCP is a freemium MCP server for finance and payments.
- [AgentDiet Base EVM & Solana Smart Contract Security Scanner](https://ai-powered.com/mcp/agentdiet-base-evm-and-solana-smart-contract-security-scanne): AgentDiet Base EVM & Solana Smart Contract Security Scanner is a paid MCP server for legal and government.
- [Ingravity Autonomous EVM Security & DeFi Guard (x402 v2)](https://ai-powered.com/mcp/ingravity-autonomous-evm-security-and-defi-guard-x402-v2): Ingravity Autonomous EVM Security & DeFi Guard (x402 v2) is a freemium MCP server for finance and payments.
- [Contract Security Scanner](https://ai-powered.com/mcp/contract-security-scanner): Contract Security Scanner is an open-source MCP server for security.
- [Ci Guard MCP](https://ai-powered.com/mcp/ci-guard-mcp): Ci Guard MCP is an open-source MCP server for developer tools.
- [Solana Security Standard](https://ai-powered.com/mcp/solana-security-standard): Solana Security Standard is an open-source MCP server for security.
- [Solana Rent & Rug Shield MCP Gateway](https://ai-powered.com/mcp/solana-rent-and-rug-shield-mcp-gateway-2): Solana Rent & Rug Shield MCP Gateway is a freemium MCP server for security.

---
Source: https://ai-powered.com/mcp/chainguard-web3-security-and-defi-mcp-2
