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
- Cursor
- VS Code
- Claude
- Claude Code
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 If you already have other MCP servers configured, add
mcp.json file: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.
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?”
Server details
| Property | Value |
|---|---|
| Server name | Phantom developer documentation |
| 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
Server shows as disconnected in Cursor
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
AI doesn't use the documentation
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
Configuration file not found
Configuration file not found
- Cursor: The
mcp.jsonfile is located at~/.cursor/mcp.json(Mac/Linux) or%APPDATA%\Cursor\mcp.json(Windows) - VS Code: Create
.vscode/mcp.jsonin your project directory - If the file doesn’t exist, create it with the configuration shown above
Claude connector not working
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 to verify the connector is added