Skip to main content

Overview

The Phantom MCP (Model Context Protocol) server enables AI coding assistants like Cursor, Claude, and VS Code 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.
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.

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 MCP server provides:
  • SearchPhantomDeveloper: Search across the entire Phantom developer documentation knowledge base to find relevant information, code examples, API references, and guides

Setup guides

Option 1: Quick install

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

Option 2: Manual setup

1

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”.
2

Configure the Phantom MCP server

Add the following to your mcp.json file:
{
  "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.
3

Verify the connection

In Cursor’s chat, ask “What tools do you have available?” - Cursor should show the Phantom MCP server as an available tool.
See the Cursor MCP documentation for more details.

Usage

Once configured, your AI assistant can automatically 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 the Phantom documentation and provide accurate, contextual responses with code examples.

Server details

PropertyValue
Server namePhantom developer documentation
Version1.0.0
TransportSSE (Server-Sent Events)
Endpointhttps://docs.phantom.com/mcp

Available tools

ToolDescription
SearchPhantomDeveloperSearch across the Phantom developer documentation knowledge base to find relevant information, code examples, API references, and guides

Troubleshooting

  • 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
  • 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
  • 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
  • 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 to verify the connector is added