Skip to main content
Glama

solana-mcp-server

npm version License: MIT Node Tools

Full Solana blockchain MCP server. 25 tools for wallet management, SPL token operations, DeFi, staking, and network queries. Built on @solana/web3.js v3, Solana Kit, and the generated @solana-program/token client.

Covers the SPL token lifecycle implemented in this repository: create, mint, burn, freeze, thaw, delegate, and authority management. The exact supported surface is listed below and exercised by the repository's tests and CI checks.

Install

npx solana-mcp-server

Or install globally:

npm install -g solana-mcp-server
solana-mcp-server

Related MCP server: SolanaBot

Configure

Add to your MCP config (claude_desktop_config.json or ~/.mcp.json):

{
  "mcpServers": {
    "solana": {
      "command": "npx",
      "args": ["-y", "solana-mcp-server"],
      "env": {
        "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
      }
    }
  }
}

Tools (25)

Wallet Management (4)

Tool

Description

Key Params

create_wallet

Create a new Solana keypair (in-memory only)

--

import_wallet

Import from a base58-encoded private key

privateKey

list_wallets

List all wallets in the current session

--

get_balance

Get SOL balance for any address

address

SPL Token Operations (10)

Tool

Description

Key Params

create_spl_token

Create a new SPL token with custom decimals

walletName, decimals

mint_tokens

Mint tokens to any address

walletName, tokenMint, amount

burn_tokens

Burn tokens from an account

walletName, tokenMint, amount

freeze_account

Freeze a token account

walletName, tokenMint, accountAddress

thaw_account

Unfreeze a token account

walletName, tokenMint, accountAddress

set_token_authority

Change token authority (mint, freeze, owner, close)

walletName, tokenMint, authorityType

get_token_supply

Total supply and metadata for a token

tokenMint

close_token_account

Close an account and reclaim rent

walletName, tokenAccount

approve_delegate

Approve a delegate for token transfers

walletName, tokenAccount, delegate, amount

revoke_delegate

Revoke delegate approval

walletName, tokenAccount

Transfers (3)

Tool

Description

Key Params

transfer_sol

Transfer SOL between wallets

from, to, amount

transfer_tokens

Transfer SPL tokens

from, to, tokenMint, amount

airdrop_sol

Request SOL airdrop (devnet/testnet only)

address, amount

Account Queries (4)

Tool

Description

Key Params

get_account_info

Detailed account information

address

get_transaction

Transaction details by signature

signature

create_token_account

Create an associated token account

walletName, tokenMint

get_token_accounts

List all token accounts for a wallet

address

Token Data (1)

Tool

Description

Key Params

get_token_balance

SPL token balance for a specific account

address, tokenMint

Network (3)

Tool

Description

Key Params

switch_network

Switch between mainnet, devnet, testnet, localhost

network

get_network_info

Current network status and info

--

get_recent_blockhash

Recent blockhash for transaction building

--

Why This One?

  • Complete SPL token lifecycle. Create, mint, burn, freeze, thaw, set authority, delegate, close -- 10 token tools covering every operation. Competitors stop at create/transfer.

  • Operational safeguards. Lazy connection initialization, 10-second network-call timeouts, structured error handling, and Smithery deployment support.

  • Direct Solana primitives. Uses @solana/web3.js and @solana/spl-token directly, keeping the installed dependency surface aligned with the tools implemented here.

Networks

Network

Endpoint

mainnet

https://api.mainnet-beta.solana.com

devnet

https://api.devnet.solana.com

testnet

https://api.testnet.solana.com

localhost

http://127.0.0.1:8899

Security

  • Private keys stored in memory only -- never persisted to disk

  • Keys cleared on process exit

  • All inputs validated with Zod schemas

Environment Variables

Variable

Required

Description

SOLANA_RPC_URL

No

Solana RPC endpoint (default: mainnet)

Development

git clone https://github.com/ExpertVagabond/solana-mcp-server.git
cd solana-mcp-server
npm install
npm run build
npm start
npm test              # Basic functionality tests
npm run type-check    # TypeScript type checking
npm run lint          # ESLint
npm run quality       # Full quality check (lint + types + tests)

