AI tools
MCP server
Give AI agents direct access to Phantom wallet operations
Phantom Connect SDK MCP server
Connect Cursor, VS Code, Claude, or Claude Code to search our docs in real-time
Cursor AI prompts
One-shot prompts that generate complete, production-ready SDK implementations
Claude integration: Every documentation page includes an “Open in Claude” button in the contextual menu for quick implementation help.
MCP server
The Phantom MCP server (@phantom/mcp-server) enables AI assistants to interact directly with Phantom embedded wallets. AI agents can view wallet addresses, sign transactions, transfer tokens, and sign messages across Solana, Ethereum, Bitcoin, and Sui through natural language.
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 enables AI coding assistants to search and retrieve information from the Phantom developer documentation. This allows your AI assistant to provide accurate, up-to-date guidance when building Phantom integrations.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 complete, production-ready Phantom SDK implementations. These prompts create full applications with 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 enough 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.