dflowprotocol/dflow_phantom-connect-skill · Archived

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.

First seen Mar 4, 2026

Installation

$ npx skills add dflowprotocol/dflow_phantom-connect-skill --skill phantom-wallet-mcp

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Also in this package

Other skills from dflowprotocol/dflow_phantom-connect-skill.

npx skills add dflowprotocol/dflow_phantom-connect-skill

Browse all from dflowprotocol/dflow_phantom-connect-skill

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 40
License LICENSE
Default branch main
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0
LicenseMIT
More metadata
author
phantom
version
1.0
homepage
https://github.com/phantom/phantom-agent-kit

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,659 B
  • docs SUMMARY.md 366 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 35 installs

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 PHANTOMAPPID from Phantom Portal. On first use, the server opens a browser for OAuth authentication via Google or Apple login.

Available Tools

Tool Description
getwalletaddresses 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