License

MIT -- Purple Squirrel Media

Available Tools

25 tools
airdrop_solA

Request SOL airdrop for testing (devnet/testnet only)

Inputs: walletName (required), amount.

approve_delegateC

Approve a delegate to transfer tokens on your behalf

Inputs: amount (required), tokenMint (required), walletName (required), delegateAddress (required).

burn_tokensC

Burn tokens from a wallet

Inputs: amount (required), tokenMint (required), walletName (required).

close_token_accountC

Close a token account and reclaim rent

Inputs: tokenMint (required), walletName (required), destinationAddress (required).

create_spl_tokenC

Create a new SPL token with specified decimals

Inputs: walletName (required), decimals, freezeAuthority.

create_token_accountC

Create associated token account for SPL tokens

Inputs: tokenMint (required), walletName (required).

create_walletC

Create a new Solana wallet

Inputs: name (required).

freeze_accountB

Freeze a token account to prevent transfers

Inputs: tokenMint (required), walletName (required), accountAddress (required).

get_account_infoC

Get detailed account information

Inputs: address (required).

get_balanceC

Get SOL balance for a wallet

Inputs: walletName (required).

get_network_infoC

Get current network information

Inputs: no named parameters.

get_recent_blockhashB

Get recent blockhash for transaction building

Inputs: no named parameters.

get_token_accountsC

Get all token accounts for a wallet

Inputs: walletName (required).

get_token_balanceC

Get SPL token balance for a wallet

Inputs: tokenMint (required), walletName (required).

get_token_supplyC

Get the total supply of a token

Inputs: tokenMint (required).

get_transactionC

Get transaction details by signature

Inputs: signature (required).

import_walletC

Import an existing wallet from private key or mnemonic

Inputs: name (required), privateKey (required).

list_walletsB

List all created/imported wallets

Inputs: no named parameters.

mint_tokensC

Mint tokens to a specific account

Inputs: amount (required), tokenMint (required), walletName (required), destinationAddress (required).

revoke_delegateB

Revoke a delegate's authority to transfer tokens

Inputs: tokenMint (required), walletName (required).

set_token_authorityC

Set or change authority for a token mint or account

Inputs: tokenMint (required), walletName (required), authorityType (required), newAuthority.

switch_networkC

Switch Solana network

Inputs: network (required).

thaw_accountC

Thaw a frozen token account to allow transfers

Inputs: tokenMint (required), walletName (required), accountAddress (required).

transfer_solC

Transfer SOL between wallets

Inputs: amount (required), toAddress (required), fromWallet (required).

transfer_tokensC

Transfer SPL tokens between wallets

Inputs: amount (required), toAddress (required), tokenMint (required), fromWallet (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 25 tools

    Disambiguation4/5

    Most tools have distinct purposes, but some overlap exists, such as get_balance and get_token_balance, which could cause confusion if not carefully described. However, the descriptions generally clarify the differences, and tools like freeze_account and thaw_account are clearly complementary.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using snake_case, such as create_wallet, transfer_sol, and get_account_info. This uniformity makes the tool set predictable and easy to navigate.

    Tool Count3/5

    With 25 tools, the count is borderline high for a focused server, potentially overwhelming for agents. While it covers many Solana operations, it might benefit from consolidation or better scoping to reduce complexity.

    Completeness5/5

    The tool set provides comprehensive coverage for Solana operations, including wallet management, token handling, transactions, and network interactions. It supports full CRUD/lifecycle actions, such as create, transfer, and burn tokens, with no obvious gaps.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with the Solana blockchain through Claude Desktop, allowing users to check SOL balances, transfer SOL between accounts, and request airdrops using the Model Context Protocol.
      4,042 npm
      BSD 3-Clause
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI agents to read chain data, execute transactions, swap tokens, and manage wallets on Solana through 38 tools across 7 modules. Supports write operations with a private key and includes built-in prompts for common workflows.
      38
      1
      MIT

    Appeared in Searches