Skip to main content
Glama

solana-mcp-server

npm version License: MIT Node Tools

완벽한 Solana 블록체인 MCP 서버. 지갑 관리, SPL 토큰 작업, DeFi, 스테이킹 및 네트워크 쿼리를 위한 25개의 도구를 제공합니다. @solana/web3.js 및 @solana/spl-token을 기반으로 구축되었으며 Anchor를 지원합니다.

가장 활발하게 유지 관리되는 Solana MCP입니다. 경쟁 도구들이 생략하는 전체 SPL 토큰 수명 주기(생성, 발행, 소각, 동결, 동결 해제, 위임, 권한 관리)를 다룹니다.

설치

npx solana-mcp-server

또는 전역으로 설치:

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

Related 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)

도구

설명

주요 매개변수

create_wallet

새로운 Solana 키페어 생성 (메모리 전용)

--

import_wallet

base58로 인코딩된 개인 키에서 가져오기

privateKey

list_wallets

현재 세션의 모든 지갑 나열

--

get_balance

모든 주소의 SOL 잔액 조회

address

SPL 토큰 작업 (10)

도구

설명

주요 매개변수

create_spl_token

사용자 지정 소수점 자릿수로 새로운 SPL 토큰 생성

walletName, decimals

mint_tokens

모든 주소로 토큰 발행

walletName, tokenMint, amount

burn_tokens

계정에서 토큰 소각

walletName, tokenMint, amount

freeze_account

토큰 계정 동결

walletName, tokenMint, accountAddress

thaw_account

토큰 계정 동결 해제

walletName, tokenMint, accountAddress

set_token_authority

토큰 권한 변경 (발행, 동결, 소유자, 닫기)

walletName, tokenMint, authorityType

get_token_supply

토큰의 총 공급량 및 메타데이터

tokenMint

close_token_account

계정을 닫고 렌트 반환

walletName, tokenAccount

approve_delegate

토큰 전송을 위한 위임 승인

walletName, tokenAccount, delegate, amount

revoke_delegate

위임 승인 취소

walletName, tokenAccount

전송 (3)

도구

설명

주요 매개변수

transfer_sol

지갑 간 SOL 전송

from, to, amount

transfer_tokens

SPL 토큰 전송

from, to, tokenMint, amount

airdrop_sol

SOL 에어드랍 요청 (데브넷/테스트넷 전용)

address, amount

계정 쿼리 (4)

도구

설명

주요 매개변수

get_account_info

상세 계정 정보

address

get_transaction

서명별 거래 세부 정보

signature

create_token_account

연결된 토큰 계정 생성

walletName, tokenMint

get_token_accounts

지갑의 모든 토큰 계정 나열

address

토큰 데이터 (1)

도구

설명

주요 매개변수

get_token_balance

특정 계정의 SPL 토큰 잔액

address, tokenMint

네트워크 (3)

도구

설명

주요 매개변수

switch_network

메인넷, 데브넷, 테스트넷, 로컬호스트 간 전환

network

get_network_info

현재 네트워크 상태 및 정보

--

get_recent_blockhash

거래 생성을 위한 최근 블록 해시

--

왜 이 도구인가?

  • 완벽한 SPL 토큰 수명 주기. 생성, 발행, 소각, 동결, 동결 해제, 권한 설정, 위임, 닫기 등 모든 작업을 다루는 10개의 토큰 도구. 경쟁 도구들은 생성/전송에서 멈춥니다.

  • 운영 준비가 완료된 인프라. 지연 연결 초기화(시작 시간 초과 없음), 10초 네트워크 호출 타임아웃, 포괄적인 오류 처리 및 Smithery 배포 지원.

  • Anchor 통합. 원시 SPL 토큰 작업과 함께 Anchor 프로그램과 상호작용할 수 있도록 @coral-xyz/anchor 지원을 포함하여 구축되었습니다.

네트워크

네트워크

엔드포인트

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

보안

  • 개인 키는 메모리에만 저장되며 디스크에 절대 저장되지 않음

  • 프로세스 종료 시 키 삭제

  • 모든 입력값은 Zod 스키마로 검증됨

환경 변수

변수

필수

설명

SOLANA_RPC_URL

아니오

Solana RPC 엔드포인트 (기본값: 메인넷)

개발

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)

라이선스

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