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 depeg / peg-stability analysis 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 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.

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).

get_rwa_token_risk

Depeg / peg-stability 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 risk score, depeg snapshot, score decomposition, depeg history, and risk tier.

list_rwa_tokens

List RWA and pegged tokens (stablecoins) with depeg risk data. Returns paginated items with ecosystem aggregates (tier counts, denomination breakdown).
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.

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