# PayStage MCP server

> Allows an AI client to perform payment preflight checks, monitor outstanding authorizations, and evaluate HIP-3 trade orders against local policies.

- Repository: https://github.com/base-buzz/paystage
- Page: https://hostedmcp.org/servers/base-buzz/mcp
- Transport: stdio
- Stars: 5
- License: MIT
- Latest version: 0.3.2

## Install

### Claude Code

```sh
claude mcp add mcp -- npx -y @paystage/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@paystage/mcp"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@paystage/mcp"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@paystage/mcp"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@paystage/mcp"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp -- npx -y @paystage/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@paystage/mcp"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp npx -- -y @paystage/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@paystage/mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PAYSTAGE_POLICY_PATH` | no | no | Path to policy.json spending rules |
| `PAYSTAGE_RPC_URL` | no | no | Base RPC URL override |

## FAQ

### Does the trade preflight tool place actual trades?

No, the tool acts only as a local policy gate and does not place orders or provide trade recommendations.

### How can I verify a decision receipt?

You can use the paystage-verify command to check a signed receipt against a published key to ensure it hasn't been altered.
