PluginWorld
Pa

paystage

MCP

Evaluates proposed x402 payments against a local policy and returns pay, review, or do_not_pay, while also listing and evaluating outstanding authorizations to flag double-pay or limbo risk.

@base-buzz · MIT License · updated today

SECURITY

B

SCORE

68

STARS

▲ 0

PLUG IN

git clone https://github.com/base-buzz/paystage.git

See the README to configure this MCP server

README

PayStage

Safety tools for AI agent payments (x402 + MCP).

PayStage sits in front of an agent's wallet and answers one question before money moves: should this payment happen? Tools return pay, review, or do_not_pay.

Quick start

npx -y @paystage/mcp

@paystage/mcp 0.2.0 is the umbrella MCP server (4 tools including evaluate_hip3_trade). It exposes the PayStage tools over stdio and reads a local policy file.

Listed on

Configure

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "paystage": {
      "command": "npx",
      "args": ["-y", "@paystage/mcp"],
      "env": {
        "PAYSTAGE_POLICY_PATH": "/absolute/path/to/policy.json",
        "PAYSTAGE_RPC_URL": "https://mainnet.base.org"
      }
    }
  }
}

Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "paystage": {
      "command": "npx",
      "args": ["-y", "@paystage/mcp"],
      "env": {
        "PAYSTAGE_POLICY_PATH": "/absolute/path/to/policy.json",
        "PAYSTAGE_RPC_URL": "https://mainnet.base.org"
      }
    }
  }
}
  • PAYSTAGE_POLICY_PATH (required): path to your local policy.json.
  • PAYSTAGE_RPC_URL (optional): RPC endpoint used by on-chain checks. Defaults to a public Base RPC.

Tools

Tool Status What it does
evaluate_mcp_payment Available now Evaluates a proposed x402 payment against the local policy and returns pay, review, or do_not_pay.
list_outstanding_auths Available now Lists payments that are authorized but not yet settled.
evaluate_outstanding_auths Available now Evaluates outstanding authorizations and flags double-pay or limbo risk.
evaluate_hip3_trade Available now Evaluates a proposed HIP-3 / trade.xyz order against a local TradePolicy (allow | review | do_not_trade). Not financial advice — local policy gate only.

Packages

Package Role Links
@paystage/mcp Umbrella MCP server (start here) npm
@paystage/preflight MCP payment preflight npm
@paystage/auth-watch Outstanding-auth watch npm
@paystage/policy Policy parsing and evaluation npm
@paystage/trade-preflight HIP-3 / trade.xyz trade preflight npm

Links

Development

This is a monorepo.

pnpm install
pnpm build
pnpm test
pnpm lint

License

MIT

SIMILAR PLUGINS