Unfret

v0.2.0
net.unfret/mcp Checked 2 days ago Published 15 days ago

Checks a store, marketplace seller or listing for scam signals before an agent buys, paid per check

An MCP server that lets AI shopping agents ask Unfret whether a store, a marketplace seller or a product listing shows signs of scams, fake sellers, dropshipping of generic goods, fake reviews or dark patterns, before they buy. MIT licensed. Each check is paid per call over x402 from the agent's own wallet: on Solana in USDC or wSOL, or on Base in USDC (see "Paying on Base" below). Prices are in US dollars (quick $0.01, deep $0.20; get_pricing has the live prices): USDC pays them exactly, wSOL at Unfret's SOL/USD quote.

Summary extracted from the README.

unfret-mcp

An MCP server that lets AI shopping agents ask Unfret whether a store, a marketplace seller or a product listing shows signs of scams, fake sellers, dropshipping of generic goods, fake reviews or dark patterns, before they buy. MIT licensed.

Each check is paid per call over x402 from the agent's own wallet: on Solana in USDC or wSOL, or on Base in USDC (see "Paying on Base" below). Prices are in US dollars (quick $0.01, deep $0.20; get_pricing has the live prices): USDC pays them exactly, wSOL at Unfret's SOL/USD quote. By default the server pays in USDC when Unfret offers it and the wallet holds enough, otherwise in wSOL (UNFRET_MCP_PAY_WITH=SOL to always use SOL); if the wallet holds plain SOL, it wraps what it needs first. The spend caps are in dollars whatever the currency: the server values a wSOL charge with its own Pyth SOL/USD reading (mainnet, fully verified, ≤2 min old, confidence ≤2%) rather than Unfret's word, and refuses SOL when it has no such price. Unfret pays the network fee, so the agent pays only the price. The server never holds anyone else's funds.

No wallet? Use an Unfret pass. Set UNFRET_PASS to a pass (ufk_…) and checks are paid from it instead: quick checks are free, deep checks use one of the pass's checks, and no keypair is needed or read. A developer pass comes with 20 free deep checks, for trying Unfret out (one per network a day): unfret.net/developers.

Hosted (remote) server. For clients that can't run a local process, Unfret serves the same checks over streamable HTTP at https://unfret.net/mcp, authenticated with a pass (Authorization: Bearer ufk_…); it never pays from a wallet. Tools there: check_store_quick (free, read-only), check_store_deep (uses one of the pass's checks), get_checks_left, get_pricing.

{"mcpServers": {"unfret": {"type": "http", "url": "https://unfret.net/mcp",
  "headers": {"Authorization": "Bearer ufk_…"}}}}

Every tool, here and there, has a title and explicit hints: check_store (and the remote check_store_deep) is not read-only (it spends a payment or a check), not destructive, not idempotent and open-world (it reads a third-party page); the others are read-only.

