Skip to main content
Glama
base-buzz

PayStage MCP Server

by base-buzz

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 is the umbrella MCP server. It exposes the PayStage tools over stdio and reads a local policy file.

Related MCP server: x402-triage-mcp

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.

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

Development

This is a monorepo.

pnpm install
pnpm build
pnpm test
pnpm lint

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables no-payment triage of x402 payment surfaces, 402 Index health checks, and paid review handoff for authorized inspection.
    3
    15 npm
    1
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Deterministically evaluates whether a proposed agent spend action matches a supplied policy, returning ELIGIBLE, DENY, or STEP_UP with stable reason codes. Provides local policy evidence only, not payment authorization.
    1
    28 npm
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Enables agents to request payment authorization against signed human mandates, enforcing policy-as-code limits and returning a decision (authorize, challenge, or deny) without moving funds.
    1
    1
    Apache 2.0