Skip to main content
The Phantom MCP Server (@phantom/mcp-server) is a Phantom wallet product for users who interact through AI agents. Just like the mobile wallet and browser extension serve users who click and tap, the MCP server serves users who interact through natural language with their AI assistant. When someone uses Claude, Cursor, or another AI agent and asks “send 10 USDC to my friend” or “swap some SOL for ETH,” Phantom’s MCP server is the wallet the agent uses to act on their behalf.
The Phantom MCP Server is currently in preview and may change at any time. Always use a separate Phantom account for testing. Never use accounts containing significant assets.

What are you here for?

Set up the MCP server

Add the Phantom MCP Server to Claude Desktop, Cursor, or Claude Code and get a wallet for your AI agent.

Quick install

You need an App ID from Phantom Portal before getting started. Then add this config to your AI client:
{
  "mcpServers": {
    "phantom": {
      "command": "npx",
      "args": ["-y", "@phantom/mcp-server"],
      "env": {
        "PHANTOM_APP_ID": "your_app_id_from_portal"
      }
    }
  }
}
See the setup guide for step-by-step instructions for Claude Desktop, Cursor, and Claude Code.

What agents can do

The MCP server gives agents 25 tools across wallet operations, swaps, portfolio rebalancing, and Hyperliquid perpetual trading. See the setup and reference guide for full parameter documentation. Wallet operations
ToolDescription
get_connection_statusCheck if the wallet session is active
get_wallet_addressesGet addresses for Solana, Ethereum, Bitcoin, and Sui
get_token_balancesView token holdings with live USD pricing
transfer_tokensTransfer SOL, ETH, and SPL/ERC-20 tokens
send_solana_transactionSign and broadcast Solana transactions
send_evm_transactionSign and broadcast EVM transactions
sign_solana_messageSign UTF-8 messages on Solana
sign_evm_personal_messageEIP-191 personal message signing
sign_evm_typed_dataEIP-712 structured data signing
phantom_loginRe-authenticate, switch accounts, or refresh a session
pay_api_accessPay for daily API access when quota is consumed
Swaps and portfolio
ToolDescription
buy_tokenSwap tokens via Phantom routing (Solana, EVM, cross-chain)
portfolio_rebalanceAnalyze and rebalance portfolio allocation via token swaps
Hyperliquid perpetual trading
ToolDescription
deposit_to_hyperliquidBridge tokens into Hyperliquid as USDC
transfer_spot_to_perpsMove USDC from spot to perps account
withdraw_from_perpsMove USDC from perps back to spot
get_perp_accountGet perps account balance and withdrawable amount
get_perp_marketsList markets with prices, funding rates, and leverage limits
get_perp_positionsGet open positions with PnL and liquidation prices
get_perp_ordersGet open orders (limit, take-profit, stop-loss)
get_perp_trade_historyGet historical perpetual trades
open_perp_positionOpen long or short with market or limit orders
close_perp_positionClose full or partial perpetual positions
cancel_perp_orderCancel an open perpetual order
update_perp_leverageUpdate leverage and margin type for a market

Supported clients

ClientHow to connect
Claude DesktopAdd to claude_desktop_config.json
CursorAdd to ~/.cursor/mcp.json (or use the Phantom Cursor plugin)
Claude Codeclaude mcp add phantom -- npx -y @phantom/mcp-server

Phantom Connect SDKs

Build apps with embedded wallets and social login for traditional user flows.

Phantom Connect SDK MCP server

Give your AI coding assistant access to Phantom developer documentation.