> ## 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 Connect SDK MCP server

> Get accurate Phantom developer guidance in your AI coding assistant

## Overview

The Phantom Connect SDK MCP (Model Context Protocol) server connects AI coding assistants like [Cursor](https://cursor.com/), [Claude](https://claude.ai/), and [VS Code](https://code.visualstudio.com/) to Phantom developer documentation. Your AI assistant can answer questions and generate code with accurate, up-to-date context.

<Info>
  Looking for the MCP server that gives AI agents direct access to Phantom wallet operations like signing transactions and transferring tokens? See the [Phantom MCP server](/phantom-mcp-server) documentation.
</Info>

<Info>
  MCP is an open protocol that allows AI applications to securely connect to external data sources and tools. Learn more about MCP at [modelcontextprotocol.io](https://modelcontextprotocol.io/).
</Info>

## Quick install

Use the contextual menu at the top of any documentation page to quickly connect to your preferred tool:

* **Copy MCP server URL**: Copy the URL to your clipboard.
* **Connect to Cursor**: Automatically install in Cursor.
* **Connect to VS Code**: Automatically install in VS Code.

## Features

The Phantom Connect SDK MCP server provides:

* `SearchPhantomDeveloper`: Search across Phantom developer documentation for relevant information, code examples, API references, and guides.

## Setup guides

<Tabs>
  <Tab title="Cursor">
    ### Option 1: Cursor plugin (recommended)

    Install the [Phantom Cursor plugin](https://cursor.com/marketplace/phantom) for the best experience. It includes this MCP server plus subagents, skills, and rules for building with Phantom. See the [Cursor plugin documentation](/resources/cursor-plugin) for details.

    ### Option 2: Quick install

    Use the contextual menu at the top of this page and select **Connect to Cursor** to automatically install the MCP server.

    ### Option 3: Manual setup

    <Steps>
      <Step title="Open MCP settings">
        Use `Cmd + Shift + P` (Mac) or `Ctrl + Shift + P` (Windows/Linux) to open the command palette, then search for **Open MCP settings**.
      </Step>

      <Step title="Configure the Phantom Connect SDK MCP server">
        Add the following to your `mcp.json` file:

        ```json theme={null}
        {
          "mcpServers": {
            "phantom-docs": {
              "type": "sse",
              "url": "https://docs.phantom.com/mcp"
            }
          }
        }
        ```

        If you already have other MCP servers configured, add `phantom-docs` to your existing `mcpServers` object.
      </Step>

      <Step title="Verify the connection">
        In Cursor's chat, ask "What tools do you have available?"—Cursor should show the Phantom Connect SDK MCP server as an available tool.
      </Step>
    </Steps>

    See the [Cursor MCP documentation](https://docs.cursor.com/context/model-context-protocol) for more details.
  </Tab>

  <Tab title="VS Code">
    ### Option 1: Quick install

    Use the contextual menu at the top of this page and select **Connect to VS Code** to automatically install the MCP server.

    ### Option 2: Manual setup

    <Steps>
      <Step title="Create the MCP configuration file">
        Create a `.vscode/mcp.json` file in your project directory.
      </Step>

      <Step title="Configure the Phantom Connect SDK MCP server">
        Add the following configuration:

        ```json theme={null}
        {
          "servers": {
            "phantom-docs": {
              "type": "http",
              "url": "https://docs.phantom.com/mcp"
            }
          }
        }
        ```
      </Step>

      <Step title="Verify the connection">
        The MCP server should now be available in VS Code's AI features.
      </Step>
    </Steps>

    See the [VS Code MCP documentation](https://code.visualstudio.com/docs/copilot/chat/mcp-servers) for more details.
  </Tab>

  <Tab title="Claude">
    <Steps>
      <Step title="Open Claude settings">
        Navigate to the **Connectors** page in your [Claude settings](https://claude.ai/settings/connectors).
      </Step>

      <Step title="Add the Phantom Connect SDK MCP server">
        1. Select **Add custom connector**
        2. Enter the following details:
           * **Name**: `Phantom Docs`
           * **URL**: `https://docs.phantom.com/mcp`
        3. Select **Add**
      </Step>

      <Step title="Use the MCP server">
        When using Claude:

        1. Select the attachments button (the plus icon)
        2. Select the **Phantom Docs** connector
        3. Ask Claude questions about Phantom integration
      </Step>
    </Steps>

    See the [Claude MCP documentation](https://modelcontextprotocol.io/quickstart/user) for more details.
  </Tab>

  <Tab title="Claude Code">
    ### Install via command line

    Run the following command to add the Phantom Connect SDK MCP server to Claude Code:

    ```bash theme={null}
    claude mcp add --transport http phantom-docs https://docs.phantom.com/mcp
    ```

    ### Verify the installation

    Check that the server was added successfully:

    ```bash theme={null}
    claude mcp list
    ```

    See the [Claude Code documentation](https://docs.anthropic.com/en/docs/claude-code/mcp) for more details.
  </Tab>
</Tabs>

## Usage

Once configured, your AI assistant can search Phantom documentation when you ask questions about:

* Phantom SDK integration (React, React Native, Browser)
* Wallet connection and authentication flows
* Transaction signing and sending
* Message signing for authentication
* Multi-chain support (Solana, Ethereum, Bitcoin, Sui, and more)
* Phantom Portal setup and configuration
* Best practices and troubleshooting

### Example prompts

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 Phantom Browser SDK"
* "What's the process for verifying a domain in Phantom Portal?"
* "How do I send a Solana transaction using Phantom?"

The AI will search Phantom documentation and respond with accurate answers and code examples.

## Server details

| Property    | Value                          |
| ----------- | ------------------------------ |
| Server name | Phantom Connect SDK MCP server |
| Version     | 1.0.0                          |
| Transport   | SSE (Server-Sent Events)       |
| Endpoint    | `https://docs.phantom.com/mcp` |

### Available tools

| Tool                     | Description                                                                                                                              |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `SearchPhantomDeveloper` | Search across the Phantom developer documentation knowledge base to find relevant information, code examples, API references, and guides |

## Troubleshooting

<AccordionGroup>
  <Accordion title="Server shows as disconnected in Cursor">
    * Make sure you include `"type": "sse"` in your Cursor configuration
    * Verify you have an active internet connection
    * Check that the URL is exactly `https://docs.phantom.com/mcp`
    * Try removing and re-adding the server
    * Restart Cursor completely
  </Accordion>

  <Accordion title="AI doesn't use the documentation">
    * Make sure the MCP server shows a green status indicator
    * Try explicitly asking about Phantom (e.g., "Using Phantom docs, how do I...")
    * Verify the server is enabled in your settings
    * In Cursor, ask "What tools do you have available?" to verify the connection
  </Accordion>

  <Accordion title="Configuration file not found">
    * **Cursor**: The `mcp.json` file is located at `~/.cursor/mcp.json` (Mac/Linux) or `%APPDATA%\Cursor\mcp.json` (Windows)
    * **VS Code**: Create `.vscode/mcp.json` in your project directory
    * If the file doesn't exist, create it with the configuration shown above
  </Accordion>

  <Accordion title="Claude connector not working">
    * Make sure you're using the correct URL: `https://docs.phantom.com/mcp`
    * Try removing and re-adding the connector
    * Check the [Claude Connectors page](https://claude.ai/settings/connectors) to verify the connector is added
  </Accordion>
</AccordionGroup>

## Related resources

<CardGroup cols={2}>
  <Card title="Phantom Cursor plugin" icon="puzzle-piece" href="/resources/cursor-plugin">
    All-in-one Cursor plugin with subagents, skills, rules, and both MCP servers
  </Card>

  <Card title="Phantom MCP server" icon="robot" href="/phantom-mcp-server">
    Interact with Phantom embedded wallets through natural language
  </Card>

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

  <Card title="SDK overview" icon="code" href="/wallet-sdks-overview">
    Choose the right SDK for your application
  </Card>

  <Card title="Phantom Portal" icon="browser" href="/phantom-portal/portal">
    Set up your app in the Phantom Portal
  </Card>
</CardGroup>
