본문으로 건너뛰기
샘플 앱으로 돌아가기

Solana 서버

Claude (또는 Cursor)과 같은 도구가 Solana 직접 조회할 수 있게 해주는 기본 Solana 서버입니다. 이 통합 기능을 통해 LLM 클라이언트의 강력한 성능을 활용하여 지갑 잔액 확인, 토큰 계정 조회, 거래 내역 조회, 계정 정보 분석 등의 작업을 수행할 수 있습니다.

프론트엔드 프레임워크/라이브러리:
Solana
언어:
TypeScript
빌드 도구/개발 서버:
Model Context Protocol
샘플 앱 미리 보기

개요

The Model Context Protocol (MCP) allows you to extend AI assistants like Claude with custom tools that interact with external data sources and services. In this guide, you'll build a Solana MCP server that gives tools like Claude Desktop (or Cursor) the ability to query the Solana blockchain directly. This integration will enable Claude to perform tasks like checking wallet balances, viewing token accounts, retrieving transaction details, and analyzing account information—all while you maintain control over these interactions.

The demo uses:

Supporting resources:

시작하기

Install Dependencies

Open the project directory:

cd AI/solana-mcp

Then, install the dependencies:

npm install
# or
yarn
# or
pnpm install
# or
bun install

Build the Server:

Then, build the server:

npm run build
# or
yarn build
# or
pnpm build
# or
bun build

Setup Claude Desktop

Update your claude_desktop_config.json file with the content from example Claude desktop config. You can find instructions 여기.

Make sure to update SOLANA_RPC_ENDPOINT with your Quicknode RPC endpoint. You can get one free 여기.

Make sure your args pass in the absolute path to the built server (for us it is /YOUR_PATH/build/index.js).

Relaunch Claude Desktop after setting up your config file.

Now you can prompt Claude with commands like:

  • What is the Wallet balance of <wallet_address>?
  • What is the token balance of <wallet_address>?
  • What's the status of the Solana network?
기여 및 피드백
여러분의 의견을 듣고 싶으며, 이 샘플 앱에 대한 모든 기여를 환영합니다!
문제를 신고하거나 피드백을 공유하려면, 다음에서 GitHub 이슈를 생성해 주세요. qn-가이드-예시 저장소.
기여하시려면 다음 단계를 따르세요:
  1. 저장소를 포크하기
  2. 기능 브랜치 생성:
    git checkout -b feature/amazing-feature
  3. 변경 사항을 커밋하세요:
    git commit -m "멋진 기능 추가"
  4. 브랜치를 푸시하세요:
    git push origin feature/amazing-feature
  5. 풀 리퀘스트를 제출하세요.