Solana MCP Server
solana-mcp-server
Полнофункциональный MCP-сервер для блокчейна Solana. 25 инструментов для управления кошельками, операций с SPL-токенами, DeFi, стейкинга и запросов к сети. Построен на базе @solana/web3.js и @solana/spl-token с поддержкой Anchor.
Самый активно поддерживаемый MCP для Solana. Охватывает полный жизненный цикл SPL-токенов (создание, минтинг, сжигание, заморозка, разморозка, делегирование, управление правами), который пропускают конкуренты.
Установка
npx solana-mcp-serverИли установите глобально:
npm install -g solana-mcp-server
solana-mcp-serverRelated MCP server: SolanaBot
Настройка
Добавьте в конфигурацию MCP (claude_desktop_config.json или ~/.mcp.json):
{
"mcpServers": {
"solana": {
"command": "npx",
"args": ["-y", "solana-mcp-server"],
"env": {
"SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
}
}
}
}Инструменты (25)
Управление кошельками (4)
Инструмент | Описание | Ключевые параметры |
| Создать новую пару ключей Solana (только в памяти) | -- |
| Импорт из закрытого ключа в формате base58 |
|
| Список всех кошельков в текущей сессии | -- |
| Получить баланс SOL для любого адреса |
|
Операции с SPL-токенами (10)
Инструмент | Описание | Ключевые параметры |
| Создать новый SPL-токен с заданным количеством знаков после запятой |
|
| Выпустить (минтить) токены на любой адрес |
|
| Сжечь токены с аккаунта |
|
| Заморозить токен-аккаунт |
|
| Разморозить токен-аккаунт |
|
| Изменить права доступа к токену (минтинг, заморозка, владелец, закрытие) |
|
| Общее предложение и метаданные токена |
|
| Закрыть аккаунт и вернуть ренту |
|
| Одобрить делегата для перевода токенов |
|
| Отозвать одобрение делегата |
|
Переводы (3)
Инструмент | Описание | Ключевые параметры |
| Перевод SOL между кошельками |
|
| Перевод SPL-токенов |
|
| Запросить эйрдроп SOL (только devnet/testnet) |
|
Запросы к аккаунтам (4)
Инструмент | Описание | Ключевые параметры |
| Подробная информация об аккаунте |
|
| Детали транзакции по подписи |
|
| Создать ассоциированный токен-аккаунт |
|
| Список всех токен-аккаунтов кошелька |
|
Данные токенов (1)
Инструмент | Описание | Ключевые параметры |
| Баланс SPL-токенов для конкретного аккаунта |
|
Сеть (3)
Инструмент | Описание | Ключевые параметры |
| Переключение между mainnet, devnet, testnet, localhost |
|
| Текущий статус и информация о сети | -- |
| Получить недавний blockhash для формирования транзакции | -- |
Почему именно этот сервер?
Полный жизненный цикл SPL-токенов. Создание, минтинг, сжигание, заморозка, разморозка, установка прав, делегирование, закрытие — 10 инструментов, покрывающих каждую операцию. Конкуренты ограничиваются только созданием и переводом.
Инфраструктура, готовая к продакшену. Ленивая инициализация соединения (без таймаутов при запуске), 10-секундные таймауты сетевых вызовов, комплексная обработка ошибок и поддержка развертывания через Smithery.
Интеграция с Anchor. Построено с поддержкой
@coral-xyz/anchorдля взаимодействия с программами Anchor наряду с обычными операциями SPL-токенов.
Сети
Сеть | Эндпоинт |
|
|
|
|
|
|
|
|
Безопасность
Закрытые ключи хранятся только в оперативной памяти — никогда не записываются на диск
Ключи очищаются при завершении процесса
Все входные данные проверяются с помощью схем Zod
Переменные окружения
Переменная | Обязательно | Описание |
| Нет | Эндпоинт Solana RPC (по умолчанию: mainnet) |
Разработка
git clone https://github.com/ExpertVagabond/solana-mcp-server.git
cd solana-mcp-server
npm install
npm run build
npm startnpm test # Basic functionality tests
npm run type-check # TypeScript type checking
npm run lint # ESLint
npm run quality # Full quality check (lint + types + tests)Лицензия
MIT -- Purple Squirrel Media
Available Tools
25 toolsairdrop_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
Scored across 25 tools
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.
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.
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.
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
Related MCP Connectors
Run all your Solana wallets from your AI: send, swap, split, consolidate and clean up.
Solana MCP for wallets, trades, markets, PnL, transfers, onchain data, signable swaps and API tools.
Solana tools over MCP: Jupiter swaps, SPL tokens, Metaplex NFTs, SNS domains, network stats.
Solana MCP developer toolkit: wallets, trades, markets, PnL, transfers, onchain, swaps & API tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with the Solana blockchain network, supporting documentation search, blockchain queries, wallet management, and cryptographic signing operations on Devnet and Testnet.MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Solana blockchain, manage accounts and tokens, and develop and deploy smart contracts end-to-end.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with the Solana blockchain through MCP, supporting wallet queries, token swaps via Jupiter, token transfers, and market data.MIT