repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | name: phantom-wallet-mcp |
| #3 | description: > |
| #4 | Execute wallet operations through the Phantom MCP server. Use when the user |
| #5 | wants to interact with their Phantom wallet directly — get addresses, transfer |
| #6 | SOL or SPL tokens, buy/swap tokens, sign transactions, and sign messages across |
| #7 | Solana, Ethereum, Bitcoin, and Sui. Requires the @phantom/mcp-server to be |
| #8 | configured as an MCP server. |
| #9 | license: MIT |
| #10 | metadata: |
| #11 | author: phantom |
| #12 | version: "1.0" |
| #13 | homepage: https://github.com/phantom/phantom-connect-cursor-plugin |
| #14 | --- |
| #15 | |
| #16 | # Phantom Wallet MCP |
| #17 | |
| #18 | Use the `phantom` MCP server to interact with the user's Phantom wallet directly — no SDK integration code needed. |
| #19 | |
| #20 | ## Setup |
| #21 | |
| #22 | Add the Phantom MCP server to your MCP configuration: |
| #23 | |
| #24 | ```json |
| #25 | { |
| #26 | "mcpServers": { |
| #27 | "phantom": { |
| #28 | "command": "npx", |
| #29 | "args": ["-y", "@phantom/mcp-server"], |
| #30 | "env": { |
| #31 | "PHANTOM_APP_ID": "<your-app-id>" |
| #32 | } |
| #33 | } |
| #34 | } |
| #35 | } |
| #36 | ``` |
| #37 | |
| #38 | Get your `PHANTOM_APP_ID` from [Phantom Portal](https://portal.phantom.com). On first use, the server opens a browser for OAuth authentication via Google or Apple login. |
| #39 | |
| #40 | ## Available Tools |
| #41 | |
| #42 | | Tool | Description | |
| #43 | |------|-------------| |
| #44 | | `get_wallet_addresses` | Get blockchain addresses (Solana, Ethereum, Bitcoin, Sui) for the connected wallet | |
| #45 | | `transfer_tokens` | Transfer SOL or SPL tokens on Solana — builds, signs, and sends the transaction | |
| #46 | | `buy_token` | Fetch Solana swap quotes from Phantom API; optionally sign and send | |
| #47 | | `sign_transaction` | Sign a transaction (base64url for Solana, RLP hex for Ethereum) | |
| #48 | | `sign_message` | Sign a UTF-8 message with automatic chain-specific routing | |
| #49 | |
| #50 | ## Supported Networks |
| #51 | |
| #52 | | Chain | Networks | CAIP-2 Examples | |
| #53 | |-------|----------|-----------------| |
| #54 | | Solana | mainnet, devnet, testnet | `solana:mainnet`, `solana:devnet` | |
| #55 | | Ethereum | Mainnet, Sepolia, Polygon, Base, Arbitrum | `eip155:1`, `eip155:137` | |
| #56 | | Bitcoin | Mainnet | `bip122:000000000019d6689c085ae165831e93` | |
| #57 | | Sui | Mainnet, Testnet | `sui:mainnet` | |
| #58 | |
| #59 | ## Examples |
| #60 | |
| #61 | ### Get wallet addresses |
| #62 | |
| #63 | Retrieve the user's wallet addresses across all supported chains: |
| #64 | |
| #65 | ``` |
| #66 | Use the phantom MCP's get_wallet_addresses tool to list the user's addresses. |
| #67 | ``` |
| #68 | |
| #69 | Returns addresses for each connected chain (Solana, Ethereum, Bitcoin, Sui). |
| #70 | |
| #71 | ### Transfer SOL |
| #72 | |
| #73 | Send SOL to a recipient address: |
| #74 | |
| #75 | ``` |
| #76 | Use the phantom MCP's transfer_tokens tool: |
| #77 | - token: "SOL" |
| #78 | - recipientAddress: "<recipient>" |
| #79 | - amount: "0.1" |
| #80 | - network: "solana:mainnet" |
| #81 | ``` |
| #82 | |
| #83 | The MCP handles transaction building, signing, and submission. |
| #84 | |
| #85 | ### Transfer SPL tokens |
| #86 | |
| #87 | Send any SPL token by its mint address: |
| #88 | |
| #89 | ``` |
| #90 | Use the phantom MCP's transfer_tokens tool: |
| #91 | - token: "<token-mint-address>" |
| #92 | - recipientAddress: "<recipient>" |
| #93 | - amount: "10" |
| #94 | - network: "solana:mainnet" |
| #95 | ``` |
| #96 | |
| #97 | ### Buy / swap tokens |
| #98 | |
| #99 | Get a swap quote and optionally execute it: |
| #100 | |
| #101 | ``` |
| #102 | Use the phantom MCP's buy_token tool: |
| #103 | - tokenMint: "<token-mint-to-buy>" |
| #104 | - amount: "1000000" (in lamports for SOL input) |
| #105 | - network: "solana:mainnet" |
| #106 | ``` |
| #107 | |
| #108 | ### Sign a message |
| #109 | |
| #110 | Sign a UTF-8 message for verification or authentication: |
| #111 | |
| #112 | ``` |
| #113 | Use the phantom MCP's sign_message tool: |
| #114 | - message: "Hello, verifying ownership" |
| #115 | - network: "solana:mainnet" |
| #116 | ``` |
| #117 | |
| #118 | The MCP routes to the correct chain-specific signing based on the network parameter. |
| #119 | |
| #120 | ## Important Notes |
| #121 | |
| #122 | - **Preview software** — use a separate wallet with minimal funds for testing |
| #123 | - Sessions persist locally in `~/.phantom-mcp/session.json` |
| #124 | - The MCP server runs via stdio transport (launched by `npx -y @phantom/mcp-server`) |
| #125 | - Token transfers on Solana support both native SOL and any SPL token |
| #126 | - Swap quotes come from Phantom's API and include fee and slippage info |
| #127 |