# ingravity-security [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/DMS1979/ingravity-security  
**GitHub Stars:** 0  
**npm Downloads (last month):** 2915  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ingravity-security

## Description
Autonomous 5-EVM Web3 Security Swarm: $0.01 Fast-Ping, $0.10 Pre-Flight EVM Firewall, Direct 0x Token Honeypot Scanner, Safe-Harbor Rescue Provider & STDIO MCP Bridge (2025-06-18) for Coinbase AgentKit, ElizaOS & Claude/Cursor on Base Mainnet (eip155:8453

## Tools
Capabilities this server exposes over MCP:

- **ingravity_encodeErc8021Calldata** — Validates EVM hex calldata and idempotently appends Base ERC-8021 suffix (`bc_i26d7owr`).
- **ingravity_decodeEvmCalldataSelector** — Structurally decodes 4-byte EVM selectors and 32-byte ABI arguments (no risk verdict).

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "ingravity-security": {
    "command": "npx",
    "args": ["-y","ingravity-security"]
  }
}
```

## Documentation

## What ingravity-security does

ingravity-security exposes nine MCP tools for Web3 pre-flight analysis across Base, Arbitrum, Optimism, Polygon, and Ethereum. Its local utilities validate and annotate EVM calldata, or decode common selectors and ABI words without making network requests. The remaining tools submit security-analysis requests to the Ingravity REST API.

The available analysis covers several stages of a transaction or protocol review:

- A low-cost address gate returns `SAFE` or `DANGER` across the five supported EVM chains.
- Transaction inspection simulates calldata before signing, checks EIP-1967 and EIP-1167 proxy patterns, and produces a revocation bundle.
- Token scanning disassembles live ERC-20 bytecode and checks for honeypot behavior.
- DeFi calculations model AMM slippage, MEV sandwich exposure, and perpetual liquidation conditions using exact integer arithmetic.
- Solidity auditing applies 24 static-analysis vectors with a four-gate noise filter.
- Protocol dossiers review one to 20 contracts for cross-contract reentrancy and ERC-4626 or oracle invariants.
- Deep-exploit analysis models flash-loan attacks, checks live TVL, and creates an unsigned Safe-Harbor plan.

## How it works

The package runs as an MCP 2025-06-18 server over JSON-RPC 2.0 STDIO. Its local protocol engine handles initialization, health checks, tool discovery and calls, resources, and prompts without external runtime dependencies. The server also validates EVM addresses, chain IDs, and request schemas locally, returning JSON-RPC invalid-parameter errors for malformed input.

Paid security operations use the Ingravity x402 v2 REST API. Settlement is made per request in native USDC on Base (`eip155:8453`), and the server supports an optional agent spending cap. Session receipt caching can help prevent duplicate charges. The server does not hold private keys or request ERC-20 approvals.

Two MCP resources describe supported chains and x402 settlement. The `pre_sign_transaction_check` prompt combines calldata decoding and transaction inspection, while `pre_swap_token_check` provides a honeypot and slippage review sequence.

## Setup and configuration

Run the server from Docker with an interactive STDIO container:

```bash
docker build -t ingravity-security-mcp .
docker run -i --rm ingravity-security-mcp
```

For Claude Desktop, Cursor, or Windsurf, configure the package through `npx`:

```json
{
  "mcpServers": {
    "ingravity-security": {
      "command": "npx",
      "args": ["-y", "-p", "ingravity-security@latest", "ingravity-mcp"],
      "env": {
        "INGRAVITY_AGENT_BUDGET": "0.10"
      }
    }
  }
}
```

`INGRAVITY_API_URL` can replace the default API base URL. `INGRAVITY_AGENT_BUDGET` sets a per-call USDC limit. Payment authorization can be supplied through `INGRAVITY_PAYMENT_SIGNATURE`, while `INGRAVITY_TX_HASH` supplies a settled Base USDC transaction hash. `INGRAVITY_RECEIPT_TOKEN` enables a reusable session receipt. These settings are optional for starting the local server.

The package also exports `IngravitySecurityActionProvider`, `ingravityElizaPlugin`, and `encodeErc8021Calldata` for programmatic use with Coinbase AgentKit and ElizaOS.

## Tools and capabilities

The two network-free tools are `ingravity_encodeErc8021Calldata`, which appends the Base ERC-8021 attribution suffix `bc_i26d7owr` idempotently, and `ingravity_decodeEvmCalldataSelector`, which structurally handles four-byte selectors and 32-byte ABI words. Recognized selector families include common token approvals and transfers, `permit`, Permit2, and multicall.

The remote tools are address safety ping, EVM transaction firewall inspection, token rug-pull and honeypot scanning, DeFi slippage and liquidation math, Solidity auditing, multi-contract protocol dossiers, and deep exploit or white-hat bounty simulation. Listed full-tier prices range from $0.01 for address ping to $45.00 for deep-exploit analysis; essential-tier prices are available for the remote tools that define them.

## Limitations and notes

Remote analysis depends on the Ingravity API, supported chain RPC access, and x402 Base USDC settlement. The selector decoder performs structural decoding only and does not provide a risk verdict. The protocol dossier accepts one to 20 contract files. Run `npm test` to execute the package's test suite. The project is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/ingravity-security/readme_

