Skip to main content
The Webacy API exposes an MCP (Model Context Protocol) server that lets AI coding assistants like Claude Code and Cursor query blockchain risk data directly from your development environment. Instead of switching to a browser or writing API calls manually, you can ask your AI assistant questions like “Analyze the risk of 0x742d…” and get real-time results inline.

Prerequisites

Keep your API key secret. Never commit it to version control.

Installation

Claude Code

Add the Webacy MCP server using the CLI:
Or add it manually to your .claude/mcp.json file:

Cursor

Open Cursor Settings and navigate to MCP Servers. Click Add Server and configure:

Other MCP Clients

Any MCP client that supports HTTP Streamable transport can connect to the Webacy MCP server. Use the following configuration:

Available Tools

The MCP server exposes seven tools for blockchain risk analysis: three address/token tools plus four vault and RWA tools.
There is no get_rwa_grades tool. To list RWA / pegged tokens with risk data, use list_rwa_tokens.

Choosing the right tool

Several tools accept a token address, so pick by what you are analyzing. Stablecoins, RWAs, and pegged tokens should use get_rwa_token_risk — it adds both depeg / peg-stability and structural-health analysis (collateral quality, governance, liquidity depth) that get_token_risk does not. AI assistants configured with this server are given the same guidance, so a prompt like “analyze PYUSD on Ethereum” routes to the RWA tool automatically.

get_address_risk

Analyze the risk profile of a blockchain address (wallet or contract). Returns risk score, risk factors, and detailed security analysis.

get_token_risk

Analyze the risk profile of a general token contract. Returns token security flags, market data, and economic risk indicators. For stablecoins, RWAs, or other pegged tokens (e.g. USDC, USDT, PYUSD, DAI), prefer get_rwa_token_risk, which adds depeg / peg-stability and structural-health analysis.

get_holder_analysis

Analyze the holder distribution and concentration of a token. Returns top holders, holder counts, and distribution metrics.

get_vault_risk

Get detailed risk analysis for an ERC-4626 vault. Returns risk score, risk tier, risk decomposition across 7 categories (structure, governance, liquidity, code quality, asset, performance, protocol), looping data, Morpho markets, and Webacy findings. Each response also carries the Webacy A+→F composite grade (see Composite grade).

list_vaults

List ERC-4626 vaults with risk scores, filtering, and sorting. Returns paginated vault items with ecosystem aggregates (tier counts, TVL, highest risk, largest TVL). Each item carries the Webacy A+→F composite grade (see Composite grade), or null when the vault could not be graded.

get_rwa_token_risk

Depeg and structural-health risk analysis for a stablecoin, RWA, or pegged token — e.g. USDC, USDT, PYUSD, DAI, USDe, tokenized treasuries or money-market funds (BUIDL), or commodity tokens (PAXG). Prefer this over get_token_risk whenever the asset is pegged. Returns the depeg risk score, depeg snapshot, score decomposition, depeg history, and risk tier, plus the structural composite grade, weighted category scores, and coverage metadata.

list_rwa_tokens

List RWA and pegged tokens (stablecoins) with depeg and structural risk data. Returns paginated items with ecosystem aggregates (tier counts, denomination breakdown). Each item carries the Webacy A+→F composite grade (see Composite grade), or null when the token is not in the graded dataset.
Vault and RWA tools cover different chains than the address/token tools. get_vault_risk and list_vaults support 9 chains (eth, arb, base, opt, pol, bsc, avax, gnosis, sol). The address/token tools use the chain list below.

Composite grade

The RWA and vault tools (get_rwa_token_risk, list_rwa_tokens, get_vault_risk, list_vaults) return a Webacy composite grade — the same A+→F rating shown on dd.xyz. It is the v3 composite (risk-polarity: a lower score earns a better grade), so a token or vault grades identically across the detail and list tools.
Where letter is the A+ (lowest risk) → F (highest risk) band, score is 0–100 (higher = worse), and stars is 1–5 derived from the letter band. The grade is best-effort and nullable: grade is null when the asset is not in the graded dataset or the grade could not be computed, and its absence never fails the underlying risk response. The generic get_token_risk and get_address_risk tools do not return a composite grade — it applies to stablecoins/RWAs and vaults only.

Hard-gating and pre-execution use

REST is the primary integration path for hard-gate and pre-execution decisioning. The MCP server is a convenience wrapper over a subset of the REST surface. Treat missing, stale, or errored data as unknown — never as safe, and check the relevant freshness field before using a result in a decisioning path. See the API introduction for the full fail-behavior guidance.

Supported Chains

The chain parameter accepts: eth, sol, arb, pol, opt, base, bsc, ton, sui, stellar, btc, sei, hedera.
See Supported Blockchains for full details on each chain.

Example Usage

Once configured, you can query Webacy risk data directly from your AI assistant:
Because USDC is a stablecoin, an assistant analyzing it reaches for the RWA tool, which covers both peg stability and structural health:
The same routing applies to any pegged asset by name — a stablecoin like PYUSD goes to the RWA tool, not the generic token tool:
You can also analyze generic token contracts and holder distributions:

Next Steps

API Reference

Explore all available endpoints

SDK

Use the TypeScript SDK for programmatic access

Risk Levels

Understand how to interpret risk scores

RWA Diligence Walkthrough

Extract a full DD picture for a real-world asset, end to end