Koskamo

Diogenes Web3, DeFi & 402 Security MCP

A focused MCP package providing 15 Web3, DeFi, and HTTP 402 security tools including smart contract auditing, Solana risk analysis, MEV evaluation, and address poisoning detection, designed to keep LLM context windows lean.

Endpoint and access

No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.

Diogenes Web3, DeFi & 402 Security MCP logo, by Diogenes GatewayCommunity listingStreamable HTTPNo sign-inEndpoint checked 2026-11-24Published by Diogenes Gateway
MCP endpoint (Streamable HTTP)
https://diogenesgateway.com/mcp/web3-security
Vendor documentation

What its tools do

15 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.

15 of 15 have a description · 15 of 15 declare behavior hints · 15 of 15 with parameters document them all

Checks and signals

Each line is separate evidence, not a trust score.

  • Passed Endpoint answered the live check ·
  • Uptime 100% over 90 days
  • Availability 1 of 1 checks passed in 30 days

What you can do with it

  • Audit EVM/Move smart contract source code
  • Scan Solana Anchor CPI and SPL risks
  • Evaluate MEV sandwich attacks and Jito fees
  • Verify HTTP 402 payment requirements

Source and maintenance

Community listingRegistry 1.1.0
Maintenance checked

Protocol and capabilities

Server
diogenes-edge-gateway 2.5.0
MCP protocol negotiated in check
2024-11-05
Tools
15 advertised
Resources
Not advertised
Resource templates
Not advertised
Prompts
Not advertised
Server-advertised capabilities
{
  "tools": {
    "listChanged": false
  }
}

Server-provided instructions

Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.

Welcome to Diogenes Edge Gateway (121 Deterministic Microservices). To preserve token context, tools are lazy-loaded via 3 Meta-Tools: 1. 'diogenes_discover_tools': Search for capabilities by keyword or domain suite (gemini-suite, eve-frontier, web3-security, agent-guardrails, dev-utilities, neural-search-engine, data-pipeline, crypto-market, code-execution). 2. 'diogenes_inspect_tool': Retrieve full JSON Schema and required parameters for up to 5 tools. 3. 'diogenes_execute_tool': Execute any tool. Free-tier tools (e.g. malformed_json_healer, guardrail_verify, ast_sql_validator) execute with zero auth. Paid tools accept Lightning L402, Solana x402, Base MPP, or Garlicoin settlement.

Tools

15 advertised

audit_smart_contract_code — EVM & Move Smart Contract Honeypot, Tax & Reentrancy Auditor
Advertised by the server during the last successful anonymous check.
Advertised read-only

Statically audits Solidity, Vyper, or Move smart contract source code for honeypot transfer taxes, hidden mint backdoors, proxy upgrade traps, and reentrancy. Use when auditing smart contract source code or bytecode before deploying or interacting with a protocol; for scanning Solana Anchor/Rust programs specifically for Cross-Program Invocation (CPI) signer/account vulnerabilities, use scan_solana_cpi_reentrancy instead. Read-only edge call (32 KB, 60 RPM): accepts 'code_or_address' ('chain' defaults to 'evm_solidity'), uses '?demo=true' or L402 (45 sats); HTTP 400 if invalid.

