# Base & EVM DeFi Pre-Trade Shield (x402)

> Base & EVM DeFi Pre-Trade Shield (x402) is a paid MCP server for finance and payments. Pre-trade token safety checks on Base and EVM chains for bots and AI agents. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, Web
- **Website:** https://defi.brunopompeo.com.br
- **Repository:** https://github.com/brunopompeo1/brazil-ai-fiscal-apis-x402
- **GitHub stars:** 1
- **License:** MIT
- **MCP Registry name:** io.github.brunopompeo1/base-defi-shield-x402
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [crypto security](https://ai-powered.com/categories/crypto-security), [crypto and web3](https://ai-powered.com/categories/crypto-and-web3)
- **Listing updated:** 2026-11-28

## About

Runs a pre-trade screen on a token before a swap: it simulates whether the token can be sold, reads contract-level risk signals, checks available liquidity, and compares price against an oracle to flag divergence. Results come back as pass, warn or fail flags with an overall safety score.

The service covers several EVM networks and includes a wallet endpoint that reports risk and Base ETH and USDC balances for an address. Each call is paid per request in USDC on Base through the x402 protocol, and a free sample endpoint shows the response shape before any payment.

It is aimed at trading bots, DeFi agents and developers who want a safety gate in front of automated trades. It is exposed as an MCP server over streamable HTTP for AI clients.

## Features

- **Honeypot simulation:** Simulates buying and selling a token to detect whether it can be sold after purchase.
- **Tax and contract risk:** Reports buy and sell taxes and contract-level risk signals for the token.
- **Liquidity check:** Reads DEX liquidity for the token to flag thin or missing markets.
- **Oracle divergence:** Compares token price against an oracle source and flags large mismatches.
- **Wallet risk and balances:** Returns risk findings and Base ETH and USDC balances for a wallet address.
- **Pay-per-call access:** Each check costs a small USDC amount on Base with no account or subscription.

## Good for

- Blocking trades of honeypot or high-tax tokens before a bot executes a swap
- Adding a token safety gate to a DeFi trading agent
- Checking liquidity and price consistency before routing an order
- Screening a wallet's risk profile and balances within an agent workflow

## Install

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

```sh
claude mcp add --transport http base-defi-shield-x402 https://defi.brunopompeo.com.br/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": {
    "base-defi-shield-x402": {
      "type": "http",
      "url": "https://defi.brunopompeo.com.br/mcp"
    }
  }
}
```

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

```text
https://defi.brunopompeo.com.br/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": {
    "base-defi-shield-x402": {
      "url": "https://defi.brunopompeo.com.br/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "base-defi-shield-x402": {
      "type": "http",
      "url": "https://defi.brunopompeo.com.br/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://defi.brunopompeo.com.br/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 base-defi-shield-x402 --url https://defi.brunopompeo.com.br/mcp
```

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

```toml
[mcp_servers.base-defi-shield-x402]
url = "https://defi.brunopompeo.com.br/mcp"
```

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

```json
{
  "mcpServers": {
    "base-defi-shield-x402": {
      "httpUrl": "https://defi.brunopompeo.com.br/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http base-defi-shield-x402 https://defi.brunopompeo.com.br/mcp

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

```json
{
  "mcpServers": {
    "base-defi-shield-x402": {
      "serverUrl": "https://defi.brunopompeo.com.br/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "base-defi-shield-x402": {
      "url": "https://defi.brunopompeo.com.br/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": {
    "base-defi-shield-x402": {
      "type": "streamableHttp",
      "url": "https://defi.brunopompeo.com.br/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "base-defi-shield-x402": {
      "url": "https://defi.brunopompeo.com.br/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": {
    "base-defi-shield-x402": {
      "url": "https://defi.brunopompeo.com.br/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "base-defi-shield-x402": {
      "url": "https://defi.brunopompeo.com.br/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "base-defi-shield-x402": {
      "url": "https://defi.brunopompeo.com.br/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://defi.brunopompeo.com.br/mcp
```

Enter a Name (for example "Base & EVM DeFi Pre-Trade Shield (x402)"), 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": {
    "base-defi-shield-x402": {
      "type": "http",
      "url": "https://defi.brunopompeo.com.br/mcp"
    }
  }
}
```

## Tools

The server marks all 2 tools read-only. From the server's own tool labels and tool names; not verified by us.

- `base_token_safety_check` (says read-only): Screens one ERC-20 token on Base or another EVM chain right before a swap and returns a verdict SAFE, CAUTION, DANGER or HONEYPOT, a safety score from 0 to 100 and a swap-eligibility decision with a recommended maximum slippage. It combines the GoPlus contract scan and a honeypot.is sell simulation (buy and sell tax, hidden owner, blacklist, mintable, proxy, cannot-sell-all), live DexScreener liqu
- `evm_wallet_risk_check` (says read-only): Screens one EVM address before an agent pays it, approves it or accepts funds from it: GoPlus address-security flags for phishing, theft, sanctions, money laundering, mixers, fake KYC, blacklists and malicious contracts created, rolled up into a risk verdict CLEAN, SUSPICIOUS or MALICIOUS with a score, plus live on-chain facts from an RPC node: whether it is a person's wallet (EOA) or a contract, 

## FAQ

### How is the service paid for?

Each paid call costs 0.015 USDC on the Base network, settled through the x402 protocol. A free sample endpoint is available.

### Which networks are supported?

Token checks cover several EVM networks, and the wallet endpoint reports Base ETH and USDC balances.

### How do I connect Base & EVM DeFi Pre-Trade Shield (x402) to an AI client?

It exposes an MCP server over streamable HTTP at the /mcp path of the defi subdomain.

### How do I add Base & EVM DeFi Pre-Trade Shield (x402) to Claude Code?

Run this command in your terminal: claude mcp add --transport http base-defi-shield-x402 https://defi.brunopompeo.com.br/mcp

### What are the best alternatives to Base & EVM DeFi Pre-Trade Shield (x402)?

The closest alternatives to Base & EVM DeFi Pre-Trade Shield (x402) are Base Token Safety Inspector, Agentrisk, Defi Guard MCP, Base Token Check and Trust Check.

## 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

- [Base Token Safety Inspector](https://ai-powered.com/mcp/base-token-safety-inspector): Base Token Safety Inspector is a paid MCP server for crypto and web3.
- [Agentrisk](https://ai-powered.com/mcp/agentrisk): Agentrisk is a paid MCP server for crypto security.
- [Defi Guard MCP](https://ai-powered.com/mcp/defi-guard-mcp): Defi Guard MCP is an open-source MCP server for finance and payments.
- [Base Token Check](https://ai-powered.com/mcp/base-token-check): Base Token Check is a paid MCP server for security.
- [Trust Check](https://ai-powered.com/mcp/trust-check): Trust Check is a freemium MCP server for crypto and web3.
- [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.
- [Atlas MCP](https://ai-powered.com/mcp/atlas-mcp-4): Atlas MCP is a paid MCP server for crypto and web3.
- [Token security check (x402)](https://ai-powered.com/mcp/token-security-check-x402): Token security check (x402) is a paid MCP server for security.

---
Source: https://ai-powered.com/mcp/base-and-evm-defi-pre-trade-shield-x402
