Skip to main content
Glama
README.md
# PSST

**Private Solana transfers, straight from Claude.**

PSST is an MCP server for Claude. Ask Claude to send SOL or any SPL token privately: PSST moves it through Solana Privacy Rings, and the amount and the token are encrypted on-chain.

## Install

```bash
claude mcp add psst -- npx -y psst-mcp
```

That's it. No API key to create. Restart Claude Code and ask: *"Show my PSST wallet."*

Requires Node.js 20+.

## Tools

| Tool | What it does |
| --- | --- |
| `psst_wallet` | Shows your public Solana address (fund it with SOL), the network, and where your keys live. |
| `psst_register` | Registers your wallet in the Privacy Rings registry so it can receive private transfers. One time. |
| `psst_shield` | Moves SOL or an SPL token from your public wallet into your private balance. |
| `psst_balance` | Shows your private balances. |
| `psst_send` | Sends privately from your private balance to any registered Solana address. |
| `psst_withdraw` | Moves funds from your private balance back to a public address. |
| `psst_merge` | Merges many small private notes into one. |
| `psst_history` | Lists your recent private transactions. |

Example: *"Shield 0.5 SOL, then send 0.2 SOL privately to 7xKX…"*

## Your keys never leave your machine

- On first run, PSST creates a fresh key in `~/.psst/<network>/owner.seed` (file mode 600).
- The key signs transactions locally. It is never sent to Claude, to Helius, or to anyone.
- Your private wallet state is saved locally in an encrypted snapshot.
- Want to use an existing wallet? Point `PSST_KEYFILE` to a Solana CLI keypair JSON.

Back up `~/.psst`: lose it and you lose access to your private balance.

## What is encrypted on-chain

| | On-chain |
| --- | --- |
| Amount of a private send | **Encrypted** |
| Token of a private send | **Encrypted** |
| Sender and recipient addresses | Visible |
| Shield (deposit) and withdraw | Visible, like any public transfer |

## Configuration

All optional: by default PSST talks to Solana mainnet through the PSST proxy. Bring your own Helius key for your own rate limits. Set them as environment variables, for example:

```bash
claude mcp add psst -e HELIUS_API_KEY=your_key -- npx -y psst-mcp
```

| Variable | Default | Purpose |
| --- | --- | --- |
| `HELIUS_API_KEY` | none | Your own Helius key (free at [dashboard.helius.dev](https://dashboard.helius.dev)). |
| `PSST_PROXY_URL` | PSST proxy | Helius proxy that keeps the key server-side. Used on mainnet when no key is set. |
| `PSST_NETWORK` | `mainnet` | `mainnet` or `devnet`. |
| `PSST_KEYFILE` | none | Use an existing Solana CLI keypair instead of the generated one. |
| `PSST_HOME` | `~/.psst/<network>` | Where keys and the wallet snapshot are stored. |
| `PSST_RPC_URL` | Helius | Custom Solana RPC. |
| `PSST_WS_URL` | derived | Custom websocket endpoint. |
| `PSST_INDEXER_URL`, `PSST_PROVER_URL` | Helius | Custom Privacy Rings services. |

## Built on

- [Solana Privacy Rings](https://www.npmjs.com/package/@heliuslabs/spr) (`@heliuslabs/spr`)
- [Model Context Protocol](https://modelcontextprotocol.io) SDK
- [`@solana/kit`](https://www.npmjs.com/package/@solana/kit)

## License

MIT. Not affiliated with Helius or Anthropic.