Quick Setup Guide
Add the following configuration to your project based on your IDE:
1 Run the following command in your terminal
claude mcp add --transport http solana-mcp-server https://mcp.solana.com/mcp
2 Verify the connection
Ask a question and you should see output like:
1 Configure MCP Settings
Add globally by opening the command palette (Cmd/Ctrl + Shift + P) and selecting
> Cursor Settings > MCP > Add new global MCP
server:
{
"mcpServers": {
"solanaMcp": {
"url": "https://mcp.solana.com/mcp"
}
}
}
2 Verify the connection
Open Agent Mode (Cmd + I) and ask "Make me an anchor escrow program". You should see a card in the composer sidebar:
Ask_Solana_Anchor_Framework_Expert
✓
3 Configure User Rules (Optional)
Add the following to your user rules by going to the
command palette (Cmd/Ctrl + Shift + P) and selecting
> Settings > Rules:
<MCP_USE_GUIDELINE>
<INSTRUCTION>
If you are working on a Solana-related project. Make frequent use of the following MCP tools to accomplish your goals.
</INSTRUCTION>
<TOOLS>
The following Solana tools are at your disposal:
- "Solana Expert: Ask For Help": Use this tool to ask detailed questions about Solana (how-to, concepts, APIs, SDKs, errors). Provide as much context as possible when using it.
- "Solana Documentation Search": Use this tool to search the Solana documentation corpus for relevant information based on a query.
- "Ask Solana Anchor Framework Expert": Use this tool for any questions specific to the Anchor Framework, including its APIs, SDKs, and error handling.
</TOOLS>
</MCP_USE_GUIDELINE>
1 Configure MCP Settings
Add the following configuration:
{
"mcpServers": {
"solanaMcp": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.solana.com/mcp"]
}
}
}
2 Verify the connection
Open Agent Mode (Cmd + I) and ask "Make me an anchor escrow program". You should see a card in the composer sidebar:
Ask_Solana_Anchor_Framework_Expert
✓
1 Configure MCP Settings
Add globally by opening the command palette (Cmd/Ctrl + Shift + P) and selecting
> MCP: Open User Configuration:
{
"servers": {
"solanaMcp": {
"command": "npx",
"args": ["mcp-remote", "https://mcp.solana.com/mcp"]
}
}
}
Note: you have to enable MCP support in VS Code
2 Start Solana MCP Server
Start the Solana mcp server in the extensions tab (Cmd/Ctrl + Shift + X), under the 'MCP SERVERS - INSTALLED' tab and selecting
> solanaMcp > Start Server
3 Verify the connection
Open GitHub Copilot (Cmd/Ctrl + Alt + I), set 'agent' mode and ask "What are the best practices for handling decimal values in Solana programs?". You should see a card in the sidebar:
Example Queries:
- "How are CPI events implemented in Anchor 0.31?"
- "Build an AMM that supports token-2022 and older tokens."
- "How can I implement a staking mechanism with time-locked rewards?"
- "What are the best practices for handling decimal values in Solana programs?"
🚀 Real-time Updates
Get up-to-date information about Solana documentation right inside your IDE
🔒 Secure Integration
Built with security in mind, minimizing sensitive information exposure