mcpField
P
phantom-wallet-mcp

phantom-wallet-mcp

github.com/sendaifunOther130109 installsUpdated 13w ago
Repository

About phantom-wallet-mcp

phantom-wallet-mcp is a skill for interacting with a user's Phantom wallet through the phantom MCP server. It supports address lookup, signing, transfers, and Solana token swap quotes across the networks listed in its README.

Key features

  1. 01Retrieve wallet addresses
  2. 02Sign transactions and messages
  3. 03Transfer SOL and SPL tokens
  4. 04Fetch Solana swap quotes
  5. 05Support listed networks across four chains

Use cases

  1. 01Retrieve addresses for a connected wallet
  2. 02Sign a transaction or authentication message
  3. 03Send SOL or SPL tokens
  4. 04Request a Solana token swap quote

MCP support

Connects to the phantom MCP server, which exposes wallet address, signing, transfer, and token quote operations to MCP clients. The server uses stdio transport and requires a PHANTOM_APP_ID.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/sendaifun/skills --skill phantom-wallet-mcp

After installing, type/phantom-wallet-mcpin Claude Code to confirm it loaded.

Details

From the project README

Phantom Wallet MCP

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

Available Tools

ToolDescription
get_wallet_addressesGet blockchain addresses (Solana, Ethereum, Bitcoin, Sui) for the connected wallet
sign_transactionSign a transaction (base64url for Solana, RLP hex for Ethereum)
transfer_tokensTransfer SOL or SPL tokens on Solana — builds, signs, and sends the transaction
buy_tokenFetch Solana swap quotes from Phantom API; optionally sign and send
sign_messageSign 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

ChainNetworks
Solanamainnet, devnet, testnet
EthereumMainnet, Sepolia, Polygon, Base, Arbitrum
BitcoinMainnet
SuiMainnet, 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)

Comments

Markdown supported