phantom-wallet-mcp
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePhantom Wallet MCP
Phantom Wallet MCP
Use the MCP server to interact with the user's Phantom wallet directly.
phantom通过 MCP服务器直接与用户的Phantom钱包进行交互。
phantomAvailable Tools
可用工具
| Tool | Description |
|---|---|
| Get blockchain addresses (Solana, Ethereum, Bitcoin, Sui) for the connected wallet |
| Sign a transaction (base64url for Solana, RLP hex for Ethereum) |
| Transfer SOL or SPL tokens on Solana — builds, signs, and sends the transaction |
| Fetch Solana swap quotes from Phantom API; optionally sign and send |
| Sign a UTF-8 message with automatic chain-specific routing |
| 工具 | 描述 |
|---|---|
| 获取已连接钱包的区块链地址(Solana、Ethereum、Bitcoin、Sui) |
| 签署交易(Solana使用base64url格式,Ethereum使用RLP十六进制格式) |
| 在Solana网络上转账SOL或SPL代币——负责交易的构建、签署和发送 |
| 从Phantom API获取Solana代币兑换报价;可选择签署并发送交易 |
| 签署UTF-8格式消息,支持自动按链路由 |
Setup
设置步骤
The MCP server requires a environment variable from Phantom Portal. On first use, it opens a browser for OAuth authentication via Google or Apple login.
phantomPHANTOM_APP_IDSupported Networks
支持的网络
| Chain | Networks |
|---|---|
| Solana | mainnet, devnet, testnet |
| Ethereum | Mainnet, Sepolia, Polygon, Base, Arbitrum |
| Bitcoin | Mainnet |
| Sui | Mainnet, Testnet |
Networks use CAIP-2 format (e.g., , ).
solana:mainneteip155:1| 区块链 | 网络 |
|---|---|
| Solana | mainnet, devnet, testnet |
| Ethereum | Mainnet, Sepolia, Polygon, Base, Arbitrum |
| Bitcoin | Mainnet |
| Sui | Mainnet, Testnet |
网络采用CAIP-2格式(例如:、)。
solana:mainneteip155:1Examples
示例
Get wallet addresses
获取钱包地址
Ask the MCP to retrieve the user's wallet addresses, then use them for transactions.
phantom请求 MCP获取用户的钱包地址,随后可用于交易操作。
phantomTransfer SOL
转账SOL
Use to send SOL to a recipient address. The MCP handles transaction building, signing, and submission.
transfer_tokens使用向接收地址发送SOL。MCP会处理交易的构建、签署和提交。
transfer_tokensSign a message
签署消息
Use for wallet verification or authentication flows. The MCP routes to the correct chain based on the network parameter.
sign_message使用实现钱包验证或认证流程。MCP会根据network参数路由到对应的区块链网络。
sign_messageImportant Notes
重要说明
- Sessions persist locally in
~/.phantom-mcp/session.json - This is preview software — use a separate wallet with minimal funds for testing
- The MCP server runs via stdio transport (launched by )
npx -y @phantom/mcp-server
- 会话信息本地存储在中
~/.phantom-mcp/session.json - 本软件为预览版本——测试时请使用独立钱包,且仅存入少量资金
- MCP服务器通过stdio传输运行(可通过启动)
npx -y @phantom/mcp-server