Solana Developer MCP

Set up remote Solana Developer MCP in your IDE in minutes!

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 http-server https://mcp.solana.com/mcp

2 Verify the connection

Ask a question and you should see output like:

http-server - Ask_Solana_Anchor_Framework_Expert (MCP)(question: "How are events implemented in Anchor framework version 0.31? What's the syntax for defining and emitting events?")

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": {
      "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:

> Called MCP tool 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:

> Called MCP tool Ask_Solana_Anchor_Framework_Expert

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