🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

frisk-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frisk-mcp

MCP server for Frisk: screen an x402 payment counterparty before an agent pays.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

frisk-mcp

An MCP server for Frisk: screen the counterparty of an x402 payment before an agent pays it.

It exposes one tool, screen_payment, which runs Frisk's deterministic checks — address sanity, dynamic-payTo comparison, transport safety, and your own spending policy — and returns allow / review / block with reasons.

Where this belongs, and where it does not

An MCP tool runs when a model decides to call it. A payment check that the model can skip is a weaker guarantee than the same check on the code path that signs the payment.

So:

  • Use the libraryfrisk-screen — where the money actually moves. It is MIT, dependency-free, and runs locally.
  • Use this server for inspection ("is this address safe to pay?"), and for agents that cannot import a library.

Frisk is advisory in both cases: it returns a verdict and your code decides. It never holds funds and cannot stop a payment by itself.

Install

npx frisk-mcp

In any MCP client's server configuration:

{
  "mcpServers": {
    "frisk": {
      "command": "npx",
      "args": ["-y", "frisk-mcp"]
    }
  }
}

No API key, no account, no network call: with no configuration the server screens entirely on your machine.

Hosted mode (optional)

Set FRISK_API_KEY to have the same tool answered by the hosted service, which adds reputation-graph signals and returns higher-confidence verdicts:

{
  "mcpServers": {
    "frisk": {
      "command": "npx",
      "args": ["-y", "frisk-mcp"],
      "env": { "FRISK_API_KEY": "..." }
    }
  }
}

The hosted tier is in early access — email support@tryfrisk.dev. Everything above works without it.

variabledefaultmeaning
FRISK_API_KEYunsetEnables hosted screening. Unset means fully offline.
FRISK_BASE_URLhttps://api.tryfrisk.devOverride the hosted endpoint.

The tool

screen_payment

argumenttypenotes
counterpartystring, requiredThe address the agent intends to pay.
endpointstringURL that quoted the payment; checked for plaintext transport.
amountnumberAmount about to be paid.
assetstringAsset symbol, e.g. USDC.
observedPayTostringThe payTo the endpoint actually returned. If it differs from counterparty, that is the dynamic-payTo swap.
strictnessnumber 0–10 permissive, 1 paranoid. Default 0.3.
maxPerCallnumberSpending ceiling for one call.
allowedAssetsstring[]Assets the agent may pay in.

Returns verdict, trustScore, confidence, reasons, policyHits, source (lite or hosted), and allowed.

What it does not do

It does not detect Sybil clusters, and offline it has no view of an address's history — lite screening always reports "low" confidence for that reason. It also cannot repair the protocol underneath a payment: replay, settlement races, and facilitator trust live in x402 itself, not in the request being signed. Those limits are discussed in Five ways an x402 payment can go wrong.

License

MIT

Keywords

mcp

FAQs

Package last updated on 30 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts