AGENT SKILL

phantom-wallet-mcp

Execute wallet operations through the Phantom MCP server. Use when the user wants to interact with their Phantom wallet directly — get addresses, transfer SOL or SPL tokens, buy/swap tokens, sign transactions, and sign messages across Solana, Ethereum, Bitcoin, and Sui. Requires the @phantom/mcp-server to be configured as an MCP server.

License 许可
MIT
最近更新
2026-10-08
Stars
★ 0
Forks
0

01 前言 Front Matter

name
phantom-wallet-mcp
license
MIT
metadata
{ "author": "phantom", "version": "1.0", "homepage": "https://github.com/phantom/phantom-connect-cursor-plugin" }
description
Execute wallet operations through the Phantom MCP server. Use when the user wants to interact with their Phantom wallet directly — get addresses, transfer SOL or SPL tokens, buy/swap tokens, sign transactions, and sign messages across Solana, Ethereum, Bitcoin, and Sui. Requires the @phantom/mcp-server to be configured as an MCP server.

03 SKILL.md 正文

Phantom Wallet MCP

Use the phantom MCP server to interact with the user's Phantom wallet directly — no SDK integration code needed.

Setup

Add the Phantom MCP server to your MCP configuration:

{
  "mcpServers": {
    "phantom": {
      "command": "npx",
      "args": ["-y", "@phantom/mcp-server"],
      "env": {
        "PHANTOM_APP_ID": "<your-app-id>"
      }
    }
  }
}

Get your PHANTOM_APP_ID from Phantom Portal. On first use, the server opens a browser for OAuth authentication via Google or Apple login.

Available Tools

Tool Description
get_wallet_addresses Get blockchain addresses (Solana, Ethereum, Bitcoin, Sui) for the connected wallet
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_transaction Sign a transaction (base64url for Solana, RLP hex for Ethereum)
sign_message Sign a UTF-8 message with automatic chain-specific routing

Supported Networks

Chain Networks CAIP-2 Examples
Solana mainnet, devnet, testnet solana:mainnet, solana:devnet
Ethereum Mainnet, Sepolia, Polygon, Base, Arbitrum eip155:1, eip155:137
Bitcoin Mainnet bip122:000000000019d6689c085ae165831e93
Sui Mainnet, Testnet sui:mainnet

Examples

Get wallet addresses

Retrieve the user's wallet addresses across all supported chains:

Use the phantom MCP's get_wallet_addresses tool to list the user's addresses.

Returns addresses for each connected chain (Solana, Ethereum, Bitcoin, Sui).

Transfer SOL

Send SOL to a recipient address:

Use the phantom MCP's transfer_tokens tool:
- token: "SOL"
- recipientAddress: "<recipient>"
- amount: "0.1"
- network: "solana:mainnet"

The MCP handles transaction building, signing, and submission.

Transfer SPL tokens

Send any SPL token by its mint address:

Use the phantom MCP's transfer_tokens tool:
- token: "<token-mint-address>"
- recipientAddress: "<recipient>"
- amount: "10"
- network: "solana:mainnet"

Buy / swap tokens

Get a swap quote and optionally execute it:

Use the phantom MCP's buy_token tool:
- tokenMint: "<token-mint-to-buy>"
- amount: "1000000"  (in lamports for SOL input)
- network: "solana:mainnet"

Sign a message

Sign a UTF-8 message for verification or authentication:

Use the phantom MCP's sign_message tool:
- message: "Hello, verifying ownership"
- network: "solana:mainnet"

The MCP routes to the correct chain-specific signing based on the network parameter.

Important Notes

  • Preview software — use a separate wallet with minimal funds for testing
  • Sessions persist locally in ~/.phantom-mcp/session.json
  • The MCP server runs via stdio transport (launched by npx -y @phantom/mcp-server)
  • Token transfers on Solana support both native SOL and any SPL token
  • Swap quotes come from Phantom's API and include fee and slippage info

04 同仓库更多 Skills

Solizardking
Solizardking/train2earn

testing

For testing with Light Protocol programs and clients on localnet, devnet, and mainnet validation.

★ 0
Solizardking
Solizardking/train2earn

qedgen

Formally verify programs by writing Lean 4 proofs. Trigger this skill whenever the user wants to formally verify code, generate Lean 4 proofs, prove properties about algorithms or smart contracts, verify invariants, convert program logic into formal specifications, or anything involving Lean 4 and formal verification. Also trigger when the user mentions "qedgen", "lean proof", "formal proof", "verify my code", "prove correctness", "formal verification", or wants mathematical guarantees about their implementation.

★ 0
Solizardking
Solizardking/train2earn

solana-dev

Use when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "deploy to devnet", or "explain Solana concepts" (rent, accounts, PDAs, CPIs, etc.). Also use for quick on-chain lookups via public RPC + curl — "what's the balance of <wallet>", "look up transaction <sig>", "token balance for <account>", "check this address on mainnet/devnet". End-to-end Solana development playbook covering wallet connection, Anchor/Pinocchio programs, Codama client generation, LiteSVM/Mollusk/Surfpool testing, security checklists, and JSON-RPC curl lookups against public clusters. Integrates with the Solana MCP server for live documentation search. Prefers framework-kit (@solana/client + @solana/react-hooks) for UI, wallet-standard-first connection (incl. ConnectorKit), @solana/kit for client/RPC code, and @solana/web3-compat for legacy boundaries.

★ 0
Solizardking
Solizardking/train2earn

solana-common-errors

Diagnose and fix common Solana development errors — GLIBC mismatches, Anchor version conflicts, cargo build-sbf / platform-tools failures, LiteSVM issues, edition2024 crate pins, RPC airdrops, and Anchor 0.29→0.32 migrations. Use when builds fail, Anchor CLI won't install, or CI breaks on Debian/Ubuntu.

★ 0
Solizardking
Solizardking/train2earn

skill-creator

Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.

★ 0
Solizardking
Solizardking/train2earn

clawd-code-skill

Control Clawd Code via MCP protocol. Trigger with "plan" to write a precise execution plan then feed it to Clawd Code. Also supports direct commands, persistent sessions, agent teams, and advanced tool control.

★ 0