Solana Web3.js MCP Server

Solana Web3.js MCP Server

solana-web3js-mcp-server•byfrankgengo

A Model Context Protocol server that bridges AI assistants and the Solana blockchain for account, transaction, key, program, and token operations.

License: MIT•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Provides MCP tools to query account data, check SOL balances, and find program-owned accounts across Solana clusters.
  • •Offers tools to build, simulate, sign, send, and check status of Solana transactions.
  • •Supports keypair generation, import, and derivation, plus program deployment, upgrade, and program derived address generation.
  • •Includes SPL token operations for creating tokens, minting, transferring, and inspecting token accounts and supply.

BEST FOR

  • •AI-assisted Solana smart contract development, including compiling, testing, and deploying programs from a chat assistant.
  • •Querying Solana balances and account information through an AI chat interface.
  • •Creating and managing SPL tokens through natural-language requests.

ABOUT SOLANA-WEB3JS-MCP-SERVER

Solana Web3.js MCP Server is cataloged as an MCP server attributed to frankgengo. A Model Context Protocol server that bridges AI assistants and the Solana blockchain for account, transaction, key, program, and token operations. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Solana Web3.js MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server store private keys?

No. The README states the server does not store private keys by default and requires explicit user approval for sensitive operations.

Which transports does the server support?

It includes standard I/O and HTTP/SSE transport implementations.

Which Solana clusters can the server interact with?

It can query network data from mainnet, testnet, and devnet clusters.

Upstream README

View this exact version on GitHub

README.md · 8021ef4cea6a · Fetched 2026-11-13 12:54:40 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Solana Web3.js MCP Server

A Model Context Protocol (MCP) server that enables AI assistants like Claude to develop and deploy Solana smart contracts end-to-end. This server acts as a bridge between AI language models and the Solana blockchain, providing a standardized interface for blockchain interactions.

Important Update: This project is currently being migrated from Solana web3.js v1.x to v2.0 to take advantage of improved performance, better type safety, and modern functional programming patterns. See the migration plan for details.

What is MCP?

The Model Context Protocol (MCP) is an open standard that allows AI assistants to access external tools and data sources in a secure, controlled manner. This server implements the MCP specification to expose Solana blockchain functionality to AI assistants.

What This Server Does

This MCP server provides AI assistants with the ability to:

  1. Interact with the Solana Blockchain: Query account data, check balances, view transaction history, and get network status from various Solana clusters (mainnet, testnet, devnet)

  2. Create and Manage Transactions: Build, simulate, sign, and send transactions to the Solana blockchain with proper error handling and fee estimation

  3. Develop Smart Contracts: Access templates, compile, test, and deploy Solana programs written in Rust using the Solana SDK or Pinocchio framework

  4. Manage Wallets and Keys: Generate keypairs, derive addresses, and interact with wallet adapters while maintaining security best practices

  5. Work with Tokens: Create, transfer, and manage SPL tokens and token accounts

Architecture

The server exposes three types of MCP capabilities:

  • Tools: Functions that perform actions like sending transactions, deploying programs, or generating keypairs
  • Resources: Data sources such as documentation, code templates, and blockchain state information
  • Prompts: Templates for guiding the AI through complex workflows like smart contract development

All blockchain interactions are performed through the @solana/web3.js library and related SDKs, with the MCP server acting as a secure intermediary between the AI and the blockchain.

Installation

# Clone the repository
git clone https://github.com/FrankGenGo/solana-web3js-mcp-server.git
cd solana-web3js-mcp-server

# Install dependencies
npm install

# Build the server
npm run build

# Start the server
npm start

Usage with Claude Desktop

  1. Install Claude Desktop

  2. Add the following to your Claude Desktop configuration file:

    On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "solana": {
      "command": "node",
      "args": ["/absolute/path/to/solana-web3js-mcp-server/dist/index.js"]
    }
  }
}
  1. Restart Claude Desktop

  2. You can now ask Claude to perform Solana-related tasks, such as:

    • "Create a new Solana account and show me the keypair"
    • "What's the current balance of address X?"
    • "Help me write and deploy a simple token contract on Solana devnet"

Security Considerations

  • This server does NOT store private keys by default
  • Sensitive operations (signing, deploying to mainnet) require explicit user approval
  • The server follows best practices for secure blockchain interactions

Available Tools

Account Management (Implemented)

  • getAccountInfo: Fetch and decode account information
  • checkAccountBalance: Get SOL balance for an address
  • findProgramAccounts: Find accounts owned by a program
  • getRentExemption: Calculate minimum balance for rent exemption

Transaction Management (Implemented)

  • createTransaction: Build a transaction with specified instructions
  • signTransaction: Sign a transaction with one or more keypairs
  • sendTransaction: Send and confirm a transaction on-chain
  • simulateTransaction: Simulate a transaction without sending it
  • getTransactionStatus: Check the status of a transaction

Key Management (Implemented)

  • generateKeypair: Create a new Solana keypair
  • importKeypair: Import an existing keypair from various formats
  • deriveKeypair: Derive a keypair from seed, mnemonic, or path

Program Development (Implemented)

  • deployProgram: Deploy a program to a Solana cluster
  • upgradeProgram: Upgrade an existing upgradeable program
  • generateProgramAddress: Derive a program derived address (PDA)

Token Operations (Implemented)

  • createToken: Create a new SPL token
  • mintTokens: Mint tokens to a token account
  • transferTokens: Transfer tokens between accounts
  • getTokenAccountInfo: Get token account information
  • getTokenSupply: Get the total supply of a token

Configuration Management (Planned)

  • getConfig: Get current configuration settings
  • setConfig: Update configuration parameters
  • getClusterVersion: Get Solana cluster version

Extended Keypair Management (Planned)

  • saveKeypair: Save keypair to secure storage
  • recoverKeypair: Recover keypair from seed phrase
  • verifyKeypair: Verify keypair integrity

Network Interaction (Planned)

  • requestAirdrop: Request SOL from devnet/testnet faucet
  • manageStake: Create and manage stake accounts
  • getValidators: Get validator information

Blockchain Data Inspection (Planned)

  • getBlock: Get block details by slot number
  • getBlockProduction: Get block production statistics
  • getRecentBlockhash: Get recent blockhash with fee calculator
  • getEpochInfo: Get current epoch information
  • getInflationRate: Get current inflation rate

Logging & Monitoring (Planned)

  • getLogs: Stream and filter transaction logs
  • getProgramLogs: Monitor program execution logs

Development

# Run in development mode (with auto-reload)
npm run dev

# Run tests (including integration tests against devnet)
npm test

# Lint the code
npm run lint

Setting Up Test Environment

The test suite includes integration tests that run against the Solana devnet. To set up your environment for testing:

  1. Install Solana CLI: Follow the official installation instructions

  2. Generate a test keypair:

    mkdir -p ~/solana-web3js-tests
    solana-keygen new --force --no-bip39-passphrase -o ~/solana-web3js-tests/test-keypair.json
    
  3. Fund the test keypair with devnet SOL:

    solana airdrop 1 $(solana address -k ~/solana-web3js-tests/test-keypair.json) --url devnet
    
  4. Verify the balance:

    solana balance -k ~/solana-web3js-tests/test-keypair.json --url devnet
    

The test suite will automatically use this keypair for integration tests against devnet.

Project Structure

  • src/index.ts: Main entry point (implemented)
  • src/solana-server.ts: Core server implementation (implemented)
  • src/core/connection-manager.ts: Solana connection management (implemented)
  • src/transport/: Transport layer implementations
    • src/transport/stdio.ts: Standard I/O transport (implemented)
    • src/transport/http.ts: HTTP/SSE transport (implemented)
    • src/transport/index.ts: Transport exports (implemented)
  • src/tools/: Tool implementations for Solana operations
    • src/tools/accounts/: Account management tools (implemented)
    • src/tools/transactions/: Transaction operations tools (implemented)
    • src/tools/keys/: Key management tools (implemented)
    • src/tools/programs/: Program development tools (implemented)
  • src/resources/: Resource implementations for Solana data (planned)
  • src/prompts/: Reusable prompts for common workflows (planned)
  • src/types/: TypeScript type definitions
    • src/types/solana.ts: Solana-specific type definitions (partial implementation)
    • src/types/tools.ts: Tool input/output type definitions (planned)
    • src/types/config.ts: Configuration type definitions (planned)
  • src/utils/: Utility functions and classes
    • src/utils/errors.ts: Error handling system (implemented)
    • src/utils/logging.ts: Logging system (implemented)

Extending the Server

This server is designed to be extensible. To add new functionality:

  1. Create a new tool in the appropriate file in the tools directory
  2. Register the tool in solana-server.ts
  3. Test the tool with both unit tests and integration tests

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Solana Web3.js MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/solana-web3js-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics