phantom-mcp-server
Give your AI agent a crypto wallet. Sign messages, send transactions, transfer tokens, and swap across Solana and EVM chains using Phantom's non-custodial wallet.
README
Phantom Connect — Cursor & Claude Code Plugin
Give your agent a wallet. Swap, sign, and manage addresses across Phantom's supported chains — and tap into Phantom's docs for context. This plugin also includes skills, rules, and agents to help scaffold wallet-connected apps with the Phantom Connect SDK across React, React Native, and vanilla JS/TS.
Works with both Cursor and Claude Code.
Installation
Cursor
- Clone or copy this plugin into your Cursor plugins directory, or open the folder in Cursor.
- Cursor will automatically detect the
.cursor-plugin/plugin.jsonmanifest. - The MCP servers (
phantom-connect-sdkandphantom-mcp) will appear in your MCP settings.
Claude Code
-
Install the plugin from a marketplace, or load it locally for development:
# From a marketplace (if available) claude plugin install phantom-connect@marketplace-name # From a local directory claude --plugin-dir /path/to/phantom-connect-plugin/ -
Claude Code will detect the
.claude-plugin/plugin.jsonmanifest and load all skills, agents, and MCP servers. -
Use the
/phantom-connect:phantom-connectskill to get full SDK assistance:/phantom-connect:phantom-connect react # React SDK help /phantom-connect:phantom-connect browser # Browser SDK help /phantom-connect:phantom-connect react-native # React Native SDK help
What's Included
Skills
All 8 skills are shared between Cursor and Claude Code, auto-discovered from skills/.
| Skill | Description |
|---|---|
| phantom-connect | Comprehensive skill covering all three SDKs, transactions, payments, token-gating, and NFT minting |
| setup-react-app | Scaffold a React app with @phantom/react-sdk, PhantomProvider, ConnectButton, and hooks |
| setup-browser-app | Scaffold a vanilla JS/TS app with @phantom/browser-sdk singleton pattern |
| setup-react-native-app | Scaffold a React Native (Expo) app with @phantom/react-native-sdk and required polyfills |
| send-sol-transaction | Build and send SOL transfers with proper signing and verification |
| sign-message | Implement message signing for Solana and EVM, including SIWS authentication |
| add-social-login | Configure Google/Apple social login with embedded wallet support |
| phantom-wallet-mcp | Execute wallet operations via the Phantom MCP — addresses, transfers, signing, swaps |
Rules (Cursor only)
| Rule | What It Enforces |
|---|---|
| phantom-sdk-best-practices | Use signAndSendTransaction, proper provider setup, error handling, connection checks |
| solana-transaction-safety | Use LAMPORTS_PER_SOL, verify transactions, correct network selection, no key exposure |
| embedded-wallet-constraints | No signTransaction, spending limits, session duration, polyfill requirements |
Claude Code's plugin system does not support always-on rules. These rules are embedded in the
phantom-connectskill and applied when the skill is invoked.
Agents
| Agent | Purpose |
|---|---|
| Phantom Integration Specialist | SDK integration — scaffolds projects, writes correct code, validates against constraints, and looks up Phantom docs in real-time |
| Phantom Wallet Agent | Wallet operations — get addresses, transfer tokens, sign transactions, execute swaps, and sign messages via the phantom-mcp server |
MCP Servers
| Server | Transport | Description |
|---|---|---|
| phantom-connect-sdk | SSE | Phantom Connect SDK documentation at https://docs.phantom.com/mcp for real-time API reference |
| phantom-mcp | stdio | Wallet operations via @phantom/mcp-server — sign transactions, transfer tokens, buy tokens, sign messages |
The phantom-mcp server requires a PHANTOM_APP_ID environment variable from Phantom Portal. Set it in your environment or MCP settings.
Usage
Once installed, ask the agent to:
- "Set up a React app with Phantom Connect"
- "Add social login with Google and Apple"
- "Send 0.1 SOL to an address"
- "Implement Sign-in with Solana"
- "Set up a React Native app with Phantom wallet"
- "Get my wallet addresses"
- "Transfer 0.5 SOL to [address]"
- "Sign this message with my wallet"
The agent will follow the plugin's skills and rules to generate correct, safe integration code.
Requirements
- Cursor editor or Claude Code CLI
- A Phantom Portal account for
appIdregistration: phantom.com/portal
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。