‹ 首页

phantom-wallet-mcp

@sendaifun · 收录于 1 周前

Execute wallet operations through the Phantom MCP server — get addresses, sign transactions, transfer tokens, buy tokens, and sign messages across Solana, Ethereum, Bitcoin, and Sui

适合你,如果你需要在应用中集成多链钱包功能

/ 下载安装
phantom-wallet-mcp.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add sendaifun/skills/phantom-wallet-mcp
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- sendaifun/skills/phantom-wallet-mcp
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify sendaifun/skills/phantom-wallet-mcp
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
116GitHub stars
~422上下文体积 · 单文件
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · Apache-2.0 · 064d4de

Phantom Wallet MCP

Use the phantom MCP server to interact with the user's Phantom wallet directly.

Available Tools

| Tool | Description | |------|-------------| | get_wallet_addresses | Get blockchain addresses (Solana, Ethereum, Bitcoin, Sui) for the connected wallet | | sign_transaction | Sign a transaction (base64url for Solana, RLP hex for Ethereum) | | transfer_tokens | Transfer SOL or SPL tokens on Solana — builds, signs, and sends the transaction | | buy_token | Fetch Solana swap quotes from Phantom API; optionally sign and send | | sign_message | Sign a UTF-8 message with automatic chain-specific routing |

Setup

The phantom MCP server requires a PHANTOM_APP_ID environment variable from Phantom Portal. On first use, it opens a browser for OAuth authentication via Google or Apple login.

Supported 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:mainnet, eip155:1).

Examples
Get wallet addresses

Ask the phantom MCP to retrieve the user's wallet addresses, then use them for transactions.

Transfer SOL

Use transfer_tokens to send SOL to a recipient address. The MCP handles transaction building, signing, and submission.

Sign a message

Use sign_message for wallet verification or authentication flows. The MCP routes to the correct chain based on the network parameter.

Important 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)
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。