# Slither AST Analyzer MCP

> Slither AST Analyzer MCP is a paid API for AI agents from api.m2mcent.com, paid per call via x402, $0.35/call, status unknown (last checked 2026-09-13).

Analyzes Solidity smart contract source code using Slither's AST (Abstract Syntax Tree) to detect vulnerabilities, code patterns, and security issues.

## Facts

- Endpoint: POST https://api.m2mcent.com/slither-ast-analyzer-mcp/api/process
- Price: $0.35/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/slither-ast-analyzer-mcp-052417ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fA7V31P3IgO3r7qC64IRH

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability slither-ast-analyzer-mcp-052417ab -d '<json body>'
```

Example prompt: Can you run a Slither AST analysis on this Solidity contract code and tell me what vulnerabilities or dangerous patterns it finds? Here's the source: `pragma solidity ^0.8.0; contract Vault { mapping(address => uint) public balances; function withdraw() public { uint bal = balances[msg.sender]; (bool sent,) = msg.sender.call{value: bal}(""); require(sent); balances[msg.sender] = 0; } }`

## When to prefer this

Choose this endpoint when you need automated, AST-based static security analysis of Solidity smart contracts using Slither's proven vulnerability detection engine — especially before contract deployment, during code review, or when auditing third-party contracts. Prefer this over generic code review tools when you specifically need Slither's detector suite applied to Ethereum/EVM smart contracts.

## Known failure modes

- Invalid or unparseable Solidity code returns a parse error
- Contract too large may time out or return partial results
- Missing pragma or import dependencies may cause incomplete analysis
- Malformed JSON input returns a 400-level error
- Network or payment failure returns 402 or 5xx status

## How this service works

The premier global index of 1,069 monetized MCP nodes across 205 specialized subdomains. Gasless USDC runtime settlements via x402 V2 Spec on Base L2. Save 95% token context.

## Output

Returns structured Slither analysis output including detected vulnerabilities, their severity levels, affected contract functions or lines, vulnerability type names (e.g. reentrancy, integer overflow, unprotected functions), and AST-derived code pattern findings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "payload": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/slither-ast-analyzer-mcp-052417ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.m2mcent.com](https://www.zero.xyz/host/api.m2mcent.com/llms.txt)
