# AgentGuard DeFi Pre-Trade Firewall (Base & Solana)

> AgentGuard DeFi Pre-Trade Firewall (Base & Solana) is a freemium MCP server for finance and payments. Pre-trade token and wallet security checks for Base and Solana DeFi trading agents. 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://agentguard-x402-mcp.onrender.com
- **Repository:** https://github.com/bfedorg/agentguard-x402-mcp
- **MCP Registry name:** io.github.bfedorg/agentguard-x402-mcp
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [crypto security](https://ai-powered.com/categories/crypto-security)
- **Listing updated:** 2026-11-28

## About

AgentGuard gives trading agents a set of checks to run before they commit capital on Base or Solana. Its DeFi module inspects token contracts for honeypot and tax behaviour, proxy patterns, owner powers such as mint or pause, holder concentration and price impact, then suggests a maximum safe trade size in USD.

A second module profiles counterparty wallets, tiering them by size, screening them against GoPlus sanctions, phishing and drainer lists, and auditing unlimited token allowances across common DEX routers and Permit2. Calls are exposed as MCP tools over Streamable HTTP and as plain REST endpoints with an OpenAPI spec.

Payment is per call in USDC using the x402 protocol, so there are no accounts or API keys. Free ping tools are capped at five calls per day per IP. The project is aimed at developers building autonomous DeFi agents who want a security gate in front of swaps and transfers.

## Features

- **Token honeypot and tax scan:** Simulates trades and checks for honeypot logic, buy and sell taxes, and dangerous owner functions in token bytecode.
- **Proxy and authority inspection:** Detects EIP-1967 and EIP-1167 proxies, ownership status, and mint or freeze authorities on Solana.
- **Trade size guidance:** Returns a maxSafeTradeUsd figure based on liquidity and holder concentration.
- **Counterparty wallet profiling:** Tiers wallets by size and checks them against sanctions, phishing and drainer lists.
- **Allowance firewall:** Audits unlimited ERC-20 and SPL approvals across Permit2, Uniswap, Aerodrome, 1inch and 0x.
- **Pay-per-call x402 pricing:** Each paid call costs a few cents in USDC, with no API keys or accounts required.

## Good for

- Vet a new token before a trading agent opens a position
- Screen a counterparty wallet before accepting a transfer or OTC trade
- Audit wallet token approvals and revoke risky allowances
- Batch-check up to ten tokens in one call for a rebalancing run
- Connect a Cursor or Claude session to live DeFi risk checks

## Install

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

```sh
claude mcp add --transport http agentguard-x402-mcp https://agentguard-x402-mcp.onrender.com/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": {
    "agentguard-x402-mcp": {
      "type": "http",
      "url": "https://agentguard-x402-mcp.onrender.com/mcp"
    }
  }
}
```

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

```text
https://agentguard-x402-mcp.onrender.com/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": {
    "agentguard-x402-mcp": {
      "url": "https://agentguard-x402-mcp.onrender.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "agentguard-x402-mcp": {
      "type": "http",
      "url": "https://agentguard-x402-mcp.onrender.com/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://agentguard-x402-mcp.onrender.com/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 agentguard-x402-mcp --url https://agentguard-x402-mcp.onrender.com/mcp
```

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

```toml
[mcp_servers.agentguard-x402-mcp]
url = "https://agentguard-x402-mcp.onrender.com/mcp"
```

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

```json
{
  "mcpServers": {
    "agentguard-x402-mcp": {
      "httpUrl": "https://agentguard-x402-mcp.onrender.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http agentguard-x402-mcp https://agentguard-x402-mcp.onrender.com/mcp

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

```json
{
  "mcpServers": {
    "agentguard-x402-mcp": {
      "serverUrl": "https://agentguard-x402-mcp.onrender.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "agentguard-x402-mcp": {
      "url": "https://agentguard-x402-mcp.onrender.com/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": {
    "agentguard-x402-mcp": {
      "type": "streamableHttp",
      "url": "https://agentguard-x402-mcp.onrender.com/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "agentguard-x402-mcp": {
      "url": "https://agentguard-x402-mcp.onrender.com/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": {
    "agentguard-x402-mcp": {
      "url": "https://agentguard-x402-mcp.onrender.com/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentguard-x402-mcp": {
      "url": "https://agentguard-x402-mcp.onrender.com/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "agentguard-x402-mcp": {
      "url": "https://agentguard-x402-mcp.onrender.com/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://agentguard-x402-mcp.onrender.com/mcp
```

Enter a Name (for example "AgentGuard DeFi Pre-Trade Firewall (Base & Solana)"), 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": {
    "agentguard-x402-mcp": {
      "type": "http",
      "url": "https://agentguard-x402-mcp.onrender.com/mcp"
    }
  }
}
```

## Tools

Going by the tool names, 9 names don't say. From the server's own tool labels and tool names; not verified by us.

- `quick_token_ping`: FREE pre-check (up to 5/day per IP). Returns token metadata, DEX liquidity USD, price, and high-level OK/CAUTION/DANGER status on Base or Solana before deciding on a paid deep_pretrade_audit.
- `deep_pretrade_audit`: PAID ($0.015 USDC via x402). Full pre-trade firewall for Base ERC-20 and Solana SPL tokens: honeypot detection, buy/sell tax, bytecode admin selectors, proxy check, mint/freeze authorities, top-10 holder concentration, price impact, and deterministic ALLOW/WARN/BLOCK verdict with maxSafeTradeUsd.
- `batch_pool_scan`: PAID ($0.05 USDC via x402). Audits up to 10 tokens across Base and Solana in parallel and returns ranked verdicts and safe position limits.
- `quick_wallet_ping`: FREE wallet pre-check (shared daily IP quota). Returns ETH/SOL + USDC balances, whale tier (SHRIMP/DOLPHIN/SHARK/WHALE), and high-level OK/CAUTION/DANGER status on Base or Solana.
- `counterparty_wallet_profile`: PAID ($0.010 USDC via x402). Counterparty KYW / whale intelligence on Base and Solana: balances, tx activity, sanctions/phishing/drainer checks (GoPlus), and SAFE/CAUTION/HIGH_RISK verdict.
- `wallet_approvals_audit`: PAID ($0.020 USDC via x402). Full wallet security audit + unlimited ERC-20 DEX allowance scan across Uniswap Permit2, Universal Router, Aerodrome, 1inch & 0x (Base) or SPL delegates (Solana).
- `quick_web_ping`: FREE SSRF-safe website & link safety pre-check (shared daily IP quota). Checks reachability, HTTP status, HTTPS, page title, security header count, and quick phishing heuristics before paid extraction or domain audit.
- `web_extract_markdown`: PAID ($0.005 USDC via x402). SSRF-safe extraction of any public webpage into clean LLM-ready Markdown, plus structured contacts (emails, phones, social links), OpenGraph/HTML metadata, internal/external links, and prompt-injection warnings.
- `domain_security_audit`: PAID ($0.012 USDC via x402). Deep SSRF-safe domain & link audit: DNS records (A/AAAA/MX/NS/CAA/SPF/DMARC), live SSL/TLS certificate validation, HTTP security headers grading, RDAP domain age, and anti-phishing / brand-impersonation detection.

## FAQ

### Which chains are supported?

The DeFi and wallet modules cover Base and Solana.

### How is AgentGuard DeFi Pre-Trade Firewall (Base & Solana) paid for?

Paid endpoints charge in USDC through the x402 protocol, using Base EIP-3009 or Solana SPL USDC. Two ping tools are free, limited to five calls per day per IP.

### How do I connect AgentGuard DeFi Pre-Trade Firewall (Base & Solana) to an MCP client?

Add an HTTP server entry pointing to the /mcp endpoint, or run the local npx stdio bridge for Cursor and Claude Desktop.

### What license is AgentGuard DeFi Pre-Trade Firewall (Base & Solana) under?

The repository is released under the MIT license.

### How do I add AgentGuard DeFi Pre-Trade Firewall (Base & Solana) to Claude Code?

Run this command in your terminal: claude mcp add --transport http agentguard-x402-mcp https://agentguard-x402-mcp.onrender.com/mcp

### What are the best alternatives to AgentGuard DeFi Pre-Trade Firewall (Base & Solana)?

The closest alternatives to AgentGuard DeFi Pre-Trade Firewall (Base & Solana) are Base & EVM DeFi Pre-Trade Shield (x402), Agent Payment Guard, Steve Guard, Defi Guard MCP and PreTrade Verdict.

## 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 3 December 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Base & EVM DeFi Pre-Trade Shield (x402)](https://ai-powered.com/mcp/base-and-evm-defi-pre-trade-shield-x402): Base & EVM DeFi Pre-Trade Shield (x402) is a paid MCP server for finance and payments.
- [Agent Payment Guard](https://ai-powered.com/mcp/agent-payment-guard): Agent Payment Guard is a paid MCP server for finance and payments.
- [Steve Guard](https://ai-powered.com/mcp/steve-guard): Steve Guard is a freemium MCP server for finance and payments.
- [Defi Guard MCP](https://ai-powered.com/mcp/defi-guard-mcp): Defi Guard MCP is an open-source MCP server for finance and payments.
- [PreTrade Verdict](https://ai-powered.com/mcp/pretrade-verdict): PreTrade Verdict is a paid MCP server for finance and payments.
- [Base Agent Due-Diligence Kit](https://ai-powered.com/mcp/base-agent-due-diligence-kit): Base Agent Due-Diligence Kit is a paid MCP server for finance and payments.
- [Automaton Onchain Tools](https://ai-powered.com/mcp/automaton-onchain-tools): Automaton Onchain Tools is a paid MCP server for security.
- [Base Memecoin Guard](https://ai-powered.com/mcp/base-memecoin-guard): Base Memecoin Guard is a freemium MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/agentguard-defi-pre-trade-firewall-base-and-solana
