# Aegis X402

> Aegis X402 is a paid MCP server for security. Pay-per-call AI security scanning and USDC escrow for autonomous agents over HTTP 402. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API, CLI, Self-hosted
- **Repository:** https://github.com/ivantamayoramos1989/aegis-x402
- **MCP Registry name:** io.github.IvanTamayoRamos1989/aegis-x402
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-30

## About

Aegis X402 is a remote MCP server that screens prompts and payloads for sensitive data and injection attempts, and checks agent cards and code for security issues. Callers pay per request in USDC on Base using the HTTP 402 challenge flow, so no account or API key is needed; the wallet itself is the credential.

The server exposes sanitization for data loss prevention and prompt-injection patterns, signature verification for agent cards, a SARIF-emitting code scanner for MCP servers and agent code, and signed Ed25519 attestations over payload digests. The same project also includes a commerce layer where seller agents publish buy, rent or pay-per-call offers and buyers fund escrowed orders.

It suits developers building autonomous agents who need a machine-payable security check inside a workflow, and teams that want to scan MCP server code before trusting it.

## Features

- **Pay-per-call security checks:** Each skill is priced per request in USDC, settled through an HTTP 402 challenge without signup.
- **Payload sanitization:** Detects obfuscated secrets, card and IBAN numbers, prompt injection and common injection patterns.
- **Agent card verification:** Checks JWS signatures and inspects skill descriptions on agent cards.
- **SARIF code scanning:** Scans MCP servers and agent code, emitting OASIS SARIF 2.1.0 results.
- **Signed attestations:** Produces Ed25519 signatures over payload digests as receipts.
- **Escrow commerce layer:** Lets agents list offers and fund orders into escrow with a hash-chained ledger.

## Good for

- Screen user prompts for injected instructions before an agent acts on them
- Detect and redact card numbers or secrets in text passed between agents
- Verify the signature and skill descriptions of a remote agent's card
- Scan an MCP server's source code for security findings before installing it
- Attach a signed receipt to a payload an agent wants to prove it handled

## Install

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

```sh
claude mcp add --transport http aegis-x402 https://aegis-x402-3xlzyppmjq-uc.a.run.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": {
    "aegis-x402": {
      "type": "http",
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
    }
  }
}
```

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

```text
https://aegis-x402-3xlzyppmjq-uc.a.run.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": {
    "aegis-x402": {
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "aegis-x402": {
      "type": "http",
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.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://aegis-x402-3xlzyppmjq-uc.a.run.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 aegis-x402 --url https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp
```

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

```toml
[mcp_servers.aegis-x402]
url = "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
```

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

```json
{
  "mcpServers": {
    "aegis-x402": {
      "httpUrl": "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http aegis-x402 https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp

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

```json
{
  "mcpServers": {
    "aegis-x402": {
      "serverUrl": "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "aegis-x402": {
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.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": {
    "aegis-x402": {
      "type": "streamableHttp",
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "aegis-x402": {
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.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": {
    "aegis-x402": {
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "aegis-x402": {
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "aegis-x402": {
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.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://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp
```

Enter a Name (for example "Aegis 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": {
    "aegis-x402": {
      "type": "http",
      "url": "https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp"
    }
  }
}
```

## Tools

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

- `sanitize_payload`: Multi-layer de-obfuscation, DLP (Luhn PAN, Mod-97 IBAN, secrets, PII), prompt-injection, shell/SQLi/SSRF, and MCP tool-poisoning inspection & redaction. Cost: $0.002 USDC via x402.
- `verify_agent_card`: Verifies ES256/Ed25519 detached JWS signatures over RFC 8785 JCS canonicalized AgentCards, checks DNS AgentPin & scans skill metadata for poisoning. Cost: $0.002 USDC via x402.
- `scan_code_sarif`: Deterministic static scanner for MCP servers, TS/JS/Python agents, iOS AppIntents, and Android AppFunctions emitting OASIS SARIF 2.1.0. Cost: $0.25 USDC via x402.
- `discover_a2a_offers`: Free discovery: list active BUY/RENT/PAY_PER_CALL agent listings with seller trust scores.
- `verify_rental_lease`: Verify and consume 1 call unit on an aegis_lease_* token.
- `submit_agent_feedback`: Free ($0.00): Report support issues or false positives, suggest improvements to ESW-P000001, or request new ESW-P/ESW-S products & services with willingness-to-pay signals.

## FAQ

### Do I need an account or API key?

No. Requests are paid per call in USDC on Base via HTTP 402, using an EVM wallet.

### How much does a check cost?

Sanitization and agent card verification are listed at $0.002 USDC, attestation at $0.003, and SARIF code scanning at $0.25.

### How do I connect Aegis X402 as an MCP server?

It runs over Streamable HTTP at the /mcp endpoint of the hosted service.

### How do I add Aegis X402 to Claude Code?

Run this command in your terminal: claude mcp add --transport http aegis-x402 https://aegis-x402-3xlzyppmjq-uc.a.run.app/mcp

### What are the best alternatives to Aegis X402?

The closest alternatives to Aegis X402 are Aegis X402 MCP, X402 Bazaar Micro Auditor, Omega x402 Security, Biomed & Escrow Intelligence MCP, X402 Erc8004 Api Sla Escrow and Qodnai x402 Security Intelligence.

## Where this comes from

- Description: written from the project's README 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

- [Aegis X402 MCP](https://ai-powered.com/mcp/aegis-x402-mcp): Aegis X402 MCP is a freemium MCP server for finance and payments.
- [X402 Bazaar Micro Auditor](https://ai-powered.com/mcp/x402-bazaar-micro-auditor): X402 Bazaar Micro Auditor is a freemium MCP server for security.
- [Omega x402 Security, Biomed & Escrow Intelligence MCP](https://ai-powered.com/mcp/omega-x402-security-biomed-and-escrow-intelligence-mcp): Omega x402 Security, Biomed & Escrow Intelligence MCP is a paid MCP server for security.
- [X402 Erc8004 Api Sla Escrow](https://ai-powered.com/mcp/x402-erc8004-api-sla-escrow): X402 Erc8004 Api Sla Escrow is a freemium MCP server for security.
- [Qodnai x402 Security Intelligence](https://ai-powered.com/mcp/qodnai-x402-security-intelligence): Qodnai x402 Security Intelligence is a paid MCP server for security.
- [APEX Agent Safety & Guardrails](https://ai-powered.com/mcp/apex-agent-safety-and-guardrails): APEX Agent Safety & Guardrails is a paid MCP server for security.
- [Tech Risk](https://ai-powered.com/mcp/tech-risk): Tech Risk is a paid MCP server for security.
- [AEGIS (McX Ventures)](https://ai-powered.com/mcp/aegis-mcx-ventures): AEGIS (McX Ventures) is a paid MCP server for security.

---
Source: https://ai-powered.com/mcp/aegis-x402
