Quickstart
Quick Start Guide
This guide will help you set up Solana Agent Kit v2 in your application, including installation, initialization, and embedded wallet integration.
Core Installation
First, install the core Solana Agent Kit package:
Install Plugins
You can choose to install specific plugins based on your needs or install all available plugins:
Plugin Navigation
Token Plugin
Transfer tokens, check balances, and deploy tokens with the Token Plugin.
NFT Plugin
Create collections, mint NFTs, and manage digital assets with the NFT Plugin.
DeFi Plugin
Swap tokens, provide liquidity, and interact with DeFi protocols using the DeFi Plugin.
Blinks Plugin
Execute fast and atomic transactions with the Blinks Plugin.
Basic Initialization
Here’s how to initialize the agent with a keypair wallet:
Embedded Wallet Integration
For a better user experience, you can integrate with embedded wallets like Privy instead of directly handling private keys. Here’s how to use Solana Agent Kit with the Solana wallet adapter:
MCP Adapter Integration
The Model Context Protocol (MCP) adapter allows you to create an MCP server that Claude Desktop can use to interact with the Solana blockchain. This provides a standardized way for Claude to access Solana functionality.
Installation
Basic Setup
Create an index.js
file with the following code:
Claude Desktop Configuration
Configure Claude Desktop to use your MCP server:
-
Edit the Claude Desktop configuration file:
MacOS:
Windows:
-
Add your MCP server configuration:
-
Restart Claude Desktop after updating the configuration.
This integration allows Claude to interact directly with your Solana agent through the MCP protocol, providing seamless blockchain functionality within conversations.
Was this page helpful?