GS

grandbusta/solana-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

11 stars 5 forks 품질 44 트렌드 8

MCP 서버는 Solana 블록 체인과 개인 키와 상호 작용합니다

개요

MCP 서버는 자신의 개인 키를 사용하여 Solana 블록 체인과 상호 작용합니다. - 최신 슬롯 받기 - 지갑 주소를 받기 - 지갑 잔액 받기 - Transfer SOL Smithery를 통해 Claude 데스크톱 용 Solana MCP를 설치하십시오. 4. keypair 파일을 만들려면 keypair.json라는 이름을 입력하고 개인 키를 복사합니다. 예를 들어 example-keypair.json 파일을 확인합니다. NB: RPC 엔드포인트는 기본적으로 api.devnet.solana.com으로 설정됩니다. 다른 엔드포인트를 사용하려면 run.sh 파일에서 설정할 수 있습니다. Cursor와 통합하려면 다음 단계를 따르십시오. 1. 커서 설정에서 MCP 2.로 이동 "Add new MCP server"를 클릭하십시오. 다음 정보를 입력하십시오: - 이름: Solana MCP - 유형: 명령 - 명령: SOL, Lamports 및 USD의 지갑 잔액을 반환합니다

개요(AI 번역)

MCP 서버는 자신의 개인 키를 사용하여 Solana 블록 체인과 상호 작용합니다.

제목의 표

  • ✨특징 ₢ 킹
  • Cursor와의 통합
  • 542️사용 가능한 도구
  • 기본정보

✨ 특징

  • 최신 슬롯 받기
  • 지갑 주소를 얻기
  • 지갑 잔액 받기
  • 전송 SOL

# # ⚙️ 설정

Smithery를 통해 설치

Smithery를 통해 Claude 데스크톱 용 Solana MCP를 설치하십시오.

수동 설정

  1. 저장소를 복제

  2. 의존성 설치

  3. 프로젝트 구축

  4. keypair 파일을 만드십시오 keypair.json]라는 파일을 작성하고 개인 키를 복사합니다. 예를 들어 example-keypair.json 파일을 확인합니다.

NB: RPC 엔드포인트는 기본적으로 api.devnet.solana.com로 설정됩니다. 다른 엔드포인트를 사용하려면 run.sh] 파일에서 설정할 수 있습니다.

Cursor와 통합

Cursor와 통합하려면 다음 단계를 따르십시오.

  1. 커서 설정에서 MCP로 이동
  2. "Add new MCP 서버"를 클릭하십시오
  3. 다음 정보를 입력하십시오:
  • 이름: Solana MCP
  • 유형: 명령
  • 명령:

예제 명령:

️ 사용 가능한 도구

# # 1. get-latest 슬롯

최신 슬롯 번호를 반환:

# # 2. get-wallet-address

지갑 주소를 반환:

# # 3 get-wallet-balance

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Solana MCP Server 🌱

A MCP server to interact with the Solana blockchain with your own private key.

📖 Table of Contents

✨ Features

  • Get latest slot
  • Get wallet address
  • Get wallet balance
  • Transfer SOL

⚙️ Setup

Installing via Smithery

To install Solana MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @Grandbusta/solana-mcp --client claude

Manual Setup

  1. Clone the repository
git clone https://github.com/Grandbusta/solana-mcp.git
  1. Install dependencies
npm install
  1. Build the project
npm run build
  1. Create a keypair file Create a file named keypair.json anywhere you want and copy your private key into it. Check the example-keypair.json file for an example.

NB: RPC endpoint is set to api.devnet.solana.com by default. If you want to use a different endpoint, you can set it in the run.sh file.

Integration with Cursor

To integrate with Cursor, follow these steps:

  1. In the Cursor settings, go to MCP
  2. Click “Add new MCP server”
  3. Enter the following information:
    • Name: Solana MCP
    • Type: command
    • Command: /path/to/your/solana-mcp/run.sh /path/to/your/keypair.json

Example command: /Users/username/projects/solana-mcp/run.sh /Users/username/Documents/keypair.json

🛠️ Available Tools

1. get-latest-slot

Returns the latest slot number:

368202671

2. get-wallet-address

Returns the wallet address:

5GTuMBag1M8tfe736kcV1vcAE734Zf1SRta8pmWf82TJ

3. get-wallet-balance

Returns the wallet balance in SOL, Lamports, and USD:

{
  "lamportsBalance": "4179966000",
  "solanaBalnce": 4.179966,
  "usdBalance": "553.0513"
}

4. transfer

Transfers SOL to a recipient address:

{
  "blockTime": "1742316463",
  "meta": {
    "computeUnitsConsumed": "150",
    "err": null,
    "fee": "5000",
    "innerInstructions": [],
    "loadedAddresses": {
      "readonly": [],
      "writable": []
    },
    "logMessages": [
      "Program 11111111111111111111111111111111 invoke [1]",
      "Program 11111111111111111111111111111111 success"
    ],
    "postBalances": [
      "4179966000",
      "819999000",
      "1"
    ],
    "postTokenBalances": [],
    "preBalances": [
      "4399970000",
      "600000000",
      "1"
    ],
    "preTokenBalances": [],
    "rewards": [],
    "status": {
      "Ok": null
    }
  },
  "slot": "368211978",
  "transaction": {
    "message": {
      "accountKeys": [
        "6qhddtBoEHqTc3VM35a3rb3aLUe6vDQfmLigo2G4r5s1",
        "5GTuMBag1M8tfe736kcV1vcAE734Zf1SRta8pmWf82TJ",
GitHub에서 전체 README 보기

설치

npx -y @smithery/cli install @Grandbusta/solana-mcp --client claude
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →