About Snap Protocol
Snap Protocol is an MCP server for private payments on Solana, with tools to list pools, deposit, withdraw, and estimate fees. It uses stdio transport and includes helpers for compatibility with existing local flows.
Key features
- 01List SNAP pools
- 02Deposit and withdraw funds
- 03Estimate transaction fees
- 04Provide helpers for local-flow compatibility
Use cases
- 01Check available SNAP pools
- 02Initiate deposits or withdrawals through MCP
- 03Estimate fees before a transaction
MCP support
Exposes pool listing, deposit, withdrawal, and fee-estimation tools to MCP clients over stdio, alongside compatibility helpers.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y snap-mcp-serverSNAP_RPC_URLSolana RPC endpoint URLSNAP_POOL_ADDRESSDefault shielded pool addressSNAP_RELAYER_URLOptional relayer URL for private withdrawalsLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMESNAP MCP Server
MCP server for SNAP private payments. It targets @modelcontextprotocol/sdk 1.28.0 and uses stdio transport.
Tools
snap_list_poolssnap_depositsnap_withdrawsnap_estimate_fee
The server also keeps snap_withdraw_private, snap_pool_info, and snap_balance as compatibility helpers for existing local flows.
Claude Code Config
{
"mcpServers": {
"snap": {
"command": "npx",
"args": ["tsx", "/path/to/agent-privacy-pool/integrations/mcp/snap-mcp-server.ts"],
"env": {
"SNAP_RPC_URL": "https://api.mainnet-beta.solana.com",
"SNAP_POOL_ADDRESS": "B8SyffZKt8LABKogWjH9rZcjY5PV2hyYRCbTxxbcrpFf",
"SNAP_RELAYER_URL": "https://your-relayer.example"
}
}
}
}
For deterministic local transport tests, set SNAP_MCP_STUB_MODE=1.
Environment
Start from integrations/mcp/.env.example:
SNAP_RPC_URLSNAP_POOL_ADDRESSSNAP_RELAYER_URLSNAP_MCP_NOTESNAP_MCP_VIEWING_KEY_JSONSNAP_MCP_STUB_MODE
SNAP_MCP_NOTE should be a serialized note returned by SNAPClient.serializeNote(...).
Mainnet Pools
0.1 SOL:B8SyffZKt8LABKogWjH9rZcjY5PV2hyYRCbTxxbcrpFf1 USDC:5LeuHrPBgHNhgbCy996MEjcsBk5gNHhVj6AiuuCHZ8od10 USDC:ECuHf8kgiWfmL3Q6id4WGBQWvuukhzqvF5vsxuPAKZBv
Run
cd /path/to/agent-privacy-pool
set -a
source integrations/mcp/.env.example
set +a
npx tsx integrations/mcp/snap-mcp-server.ts
Smoke test:
npx mocha --require tsx integrations/tests/mcp-stdio.test.ts
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.