drio
Open app

Solana MCP Server

Source

solana mcp sever to enable solana rpc methods

Catalog onlyCatalog onlySTDIO

Overview

Solana MCP Server is a Model Context Protocol (MCP) server that provides comprehensive access to Solana blockchain data through Cline, implementing a wide range of Solana RPC methods for easy querying of blockchain information.

To use the Solana MCP Server, configure it in your Cline MCP settings file and restart Cline. You can then interact with the Solana blockchain using natural language queries.

  • Provides 21 essential Solana RPC methods for various operations. - Supports account and balance operations, block and transaction information, token operations, system information, and staking & governance. - Allows natural language interaction for querying blockchain data.
  1. Querying SOL balance for a specific address.
  2. Retrieving information about the latest block in the Solana blockchain.
  3. Getting the current inflation rate of the Solana network.

Add to your AI client

Use these steps to connect Solana MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "solana-mcp-server-aldrin-labs": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-mcp-server-aldrin-labs"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "solana-mcp-server-aldrin-labs": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-mcp-server-aldrin-labs"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "solana-mcp-server-aldrin-labs": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-mcp-server-aldrin-labs"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "solana-mcp-server-aldrin-labs": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-mcp-server-aldrin-labs"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "solana-mcp-server-aldrin-labs": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-mcp-server-aldrin-labs"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "solana-mcp-server-aldrin-labs": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-mcp-server-aldrin-labs"
      ]
    }
  }
}

FAQ

What RPC methods are supported?

The server supports 21 essential RPC methods including balance checks, transaction details, and system information.

Is there a default RPC endpoint?

Yes, the default RPC endpoint is "https://api.mainnet-beta.solana.com" unless specified otherwise.

What are the prerequisites for development?

You need Rust, Cargo, and optionally Solana CLI tools for testing.