AI tools
Phantom Cursor plugin
All-in-one plugin with subagents, skills, rules, and MCP servers for Cursor
Phantom MCP Server
Interact with Phantom embedded wallets through natural language
Phantom Connect SDK MCP server
Get accurate Phantom developer guidance in your AI coding assistant
Cursor AI prompts
One-shot prompts for complete Phantom SDK implementations
Claude integration: Every documentation page includes an “Open in Claude” button in the contextual menu for quick implementation help.
Phantom Cursor plugin
The Phantom Cursor plugin is the fastest way to start building with Phantom in Cursor. It bundles subagents, skills, rules, and MCP servers into a single install so your AI agent can scaffold projects, write integration code, execute wallet operations, and follow Phantom best practices automatically. Install it from the Cursor Marketplace or by searching forphantom-connect in Cursor’s Add Plugin command.
The plugin includes:
- Two subagents for integration code generation and wallet operations
- Seven skills for scaffolding React, React Native, and Browser SDK projects
- Three rules for SDK best practices and transaction safety
- Two MCP servers for documentation search and wallet operations
Full Cursor plugin documentation
Installation guide, included capabilities, and usage examples
MCP server
The Phantom MCP server (@phantom/mcp-server) lets AI assistants interact with Phantom embedded wallets through natural language. AI agents can view wallet addresses, sign transactions, transfer tokens, swap tokens, and rebalance portfolios across Solana, Ethereum, Bitcoin, and Sui.
Quick setup (Claude Desktop)
Full MCP server documentation
Complete setup guides, available tools, and supported networks
Phantom Connect SDK MCP server
The Phantom Connect SDK MCP server connects AI coding assistants to Phantom developer documentation. Your AI assistant can answer questions and generate code with accurate, up-to-date context.Setup
| Tool | One-click | Manual |
|---|---|---|
| Cursor | Click “Connect to Cursor” on any docs page | Add to ~/.cursor/mcp.json |
| VS Code | Click “Connect to VS Code” | Add to .vscode/mcp.json |
| Claude.ai | — | Add connector in Settings |
| Claude Code | — | claude mcp add --transport http phantom-docs https://docs.phantom.com/mcp |
Configuration
Add this configuration to your MCP settings:mcp.json
Example prompts
Once configured, try asking your AI assistant:- “How do I set up Phantom Connect in a React app?”
- “Show me how to sign a message with the Browser SDK.”
- “What’s the process for verifying a domain in Phantom Portal?”
- “How do I handle transaction errors in React Native?”
Full Phantom Connect SDK MCP server documentation
Complete setup guides for all supported tools
Cursor AI prompts
Use one-shot prompts with Cursor AI to generate Phantom SDK implementations. Each prompt covers wallet connection, message signing, and transaction handling.Available prompts
| SDK | What it generates |
|---|---|
| React SDK | Complete app with wallet connection, message signing, SOL transfers |
| React Native SDK | Mobile app with Expo, OAuth flow, native wallet functionality |
| Browser SDK | Vanilla JS implementation for any web framework |
How to use
Get App ID from Phantom Portal
Visit Phantom Portal to get your App ID before using any prompt.
Copy prompt for your SDK
Open the Cursor AI prompts page and copy the prompt for your preferred SDK (React, React Native, or Browser).
Replace placeholders
Replace
[YOUR_APP_ID] and [YOUR_REDIRECT_URL] (or [YOUR_SCHEME] for React Native) with your actual values.Paste into Cursor
Open Cursor AI, press
Cmd+K (or Ctrl+K on Windows), and paste the complete prompt.View all Cursor prompts
Get prompts for React, React Native, and Browser SDKs
Best practices
Provide context
Give your AI assistant context to generate accurate code. Include:- Your target framework (React, React Native, or vanilla JS)
- Specific features you need (wallet connection, transactions, message signing)
- General app structure and requirements
Combine tools
Use MCP server for questions and documentation lookups, then use Cursor prompts for scaffolding complete implementations:- Ask questions first: Use MCP server to understand concepts (“How does Phantom Connect authentication work?”).
- Generate code: Use Cursor prompts to scaffold your implementation.
- Refine with MCP: Ask follow-up questions to customize the generated code.
Verify generated code
Always review AI-generated code before deploying:- Check App ID matches your Phantom Portal app.
- Verify redirect URLs are allowlisted in Phantom Portal.
- Ensure error handling is present for all async operations.
- Confirm lamports are calculated correctly (1 SOL = 1,000,000,000 lamports).
- Test wallet connection flow end-to-end.
- Validate transaction amounts and recipient addresses.
Resources
Phantom Cursor plugin
All-in-one plugin with subagents, skills, rules, and MCP servers
Phantom MCP Server
Interact with Phantom embedded wallets through natural language
Phantom Connect SDK MCP server
Get accurate Phantom developer guidance in your AI coding assistant
Cursor prompts
One-shot prompts for all Phantom SDKs
SDK comparison guide
Choose the right SDK for your application