audit_smart_contract_code input schema
{
  "type": "object",
  "required": [
    "code_or_address"
  ],
  "properties": {
    "chain": {
      "enum": [
        "evm_solidity",
        "sui_move",
        "base_evm",
        "arbitrum_evm"
      ],
      "type": "string",
      "description": "Target blockchain VM architecture; defaults to 'evm_solidity' when omitted."
    },
    "code_or_address": {
      "type": "string",
      "description": "Smart contract source code snippet, ABI, or contract address to audit."
    }
  }
}
audit_smart_contract_code output schema
{
  "type": "object",
  "required": [
    "security_score",
    "risk_level",
    "is_honeypot",
    "vulnerabilities"
  ],
  "properties": {
    "risk_level": {
      "type": "string",
      "description": "Severity classification ('LOW', 'MEDIUM', 'HIGH', or 'CRITICAL')."
    },
    "is_honeypot": {
      "type": "boolean",
      "description": "True if transfer restrictions or excessive sell taxes (>10%) are present."
    },
    "security_score": {
      "type": "integer",
      "description": "Composite contract safety score from 0 (critical exploit) to 100 (verified safe)."
    },
    "vulnerabilities": {
      "type": "array",
      "description": "Specific vulnerability findings and line-level remediation advice."
    }
  },
  "description": "Deterministic response schema for audit_smart_contract_code."
}
audit_smart_contract_code annotations
{
  "title": "EVM & Move Smart Contract Honeypot, Tax & Reentrancy Auditor",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
scan_solana_cpi_reentrancy — Solana Anchor & Rust Cross-Program Invocation (CPI) Vulnerability Scanner
Advertised by the server during the last successful anonymous check.
Advertised read-only

Scans Solana Anchor and native Rust program instructions for unverified Cross-Program Invocation (CPI) program IDs, missing signer checks, and PDA bump seed canonicalization bugs. Use when auditing Solana Rust/Anchor source code or instruction account structs for CPI privilege escalation; for checking live SPL token mint/freeze authorities and rug-pull risk by mint address, use evaluate_solana_token_risk instead. Read-only edge call (32 KB, 60 RPM): accepts 'rust_source_or_idl' ('framework' defaults to 'anchor'), uses '?demo=true' or L402 (30 sats); HTTP 400 if invalid.

scan_solana_cpi_reentrancy input schema
{
  "type": "object",
  "required": [
    "rust_source_or_idl"
  ],
  "properties": {
    "framework": {
      "enum": [
        "anchor",
        "native_rust_solana",
        "pinocchio"
      ],
      "type": "string",
      "description": "Solana program framework used; defaults to 'anchor' when omitted."
    },
    "rust_source_or_idl": {
      "type": "string",
      "description": "Solana Rust/Anchor source code or IDL JSON string to scan for CPI vulnerabilities."
    }
  }
}
scan_solana_cpi_reentrancy output schema
{
  "type": "object",
  "required": [
    "arbitrary_cpi_detected",
    "missing_signer_checks",
    "pda_bump_safe",
    "audit_verdict"
  ],
  "properties": {
    "audit_verdict": {
      "type": "string",
      "description": "Overall Solana program verdict ('SAFE_ANCHOR_PROGRAM' or 'CRITICAL_CPI_VULNERABILITY')."
    },
    "pda_bump_safe": {
      "type": "boolean",
      "description": "True when canonical bump seeds are enforced on all PDA derivations."
    },
    "missing_signer_checks": {
      "type": "array",
      "description": "Accounts mutated without enforcing Signer<'info> or has_one constraints."
    },
    "arbitrary_cpi_detected": {
      "type": "boolean",
      "description": "True if invoke/invoke_signed is called without validating the target program account."
    }
  },
  "description": "Deterministic response schema for scan_solana_cpi_reentrancy."
}
scan_solana_cpi_reentrancy annotations
{
  "title": "Solana Anchor & Rust Cross-Program Invocation (CPI) Vulnerability Scanner",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
evaluate_solana_token_risk — Solana SPL Token Mint/Freeze Authority & Rug-Pull Risk Evaluator
Advertised by the server during the last successful anonymous check.
Advertised read-only

Evaluates Solana SPL and Token-2022 rug-pull risk by checking mint/freeze authorities, permanent delegates, transfer hooks, and returning reason codes with slot height. Use when making a pre-trade security decision on whether an SPL or Token-2022 mint is safe to trade; for DEX liquidity and metadata lookup via x402, use inspect_solana_token_liquidity instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'token_address' ('risk_profile' defaults to 'strict_decentralized'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

evaluate_solana_token_risk input schema
{
  "type": "object",
  "required": [
    "token_address"
  ],
  "properties": {
    "risk_profile": {
      "enum": [
        "strict_decentralized",
        "allow_regulated_stablecoins",
        "memecoin_sniping"
      ],
      "type": "string",
      "description": "Tolerance policy for centralized freeze authorities; defaults to 'strict_decentralized' when omitted."
    },
    "token_address": {
      "type": "string",
      "description": "Base58-encoded Solana SPL token mint address (32–44 characters)."
    }
  }
}
evaluate_solana_token_risk output schema
{
  "type": "object",
  "required": [
    "valid_base58",
    "risk_score",
    "should_transact",
    "freeze_authority_present",
    "reason_codes",
    "slot",
    "token_standard",
    "token_2022_extensions"
  ],
  "properties": {
    "slot": {
      "type": "number",
      "description": "Solana block slot at which the on-chain mint and authority state was verified."
    },
    "risk_score": {
      "type": "number",
      "description": "Rug-pull risk score from 0.0 (renounced/safe) to 1.0 (critical danger)."
    },
    "reason_codes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Programmatic risk verdicts and reason codes (e.g. REGULATED_STABLECOIN_FREEZE_AUTHORITY, TOKEN_2022_PERMANENT_DELEGATE)."
    },
    "valid_base58": {
      "type": "boolean",
      "description": "True when the provided address is a valid Base58 Solana public key."
    },
    "token_standard": {
      "type": "string",
      "description": "Identified Solana token program standard ('spl-token', 'token-2022', or 'native-sol')."
    },
    "should_transact": {
      "type": "boolean",
      "description": "True when the token passes authority and concentration safety checks."
    },
    "token_2022_extensions": {
      "type": "object",
      "required": [
        "permanent_delegate_present",
        "transfer_hook_present",
        "transfer_fee_active",
        "default_account_frozen"
      ],
      "properties": {
        "transfer_fee_active": {
          "type": "boolean",
          "description": "True if transfer fee extension withholds tokens on transfer."
        },
        "transfer_hook_present": {
          "type": "boolean",
          "description": "True if an external transfer hook program executes on every transfer."
        },
        "default_account_frozen": {
          "type": "boolean",
          "description": "True if new token accounts are initialized in frozen state by default."
        },
        "permanent_delegate_present": {
          "type": "boolean",
          "description": "True if a Token-2022 permanent delegate can arbitrarily transfer or burn holder tokens."
        }
      },
      "description": "Detected Token-2022 extensions including permanent delegate, transfer hook, default frozen, and transfer fees."
    },
    "freeze_authority_present": {
      "type": "boolean",
      "description": "True if an active authority can freeze holder token accounts."
    }
  },
  "description": "Deterministic response schema for evaluate_solana_token_risk."
}
evaluate_solana_token_risk annotations
{
  "title": "Solana SPL Token Mint/Freeze Authority & Rug-Pull Risk Evaluator",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
inspect_solana_token_liquidity — Solana SPL Token Metadata, Decimals & Authority Registry Lookup
Advertised by the server during the last successful anonymous check.
Advertised read-only

Retrieves canonical Solana SPL token metadata including name, ticker symbol, decimal precision, and current mint/freeze authority addresses. Use when resolving SPL token decimals, ticker symbols, and registry metadata for portfolio or swap formatting; for computing a composite security risk score and binary should_transact verdict, use evaluate_solana_token_risk instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'mint' ('network' defaults to 'mainnet-beta'), supports '?demo=true' or x402 (20 sats), and returns HTTP 400 if invalid.

inspect_solana_token_liquidity input schema
{
  "type": "object",
  "required": [
    "mint"
  ],
  "properties": {
    "mint": {
      "type": "string",
      "description": "Base58-encoded Solana SPL token mint address (e.g. 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v')."
    },
    "network": {
      "enum": [
        "mainnet-beta",
        "devnet"
      ],
      "type": "string",
      "description": "Solana cluster to query; defaults to 'mainnet-beta' when omitted."
    }
  }
}
inspect_solana_token_liquidity output schema
{
  "type": "object",
  "required": [
    "mint",
    "symbol",
    "decimals",
    "authorities_renounced"
  ],
  "properties": {
    "mint": {
      "type": "string",
      "description": "Queried Base58 SPL token mint address."
    },
    "symbol": {
      "type": "string",
      "description": "Canonical token ticker symbol (e.g. 'USDC', 'SOL', 'JUP')."
    },
    "decimals": {
      "type": "integer",
      "description": "Token decimal precision used for raw lamport/atomic unit conversion."
    },
    "authorities_renounced": {
      "type": "boolean",
      "description": "True when both mint_authority and freeze_authority are null."
    }
  },
  "description": "Deterministic response schema for inspect_solana_token_liquidity."
}
inspect_solana_token_liquidity annotations
{
  "title": "Solana SPL Token Metadata, Decimals & Authority Registry Lookup",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
track_solana_whale_flows — Solana Whale Wallet Net-Flow & Insider Cluster Tracker
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Tracks 24-hour net accumulation or distribution flows across top Solana whale wallets and flags coordinated insider wallet clusters for a given SPL token. Use when analyzing on-chain smart-money order flow and holder clustering on Solana; for checking static SPL contract mint/freeze authority permissions, use evaluate_solana_token_risk instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'token' ('window' defaults to '1h'), supports '?demo=true' or x402 (50 sats), and returns HTTP 400 if invalid.

track_solana_whale_flows input schema
{
  "type": "object",
  "required": [
    "token"
  ],
  "properties": {
    "token": {
      "type": "string",
      "description": "Base58 Solana SPL token mint address or ticker symbol to track whale flows for."
    },
    "window": {
      "enum": [
        "1h",
        "6h",
        "24h",
        "7d"
      ],
      "type": "string",
      "description": "Aggregation lookback window for net whale flow; defaults to '24h' when omitted."
    }
  }
}
track_solana_whale_flows output schema
{
  "type": "object",
  "required": [
    "token",
    "net_flow_24h_usd",
    "signal",
    "insider_cluster_detected"
  ],
  "properties": {
    "token": {
      "type": "string",
      "description": "Tracked Solana token identifier."
    },
    "signal": {
      "type": "string",
      "description": "Order-flow classification ('ACCUMULATION' or 'DISTRIBUTION')."
    },
    "net_flow_24h_usd": {
      "type": "string",
      "description": "Signed 24-hour net whale flow denominated in USD."
    },
    "insider_cluster_detected": {
      "type": "boolean",
      "description": "True if synchronized funding patterns indicate an insider wallet cluster."
    }
  },
  "description": "Deterministic response schema for track_solana_whale_flows."
}
track_solana_whale_flows annotations
{
  "title": "Solana Whale Wallet Net-Flow & Insider Cluster Tracker",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
estimate_solana_priority_fees — Solana Compute-Unit Priority Fee & Jito MEV Tip Estimator
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Calculates optimal Solana compute-unit (CU) microlamport priority fees and Jito bundle tip lamports to achieve target block-inclusion probability. Use when setting SetComputeUnitPrice and Jito tips before broadcasting a Solana transaction; for querying Bitcoin L1 sat/vB mempool fee rates, use estimate_bitcoin_mempool_fees instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'priority_level' ('tx_type' defaults to 'simple_transfer'), supports '?demo=true' or x402 (10 sats), and returns HTTP 400 if invalid.

estimate_solana_priority_fees input schema
{
  "type": "object",
  "required": [
    "priority_level"
  ],
  "properties": {
    "tx_type": {
      "enum": [
        "simple_transfer",
        "dex_swap",
        "nft_mint",
        "arbitrary_cpi"
      ],
      "type": "string",
      "description": "Transaction category used to estimate compute unit limit; defaults to 'dex_swap' when omitted."
    },
    "priority_level": {
      "enum": [
        "low",
        "medium",
        "high",
        "ultra"
      ],
      "type": "string",
      "description": "Target inclusion urgency tier on Solana mainnet-beta."
    }
  }
}
estimate_solana_priority_fees output schema
{
  "type": "object",
  "required": [
    "recommended_micro_lamports_per_cu",
    "recommended_jito_tip_lamports",
    "estimated_landing_probability",
    "recommended_compute_unit_limit"
  ],
  "properties": {
    "estimated_landing_probability": {
      "type": "number",
      "description": "Projected next-block inclusion probability (0.0 to 1.0)."
    },
    "recommended_jito_tip_lamports": {
      "type": "integer",
      "description": "Recommended Jito block-engine tip in lamports for MEV-protected landing."
    },
    "recommended_compute_unit_limit": {
      "type": "integer",
      "description": "Suggested ComputeBudget compute unit ceiling."
    },
    "recommended_micro_lamports_per_cu": {
      "type": "integer",
      "description": "Recommended priority fee in microlamports per compute unit."
    }
  },
  "description": "Deterministic response schema for estimate_solana_priority_fees."
}
estimate_solana_priority_fees annotations
{
  "title": "Solana Compute-Unit Priority Fee & Jito MEV Tip Estimator",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
decode_eip712_permit_signature — EIP-712 Typed Data & Uniswap Permit2 Phishing Signature Decoder
Advertised by the server during the last successful anonymous check.
Advertised read-only

Decodes EIP-712 and Uniswap Permit2 off-chain typed-data payloads to verify spender identity, detect unlimited (uint256.max) token approvals, and flag expired deadlines. Use when inspecting an off-chain eth_signTypedData_v4 or Permit2 payload before signing; for decoding raw on-chain hex transaction calldata (0x...) for eth_sendTransaction, use simulate_evm_transaction_calldata instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'typed_data_json' ('chain_id' defaults to '1'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

decode_eip712_permit_signature input schema
{
  "type": "object",
  "required": [
    "typed_data_json"
  ],
  "properties": {
    "chain_id": {
      "enum": [
        "1",
        "8453",
        "42161",
        "10"
      ],
      "type": "string",
      "description": "EVM chain ID used to verify canonical router spender addresses; defaults to '8453' (Base) when omitted."
    },
    "typed_data_json": {
      "type": "string",
      "description": "JSON string or object containing the EIP-712 / Permit2 message (spender, amount, deadline)."
    }
  }
}
decode_eip712_permit_signature output schema
{
  "type": "object",
  "required": [
    "spender_address",
    "spender_identity",
    "unlimited_approval_detected",
    "signing_verdict"
  ],
  "properties": {
    "signing_verdict": {
      "type": "string",
      "description": "Safety recommendation ('SAFE_BOUNDED_PERMIT' or 'CRITICAL_UNLIMITED_APPROVAL_UNVERIFIED_SPENDER')."
    },
    "spender_address": {
      "type": "string",
      "description": "Normalized lowercase EVM address of the permit spender."
    },
    "spender_identity": {
      "type": "string",
      "description": "Identified protocol router label or 'Unknown Third-Party Spender'."
    },
    "unlimited_approval_detected": {
      "type": "boolean",
      "description": "True if the approval value equals uint256.max / uint160.max."
    }
  },
  "description": "Deterministic response schema for decode_eip712_permit_signature."
}
decode_eip712_permit_signature annotations
{
  "title": "EIP-712 Typed Data & Uniswap Permit2 Phishing Signature Decoder",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
simulate_evm_transaction_calldata — Pre-Sign Calldata Simulator & Stateful Blockchain Transaction Tracker
Advertised by the server during the last successful anonymous check.
Advertised read-only

Simulates raw EVM hex calldata (0x...), estimates gas/fees for pre-sign payload assembly, and tracks on-chain transaction execution state, confirmations, and receipts. Use when auditing calldata before signing or tracking execution state and confirmations after broadcast; for inspecting off-chain EIP-712 typed-data signatures, use decode_eip712_permit_signature instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'action' ('network' defaults to 'base_mainnet'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

simulate_evm_transaction_calldata input schema
{
  "type": "object",
  "properties": {
    "action": {
      "enum": [
        "simulate_calldata",
        "prepare_transaction",
        "track_tx_state"
      ],
      "type": "string",
      "description": "Operation: 'simulate_calldata' to simulate/decode, 'prepare_transaction' to assemble payload, or 'track_tx_state'."
    },
    "network": {
      "enum": [
        "base_mainnet",
        "ethereum_mainnet",
        "arbitrum_one",
        "optimism"
      ],
      "type": "string",
      "description": "Target EVM network for simulation context; defaults to 'base_mainnet' when omitted."
    },
    "tx_hash": {
      "type": "string",
      "description": "Transaction hash (0x...) to track on-chain execution state and confirmation depth."
    },
    "calldata_hex": {
      "type": "string",
      "description": "Hexadecimal EVM transaction data string starting with '0x' (e.g. '0x095ea7b3000000000000000000000000...')."
    }
  }
}
simulate_evm_transaction_calldata output schema
{
  "type": "object",
  "required": [
    "selector_hex",
    "decoded_method",
    "simulation_verdict"
  ],
  "properties": {
    "tx_state": {
      "type": "object",
      "description": "On-chain transaction execution state, block height, and confirmation count."
    },
    "selector_hex": {
      "type": "string",
      "description": "Extracted 4-byte function selector (e.g. '0x095ea7b3')."
    },
    "decoded_method": {
      "type": "string",
      "description": "Human-readable ABI function signature matched to the selector."
    },
    "prepared_payload": {
      "type": "object",
      "description": "Unsigned transaction payload with estimated gas and nonce ready for wallet signing."
    },
    "simulation_verdict": {
      "type": "string",
      "description": "Pre-sign safety recommendation ('SAFE_CALLDATA' or 'HIGH_RISK_APPROVAL_DETECTED')."
    }
  },
  "description": "Deterministic response schema for simulate_evm_transaction_calldata."
}
simulate_evm_transaction_calldata annotations
{
  "title": "Pre-Sign Calldata Simulator & Stateful Blockchain Transaction Tracker",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
evaluate_dex_mev_risk — Pre-Swap DEX MEV Sandwich & Frontrunning Risk Evaluator
Advertised by the server during the last successful anonymous check.
Advertised read-only

Evaluates decentralized exchange (DEX) swap parameters against pool depth and mempool visibility to quantify MEV sandwich risk and compute optimal slippage tolerance in basis points. Use when configuring slippage tolerance and private-RPC routing before executing an on-chain DEX token swap; for comparing cross-chain bridge settlement routes across different L1 blockchains, use compare_crosschain_bridge_routes instead. Read-only edge call (32 KB, 60 RPM): accepts 'pair' ('execution_venue' defaults to 'uniswap_v3_public'), uses '?demo=true' or L402 (25 sats); HTTP 400 if invalid.

evaluate_dex_mev_risk input schema
{
  "type": "object",
  "required": [
    "pair"
  ],
  "properties": {
    "pair": {
      "type": "string",
      "description": "Trading pair symbol or pool identifier (e.g. 'ETH/USDC' or 'SOL/USDC')."
    },
    "execution_venue": {
      "enum": [
        "uniswap_v3_public",
        "flashbots_protect",
        "aerodrome_base",
        "jupiter_jito"
      ],
      "type": "string",
      "description": "Target DEX protocol or RPC relay; defaults to 'uniswap_v3_public' when omitted."
    }
  }
}
evaluate_dex_mev_risk output schema
{
  "type": "object",
  "required": [
    "sandwich_risk",
    "frontrunning_detected",
    "optimal_slippage_bps",
    "recommended_rpc"
  ],
  "properties": {
    "sandwich_risk": {
      "type": "string",
      "description": "Assessed MEV extraction risk tier ('LOW', 'MEDIUM', or 'HIGH')."
    },
    "recommended_rpc": {
      "type": "string",
      "description": "Suggested MEV-protected broadcast endpoint."
    },
    "optimal_slippage_bps": {
      "type": "integer",
      "description": "Recommended maximum slippage tolerance in basis points (1 bps = 0.01%)."
    },
    "frontrunning_detected": {
      "type": "boolean",
      "description": "True if public mempool broadcast exposes the swap to predatory bots."
    }
  },
  "description": "Deterministic response schema for evaluate_dex_mev_risk."
}
evaluate_dex_mev_risk annotations
{
  "title": "Pre-Swap DEX MEV Sandwich & Frontrunning Risk Evaluator",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
detect_address_poisoning_scam — Counterparty Address Poisoning & Vanity Prefix/Suffix Spoof Detector
Advertised by the server during the last successful anonymous check.
Advertised read-only

Compares a target recipient wallet address against recent transaction history to detect vanity prefix/suffix lookalike spoofing and zero-value dusting attacks. Use when verifying a recipient EVM or Solana wallet address before sending funds; for decoding hex smart contract calldata payloads, use simulate_evm_transaction_calldata instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'target_address' ('address_standard' defaults to 'auto_detect'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

detect_address_poisoning_scam input schema
{
  "type": "object",
  "required": [
    "target_address"
  ],
  "properties": {
    "target_address": {
      "type": "string",
      "description": "Candidate recipient EVM (0x...) or Solana Base58 wallet address to verify."
    },
    "address_standard": {
      "enum": [
        "auto_detect",
        "evm_hex",
        "solana_base58"
      ],
      "type": "string",
      "description": "Address encoding format; defaults to 'auto_detect' when omitted."
    }
  }
}
detect_address_poisoning_scam output schema
{
  "type": "object",
  "required": [
    "target_address",
    "poisoning_detected",
    "prefix_suffix_collision_score",
    "verdict"
  ],
  "properties": {
    "verdict": {
      "type": "string",
      "description": "Transfer safety decision ('SAFE_VERIFIED' or 'DANGER_POISONING_ATTACK')."
    },
    "target_address": {
      "type": "string",
      "description": "Audited recipient address."
    },
    "poisoning_detected": {
      "type": "boolean",
      "description": "True if a prefix/suffix collision with a different middle body is found."
    },
    "prefix_suffix_collision_score": {
      "type": "number",
      "description": "Similarity score (0.0 to 1.0) against known counterparty addresses."
    }
  },
  "description": "Deterministic response schema for detect_address_poisoning_scam."
}
detect_address_poisoning_scam annotations
{
  "title": "Counterparty Address Poisoning & Vanity Prefix/Suffix Spoof Detector",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
verify_http402_payment_challenge — Pre-Payment HTTP 402 (L402 / x402 / MPP) Invoice & Macaroon Fraud Verifier
Advertised by the server during the last successful anonymous check.
Advertised read-only

Decodes inbound HTTP 402 Payment Required challenges (L402 BOLT11 + Macaroon, x402 Solana USDC, MPP Base intents) to verify cryptographic payment-hash binding and block overcharge fraud. Use when auditing a 402 challenge header before an autonomous agent pays a Lightning invoice or USDC transfer; for checking on-chain Bitcoin L1 mempool feerates, use estimate_bitcoin_mempool_fees instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'www_authenticate' ('protocol_hint' defaults to 'L402'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.

verify_http402_payment_challenge input schema
{
  "type": "object",
  "required": [
    "www_authenticate"
  ],
  "properties": {
    "protocol_hint": {
      "enum": [
        "L402",
        "x402",
        "MPP"
      ],
      "type": "string",
      "description": "Expected HTTP 402 payment protocol; defaults to 'L402' when omitted."
    },
    "www_authenticate": {
      "type": "string",
      "description": "Raw WWW-Authenticate or Payment-Required HTTP header string from a 402 response."
    }
  }
}
verify_http402_payment_challenge output schema
{
  "type": "object",
  "required": [
    "protocol_detected",
    "macaroon_payment_hash_matches_bolt11",
    "overcharge_detected",
    "payment_safety_verdict"
  ],
  "properties": {
    "protocol_detected": {
      "type": "string",
      "description": "Identified 402 settlement protocol ('L402', 'x402', or 'MPP')."
    },
    "overcharge_detected": {
      "type": "boolean",
      "description": "True if the invoice amount exceeds the declared endpoint price ceiling."
    },
    "payment_safety_verdict": {
      "type": "string",
      "description": "Authorization recommendation ('SAFE_TO_PAY' or 'REJECT_HASH_MISMATCH')."
    },
    "macaroon_payment_hash_matches_bolt11": {
      "type": "boolean",
      "description": "True when the macaroon caveat hash matches the BOLT11 invoice payment hash."
    }
  },
  "description": "Deterministic response schema for verify_http402_payment_challenge."
}
verify_http402_payment_challenge annotations
{
  "title": "Pre-Payment HTTP 402 (L402 / x402 / MPP) Invoice & Macaroon Fraud Verifier",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
estimate_bitcoin_mempool_fees — Bitcoin Mainnet Mempool Feerate Estimator (sat/vB)
Advertised by the server during the last successful anonymous check.
Advertised read-onlyOpen-world

Fetches real-time Bitcoin mainnet mempool feerate recommendations in satoshis per virtual byte (sat/vB) across fastest, half-hour, hour, and economy confirmation tiers. Use when checking current Bitcoin L1 network congestion before broadcasting an on-chain BTC transaction; for calculating exact SegWit/Taproot UTXO batch consolidation vByte weights and dust thresholds, use plan_bitcoin_utxo_consolidation instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'confirmation_target', supports '?demo=true' or L402 (10 sats), and returns HTTP 400 if invalid.

estimate_bitcoin_mempool_fees input schema
{
  "type": "object",
  "required": [],
  "properties": {
    "confirmation_target": {
      "enum": [
        "fastest_block",
        "half_hour",
        "one_hour",
        "economy"
      ],
      "type": "string",
      "description": "Target confirmation speed tier; defaults to 'half_hour' when omitted."
    }
  }
}
estimate_bitcoin_mempool_fees output schema
{
  "type": "object",
  "required": [
    "fastestFee",
    "halfHourFee",
    "hourFee",
    "economyFee"
  ],
  "properties": {
    "hourFee": {
      "type": "integer",
      "description": "Recommended feerate in sat/vB for ~60-minute confirmation."
    },
    "economyFee": {
      "type": "integer",
      "description": "Low-priority feerate in sat/vB for non-urgent batch sweeps."
    },
    "fastestFee": {
      "type": "integer",
      "description": "Recommended feerate in sat/vB for next-block (~10 min) inclusion."
    },
    "halfHourFee": {
      "type": "integer",
      "description": "Recommended feerate in sat/vB for ~30-minute confirmation."
    }
  },
  "description": "Deterministic response schema for estimate_bitcoin_mempool_fees."
}
estimate_bitcoin_mempool_fees annotations
{
  "title": "Bitcoin Mainnet Mempool Feerate Estimator (sat/vB)",
  "readOnlyHint": true,
  "openWorldHint": true,
  "idempotentHint": true,
  "destructiveHint": false
}
plan_bitcoin_utxo_consolidation — Bitcoin SegWit/Taproot UTXO Dust Consolidation & Fee-Window Planner
Advertised by the server during the last successful anonymous check.
Advertised read-only

Analyzes a set of Bitcoin UTXO balances in satoshis to compute exact vByte transaction weight, identify uneconomical dust inputs, and recommend whether to consolidate now or hold. Use when optimizing on-chain Bitcoin treasury UTXO sets to minimize long-term miner fee drag; for fetching current live Bitcoin mempool sat/vB feerates alone, use estimate_bitcoin_mempool_fees instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'utxos_sats_json' ('script_type' defaults to 'p2wpkh_segwit'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

plan_bitcoin_utxo_consolidation input schema
{
  "type": "object",
  "required": [
    "utxos_sats_json"
  ],
  "properties": {
    "script_type": {
      "enum": [
        "p2wpkh_segwit",
        "p2tr_taproot",
        "p2sh_nested"
      ],
      "type": "string",
      "description": "Bitcoin input script type determining vByte weight per input; defaults to 'p2wpkh_segwit' when omitted."
    },
    "utxos_sats_json": {
      "type": "string",
      "description": "JSON array or comma-separated list of UTXO values in satoshis (e.g. '[1200, 45000, 85000]')."
    }
  }
}
plan_bitcoin_utxo_consolidation output schema
{
  "type": "object",
  "required": [
    "utxo_count",
    "estimated_consolidation_vbytes",
    "high_fee_dust_utxos",
    "recommended_action"
  ],
  "properties": {
    "utxo_count": {
      "type": "integer",
      "description": "Number of UTXO inputs analyzed."
    },
    "recommended_action": {
      "type": "string",
      "description": "Execution timing advice ('CONSOLIDATE_NOW' or 'HOLD_UNTIL_SUB_15_SAT_VB')."
    },
    "high_fee_dust_utxos": {
      "type": "integer",
      "description": "Count of UTXOs whose input weight costs more than 3% of their value."
    },
    "estimated_consolidation_vbytes": {
      "type": "integer",
      "description": "Total virtual byte (vB) size of the consolidation transaction."
    }
  },
  "description": "Deterministic response schema for plan_bitcoin_utxo_consolidation."
}
plan_bitcoin_utxo_consolidation annotations
{
  "title": "Bitcoin SegWit/Taproot UTXO Dust Consolidation & Fee-Window Planner",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
calculate_spot_swap_rate — Cross-Asset Spot Exchange Rate & Satoshi Conversion Calculator
Advertised by the server during the last successful anonymous check.
Advertised read-only

Calculates instantaneous spot exchange rates and equivalent USD, BTC, and satoshi values across BTC, ETH, SOL, SUI, and USDC. Use when converting a token amount into USD or satoshis for invoice pricing or accounting; for quoting executable non-KYC cross-chain bridge routes with bridge fees and settlement times, use compare_crosschain_bridge_routes instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'currency' ('amount' defaults to 'standard'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

calculate_spot_swap_rate input schema
{
  "type": "object",
  "required": [
    "currency"
  ],
  "properties": {
    "amount": {
      "type": "number",
      "description": "Quantity of the source asset to convert; defaults to 100 when omitted."
    },
    "currency": {
      "enum": [
        "USDC",
        "BTC",
        "ETH",
        "SOL",
        "SUI"
      ],
      "type": "string",
      "description": "Source asset ticker symbol to convert from."
    }
  }
}
calculate_spot_swap_rate output schema
{
  "type": "object",
  "required": [
    "source_currency",
    "source_amount",
    "total_usd_value",
    "equivalent_sats"
  ],
  "properties": {
    "source_amount": {
      "type": "number",
      "description": "Input asset quantity."
    },
    "equivalent_sats": {
      "type": "integer",
      "description": "Equivalent value denominated in Bitcoin satoshis."
    },
    "source_currency": {
      "type": "string",
      "description": "Input asset symbol converted."
    },
    "total_usd_value": {
      "type": "number",
      "description": "Equivalent spot value in US Dollars (USD)."
    }
  },
  "description": "Deterministic response schema for calculate_spot_swap_rate."
}
calculate_spot_swap_rate annotations
{
  "title": "Cross-Asset Spot Exchange Rate & Satoshi Conversion Calculator",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}
compare_crosschain_bridge_routes — Non-KYC Cross-Chain Bridge Route & Settlement Fee Comparator
Advertised by the server during the last successful anonymous check.
Advertised read-only

Compares non-custodial, non-KYC cross-chain swap routes (THORChain native L1 swaps, Maya Protocol, Blockstream Liquid) by basis-point fee, net output sats, and settlement time. Use when routing cross-chain treasury settlements (e.g. Solana USDC or Base ETH into native Bitcoin); for calculating mid-market spot exchange rates without bridge routing fees, use calculate_spot_swap_rate instead. Stateless read-only edge call (max 32 KB, 60 RPM): accepts 'from_asset' ('to_asset' defaults to 'BTC_NATIVE'), supports '?demo=true' or L402 (20 sats), and returns HTTP 400 if invalid.

compare_crosschain_bridge_routes input schema
{
  "type": "object",
  "required": [
    "from_asset"
  ],
  "properties": {
    "amount": {
      "type": "number",
      "description": "Input asset amount to quote; defaults to 100.0 when omitted."
    },
    "to_asset": {
      "enum": [
        "BTC_NATIVE",
        "USDC_SOL",
        "USDC_BASE",
        "ETH_BASE"
      ],
      "type": "string",
      "description": "Destination chain asset identifier; defaults to 'BTC_NATIVE' when omitted."
    },
    "from_asset": {
      "enum": [
        "USDC_SOL",
        "USDC_BASE",
        "ETH_BASE",
        "SOL_NATIVE",
        "BTC_NATIVE"
      ],
      "type": "string",
      "description": "Origin chain asset identifier to bridge from."
    }
  }
}
compare_crosschain_bridge_routes output schema
{
  "type": "object",
  "required": [
    "best_route",
    "fee_bps",
    "estimated_output_sats",
    "kyc_required"
  ],
  "properties": {
    "fee_bps": {
      "type": "integer",
      "description": "Total protocol and slip fee in basis points."
    },
    "best_route": {
      "type": "string",
      "description": "Optimal non-KYC bridge protocol selected (e.g. 'THORCHAIN_NATIVE_SWAP')."
    },
    "kyc_required": {
      "type": "boolean",
      "description": "Always false; only non-custodial permissionless routes are returned."
    },
    "estimated_output_sats": {
      "type": "integer",
      "description": "Net settled output denominated in Bitcoin satoshis."
    }
  },
  "description": "Deterministic response schema for compare_crosschain_bridge_routes."
}
compare_crosschain_bridge_routes annotations
{
  "title": "Non-KYC Cross-Chain Bridge Route & Settlement Fee Comparator",
  "readOnlyHint": true,
  "openWorldHint": false,
  "idempotentHint": true,
  "destructiveHint": false
}

Prompts

Not advertised

No prompt definitions available.

Resources

Not advertised

No resource definitions available.

90-day uptime

A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.

100% (14 of 14 checks answered)

  1. 2026-11-24: 2 of 2 checks answered
  2. 2026-11-25: 4 of 4 checks answered
  3. 2026-11-26: 4 of 4 checks answered
  4. 2026-11-27: 4 of 4 checks answered

30-day availability

Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.

Successful checks
1 of 1 (100%)
Average latency
647 ms
95th percentile latency
647 ms

Maintenance history

Public check and source-refresh events. Editorial and ownership records remain private.

  • · probe · passed · 647 ms · metadata changed · 15 tool(s)

Connect from your client

Each snippet registers the same endpoint; pick the client you use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Claude Code

Run this once in a terminal. It registers the remote server. Use --scope project to write .mcp.json for the repo.
Claude Code configuration
claude mcp add --transport http diogenes-web3-defi-402-security-mcp https://diogenesgateway.com/mcp/web3-security

Codex

Run this once. Codex stores MCP servers in ~/.codex/config.toml (or .codex/config.toml in a trusted project).
Codex configuration
codex mcp add diogenes-web3-defi-402-security-mcp --url https://diogenesgateway.com/mcp/web3-security

Cursor

Merge this server into .cursor/mcp.json in your project, then enable diogenes-web3-defi-402-security-mcp in your MCP settings.
Cursor configuration
{
  "mcpServers": {
    "diogenes-web3-defi-402-security-mcp": {
      "url": "https://diogenesgateway.com/mcp/web3-security"
    }
  }
}

Cline

Merge this into cline_mcp_settings.json (Cline → MCP Servers → Configure).
Cline configuration
{
  "mcpServers": {
    "diogenes-web3-defi-402-security-mcp": {
      "type": "streamableHttp",
      "url": "https://diogenesgateway.com/mcp/web3-security",
      "disabled": false
    }
  }
}

VS Code

Merge this server into .vscode/mcp.json. Use MCP: List Servers to start diogenes-web3-defi-402-security-mcp and inspect its tools.
VS Code configuration
{
  "servers": {
    "diogenes-web3-defi-402-security-mcp": {
      "type": "http",
      "url": "https://diogenesgateway.com/mcp/web3-security"
    }
  }
}

Gemini CLI

Run this once. It writes .gemini/settings.json in the current project; pass --scope user for ~/.gemini/settings.json.
Gemini CLI configuration
gemini mcp add --transport http diogenes-web3-defi-402-security-mcp https://diogenesgateway.com/mcp/web3-security

Claude Desktop

Open Claude Settings > Connectors > Add custom connector, enter this server URL and enable it for the conversation. This is a manual remote-connector handoff, not a desktop JSON configuration.
Claude Desktop configuration
https://diogenesgateway.com/mcp/web3-security

Windsurf

Merge this into ~/.codeium/windsurf/mcp_config.json, then refresh MCP in Cascade. Windsurf remote servers use serverUrl, not url.
Windsurf configuration
{
  "mcpServers": {
    "diogenes-web3-defi-402-security-mcp": {
      "serverUrl": "https://diogenesgateway.com/mcp/web3-security"
    }
  }
}

Let your agent find its tools

Find servers like Diogenes Web3, DeFi & 402 Security MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.