Skip to main content
Glama

solana-mcp-server

npm version License: MIT Node Tools

Servidor MCP completo para la cadena de bloques de Solana. 25 herramientas para gestión de billeteras, operaciones con tokens SPL, DeFi, staking y consultas de red. Construido sobre @solana/web3.js y @solana/spl-token con soporte para Anchor.

El servidor MCP de Solana con mantenimiento más activo. Cubre el ciclo de vida completo de los tokens SPL (crear, acuñar, quemar, congelar, descongelar, delegar, gestión de autoridad) que otros competidores omiten.

Instalación

npx solana-mcp-server

O instálalo globalmente:

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

Related MCP server: SolanaBot

Configuración

Añádelo a tu configuración de MCP (claude_desktop_config.json o ~/.mcp.json):

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

Herramientas (25)

Gestión de billeteras (4)

Herramienta

Descripción

Parámetros clave

create_wallet

Crea un nuevo par de claves de Solana (solo en memoria)

--

import_wallet

Importa desde una clave privada codificada en base58

privateKey

list_wallets

Lista todas las billeteras en la sesión actual

--

get_balance

Obtiene el saldo de SOL para cualquier dirección

address

Operaciones con tokens SPL (10)

Herramienta

Descripción

Parámetros clave

create_spl_token

Crea un nuevo token SPL con decimales personalizados

walletName, decimals

mint_tokens

Acuña tokens a cualquier dirección

walletName, tokenMint, amount

burn_tokens

Quema tokens de una cuenta

walletName, tokenMint, amount

freeze_account

Congela una cuenta de token

walletName, tokenMint, accountAddress

thaw_account

Descongela una cuenta de token

walletName, tokenMint, accountAddress

set_token_authority

Cambia la autoridad del token (acuñación, congelación, propietario, cierre)

walletName, tokenMint, authorityType

get_token_supply

Suministro total y metadatos de un token

tokenMint

close_token_account

Cierra una cuenta y reclama el alquiler

walletName, tokenAccount

approve_delegate

Aprueba un delegado para transferencias de tokens

walletName, tokenAccount, delegate, amount

revoke_delegate

Revoca la aprobación del delegado

walletName, tokenAccount

Transferencias (3)

Herramienta

Descripción

Parámetros clave

transfer_sol

Transfiere SOL entre billeteras

from, to, amount

transfer_tokens

Transfiere tokens SPL

from, to, tokenMint, amount

airdrop_sol

Solicita un airdrop de SOL (solo devnet/testnet)

address, amount

Consultas de cuentas (4)

Herramienta

Descripción

Parámetros clave

get_account_info

Información detallada de la cuenta

address

get_transaction

Detalles de la transacción por firma

signature

create_token_account

Crea una cuenta de token asociada

walletName, tokenMint

get_token_accounts

Lista todas las cuentas de token de una billetera

address

Datos de tokens (1)

Herramienta

Descripción

Parámetros clave

get_token_balance

Saldo de token SPL para una cuenta específica

address, tokenMint

Red (3)

Herramienta

Descripción

Parámetros clave

switch_network

Cambia entre mainnet, devnet, testnet, localhost

network

get_network_info

Estado e información actual de la red

--

get_recent_blockhash

Hash de bloque reciente para la creación de transacciones

--

¿Por qué esta opción?

  • Ciclo de vida completo de tokens SPL. Crear, acuñar, quemar, congelar, descongelar, establecer autoridad, delegar, cerrar: 10 herramientas de tokens que cubren cada operación. Los competidores solo llegan hasta crear/transferir.

  • Infraestructura lista para producción. Inicialización de conexión perezosa (sin tiempos de espera de inicio), tiempos de espera de llamadas de red de 10 segundos, manejo integral de errores y soporte para despliegue en Smithery.

  • Integración con Anchor. Construido con soporte para @coral-xyz/anchor para interactuar con programas de Anchor junto con operaciones de tokens SPL sin procesar.

Redes

Red

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

Seguridad

  • Claves privadas almacenadas solo en memoria: nunca se guardan en el disco

  • Claves borradas al salir del proceso

  • Todas las entradas validadas con esquemas Zod

Variables de entorno

Variable

Requerido

Descripción

SOLANA_RPC_URL

No

Endpoint RPC de Solana (predeterminado: mainnet)

Desarrollo

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)

Licencia

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
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    Appeared in Searches