Paying on Base. Set UNFRET_MCP_BASE_KEY to the agent's EVM private key (hex) and the server pays in USDC on Base: x402's exact scheme, an EIP-3009 transferWithAuthorization of exactly the offered amount to Unfret's payTo, signed with eth-account. Unfret's facilitator submits it and pays the gas, so the wallet needs only USDC, no ETH. The key is never logged, printed or put in an error message.

  • One network, as on Solana. UNFRET_MCP_BASE_NETWORK is base-mainnet (real USDC, for https://unfret.net) unless set to base-sepolia (test USDC, for https://dev.unfret.net). Only that network is paid: an offer on the other one is refused, and the error names the setting.
  • Which network. With only one wallet, that one. With a Solana keypair and a Base key, UNFRET_MCP_PREFER (solana by default, or base) is tried first; the other is used only if the preferred one can't be paid (not offered, or no affordable Solana option). A spend-cap refusal never falls back to the other network.
  • The dollar caps below apply to Base exactly as to Solana (USDC at face value).
Tool Input Output
check_store url, tier (quick $0.01 | deep $0.20), policy (strict | balanced | lenient), page_content (optional HTML) {action, risk_score, confidence, flags, …} plus the payment transaction
explain_flag flag_type A one-paragraph explanation for the end user
get_pricing — The current prices (free): tiers in dollars, live USDC and SOL amounts

Every result has status and ok: ok (a verdict), refunded (paid, but Unfret's analysis failed: the price is credited back to the paying wallet as Unfret credits), not_paid (refused before any money moved), unavailable (Unfret is paused or rate-limiting; retry later), pending or unknown (the payment may have been taken: don't pay again for that page; if it landed without a verdict Unfret credits its price to the paying wallet). A next_step says what to do whenever there is something to do.

action is allow, warn (ask your human first) or block, at thresholds set by the chosen policy. Flags are factual evidence, never a "scam" label. Send page_content for marketplaces such as Amazon, which block server-side fetches.

Configuration

Variable Default
UNFRET_PASS — An Unfret pass (ufk_…): pay checks from it instead of a wallet (the settings below are then unused)
UNFRET_MCP_KEYPAIR — Path to the agent's Solana CLI keypair JSON (or UNFRET_MCP_SECRET_KEY, base58); not needed with UNFRET_PASS or a Base key
UNFRET_MCP_BASE_KEY — The agent's EVM private key (hex), to pay USDC on Base
UNFRET_MCP_BASE_NETWORK base-mainnet base-sepolia to try it with test USDC against https://dev.unfret.net
UNFRET_MCP_PREFER solana base to try Base first when both wallets are set
UNFRET_MCP_NETWORK solana-mainnet solana-devnet to try it with test money against https://dev.unfret.net
UNFRET_MCP_RPC_URL the network's public RPC The public RPCs are rate-limited; use your own for anything busy
UNFRET_MCP_PAY_WITH USDC when offered and held, else SOL SOL to always pay in wSOL
UNFRET_MCP_MAX_PRICE_USD 0.25 Refuse any single check worth more than this many dollars
UNFRET_MCP_SESSION_CAP_USD 2.50 Refuse once the session has spent this many dollars
UNFRET_MCP_PRICE_RPC_URL mainnet's public RPC Where the agent reads Pyth SOL/USD to value wSOL payments
UNFRET_API_URL https://unfret.net

Install

Needs uv (Python 3.12 or newer) and a Solana wallet holding a little USDC or SOL, or an EVM wallet holding a little USDC on Base. Give the agent a wallet of its own with only what it may spend, never your main wallet: the caps above are the server's, the wallet balance is the real limit.

{"mcpServers": {"unfret": {"command": "uvx", "args": ["unfret-mcp"],
  "env": {"UNFRET_MCP_KEYPAIR": "~/.config/solana/agent.json"}}}}

To try it without real money, use devnet (free test SOL from solana airdrop, test USDC from faucet.circle.com):

{"mcpServers": {"unfret": {"command": "uvx", "args": ["unfret-mcp"],
  "env": {"UNFRET_MCP_KEYPAIR": "~/.config/solana/devnet-agent.json", "UNFRET_MCP_NETWORK": "solana-devnet",
          "UNFRET_API_URL": "https://dev.unfret.net"}}}}

With an EVM wallet holding USDC on Base:

{"mcpServers": {"unfret": {"command": "uvx", "args": ["unfret-mcp"], "env": {"UNFRET_MCP_BASE_KEY": "0x…"}}}}

To try it on Base Sepolia (test USDC from faucet.circle.com), against Unfret's test server:

{"mcpServers": {"unfret": {"command": "uvx", "args": ["unfret-mcp"],
  "env": {"UNFRET_MCP_BASE_KEY": "0x…", "UNFRET_MCP_BASE_NETWORK": "base-sepolia",
          "UNFRET_API_URL": "https://dev.unfret.net"}}}}

With a pass instead of a wallet:

{"mcpServers": {"unfret": {"command": "uvx", "args": ["unfret-mcp"], "env": {"UNFRET_PASS": "ufk_…"}}}}

Deep checks are synchronous today, so there is no polling tool yet.

Source: git.kroshtan.com/kroshtan/unfret_backend (mirror on GitHub). MIT licensed.