drio
Open app

Solana Web3.js MCP Server

Source

MCP server for Solana web3.js development and smart contract deployment

Catalog onlyCatalog onlySTDIO

Overview

The Solana Web3.js MCP Server is a Model Context Protocol (MCP) server designed for Solana web3.js development and smart contract deployment, acting as a bridge between AI language models and the Solana blockchain.

To use the server, clone the repository, install dependencies, build the server, and start it. Then, configure it with Claude Desktop to perform Solana-related tasks.

  • Interact with the Solana blockchain for querying account data and transaction history. - Create and manage transactions with error handling and fee estimation. - Develop and deploy smart contracts using Rust. - Manage wallets and keys securely. - Work with SPL tokens and token accounts.
  1. Querying account balances and transaction history.
  2. Creating and deploying smart contracts on the Solana blockchain.
  3. Managing wallets and generating keypairs securely.

Add to your AI client

Use these steps to connect Solana Web3.js 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-web3js-mcp-server-frankgengo": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-web3js-mcp-server-frankgengo"
      ]
    }
  }
}

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-web3js-mcp-server-frankgengo": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-web3js-mcp-server-frankgengo"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

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

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-web3js-mcp-server-frankgengo": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-solana-web3js-mcp-server-frankgengo"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Can I use this server for all Solana development tasks?

Yes! It supports a wide range of functionalities for Solana development.

Is there a security risk with using this server?

The server does not store private keys by default and follows best practices for secure interactions.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3643,"uuid":"791f0902-c4ae-43bc-a562-7ee09a4f8a1e","name":"solana-web3js-mcp-server","title":"Solana Web3.js MCP Server","description":"MCP server for Solana web3.js development and smart contract deployment","avatar_url":"https://avatars.githubusercontent.com/u/87958598?v=4","created_at":"2025-03-20T18:37:43.113Z","updated_at":"2025-03-20T19:00:28.665Z","status":"created","author_name":"FrankGenGo","author_avatar_url":"https://avatars.githubusercontent.com/u/87958598?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/FrankGenGo/solana-web3js-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-23 00:54:04\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]

Solana Web3.js MCP Server — MCP Registry