> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phantom.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Phantom Cursor plugin

> Give your AI coding agent wallet capabilities, SDK knowledge, and Phantom best practices directly in Cursor

The [Phantom Cursor plugin](https://cursor.com/marketplace/phantom) gives your AI coding agent everything it needs to build with Phantom. It bundles MCP servers, subagents, skills, and rules into a single install so Cursor can scaffold projects, write integration code, execute wallet operations, and follow Phantom best practices automatically.

<Info>
  The plugin is available on the [Cursor Marketplace](https://cursor.com/marketplace/phantom). Install it directly from Cursor or visit the marketplace page.
</Info>

## Install

Add the plugin to Cursor using the command palette or the marketplace:

<Steps>
  <Step title="Open the command palette">
    Press `Cmd + Shift + P` (Mac) or `Ctrl + Shift + P` (Windows/Linux) and search for **"Add Plugin"**.
  </Step>

  <Step title="Search for Phantom Connect">
    Type `phantom-connect` and select **Phantom Connect** from the results.
  </Step>

  <Step title="Confirm installation">
    Cursor will add the plugin. You may need to restart Cursor for all features to activate.
  </Step>
</Steps>

You can also install by visiting [cursor.com/marketplace/phantom](https://cursor.com/marketplace/phantom) and selecting **Add to Cursor**.

## What's included

The plugin bundles four categories of capabilities into one install.

### Subagents

Specialized AI agents that Cursor can delegate tasks to:

| Subagent                         | Description                                                                                                                                                                                                                                                        |
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `phantom-integration-specialist` | Scaffolds projects, writes correct integration code, validates against SDK constraints, and searches Phantom docs in real time                                                                                                                                     |
| `phantom-wallet-agent`           | Executes wallet operations: address and balance reads across Solana, EVM, Bitcoin, and Sui; transfers, swaps, simulation, and signing on Solana and EVM; ERC-20 allowance checks on EVM; portfolio rebalancing on Solana; Hyperliquid perps; and CASH API payments |

### Skills

Step-by-step workflows the agent follows to complete common tasks:

| Skill                    | Description                                                                                                                                                                                                                                                                                 |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `setup-react-app`        | Scaffold a React app with Phantom Connect SDK, including social login and Solana support                                                                                                                                                                                                    |
| `setup-react-native-app` | Scaffold a React Native (Expo) app with Phantom React Native SDK, including polyfills and deep linking                                                                                                                                                                                      |
| `setup-browser-app`      | Scaffold a vanilla JS/TS app with Phantom Browser SDK, without any framework dependency                                                                                                                                                                                                     |
| `add-social-login`       | Configure Google and Apple social login with Phantom Connect SDK to enable embedded wallet creation                                                                                                                                                                                         |
| `send-sol-transaction`   | Build and send SOL transfers with Phantom Connect SDK, including transaction construction, signing, and verification                                                                                                                                                                        |
| `sign-message`           | Implement message signing with Phantom Connect SDK for Solana and EVM, including Sign-in with Solana (SIWS) authentication                                                                                                                                                                  |
| `phantom-wallet-mcp`     | Execute wallet operations through the Phantom MCP server: multi-chain address and balance reads (Solana, EVM, Bitcoin, Sui); transfers, swaps, simulation, and signing on Solana and EVM; EVM allowance checks; Solana-only portfolio rebalancing; Hyperliquid perps; and CASH API payments |

### Rules

Constraints and best practices the agent applies automatically when generating code:

| Rule                          | Description                                               |
| ----------------------------- | --------------------------------------------------------- |
| `embedded-wallet-constraints` | Constraints and limitations for Phantom embedded wallets  |
| `phantom-sdk-best-practices`  | General best practices for using Phantom Connect SDKs     |
| `solana-transaction-safety`   | Safety rules for Solana transaction handling with Phantom |

### MCP servers

Two MCP servers are bundled with the plugin:

| MCP server            | Description                                                                                                                                                                                                                                                                                                                                       |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `phantom-connect-sdk` | Gives Cursor real-time access to Phantom developer documentation for accurate answers and code generation                                                                                                                                                                                                                                         |
| `phantom-mcp`         | Gives Cursor direct access to Phantom embedded wallet operations: address and balance reads across Solana, EVM, Bitcoin, and Sui; transfers, swaps, simulation, and signing on Solana and EVM; EVM allowance checks; Solana-only portfolio rebalancing; Hyperliquid perps; and CASH API payments. Uses Phantom's device-code authentication flow. |

## Usage examples

Once installed, you can ask Cursor to perform Phantom-related tasks directly:

Scaffold a new project:

```
Create a React app with Phantom Connect that supports Google social login and SOL transfers
```

Add wallet features to an existing project:

```
Add Phantom wallet connection and message signing to my existing React app
```

Execute wallet operations:

```
Get my Phantom wallet addresses across all chains
```

```
Transfer 0.1 SOL to H8FpYTgx4Uy9aF9Nk9fCTqKKFLYQ9KfC6UJhMkMDzCBh
```

Ask documentation questions:

```
How do I verify a domain in Phantom Portal?
```

```
What are the spending limits for embedded wallets?
```

## How it works

The plugin enhances Cursor's AI agent in three ways:

1. Context: The MCP servers give the agent access to Phantom documentation and wallet operations, so it generates accurate code instead of hallucinating APIs.
2. Workflows: Skills provide step-by-step instructions for common integration tasks, ensuring the agent follows the correct setup order and includes all dependencies.
3. Guardrails: Rules enforce SDK best practices and safety constraints automatically, so the agent avoids common mistakes like missing polyfills or unsafe transaction patterns.

## Prerequisites

Install the plugin, then complete the Phantom device-code authentication flow in the browser the first time Cursor performs a wallet action.

If you use the project scaffolding skills to build a separate Phantom app integration, the generated application may still prompt you for project-specific SDK configuration later. That is separate from using the plugin itself.

## Related resources

<CardGroup cols={2}>
  <Card title="AI-assisted development" icon="wand-magic-sparkles" href="/developer-powertools/ai-tools">
    Overview of all AI tools for building with Phantom
  </Card>

  <Card title="Phantom Connect SDK MCP server" icon="server" href="/resources/mcp-server">
    Standalone MCP server setup for Cursor, VS Code, and Claude
  </Card>

  <Card title="Phantom MCP Server" icon="robot" href="/phantom-mcp-server">
    MCP server for wallet operations with AI assistants
  </Card>

  <Card title="Cursor AI prompts" icon="terminal" href="/resources/cursor-prompts">
    One-shot prompts for implementing Phantom SDKs
  </Card>
</CardGroup>
