Solana Agent Kit MCP Server

By sendaifunCreated 9 days ago
starstarstarstarstar

A Solana Agent Kit implementation using the Model Context Protocol (MCP) for handling protocol operations on the Solana blockchain.

Visit Project
Share this MCP:
X (Formerly Twitter)RedditblueskyThreads by Instagram

Category

Official MCP Server

Tags

SolanaBlockchainClaude AiMcpSolana Agent Kit

What is Solana Agent Kit MCP Server?

Solana Agent Kit MCP Server is a Solana Agent Kit implementation that uses the Model Context Protocol (MCP) to enable Claude AI to interact with the Solana blockchain. It serves as an onchain toolkit that standardizes blockchain operations for AI agents, allowing seamless transactions, account queries, and wallet management on the Solana network.

How to use Solana Agent Kit MCP Server?

You can install and use the Solana MCP server through multiple methods:

  1. Quick Install (Recommended): Use the installation script for an interactive setup

    curl -fsSL https://raw.githubusercontent.com/sendaifun/solana-mcp/main/scripts/install.sh -o solana-mcp-install.sh
    chmod +x solana-mcp-install.sh && ./solana-mcp-install.sh --backup
    
  2. npm Install: For direct use with CLI tools or project integration

    npm install -g solana-mcp
    # or
    npm install solana-mcp
    
  3. Building from Source: For developers who want to modify the project

    git clone https://github.com/sendaifun/solana-mcp
    cd solana-mcp
    pnpm install
    pnpm run build
    

After installation, configure the environment variables in the .env file and integrate the MCP server with Claude Desktop by modifying the configuration file:

{
  "mcpServers": {
    "solana-mcp": {
      "command": "npx",
      "args": ["solana-mcp"],
      "env": {
        "RPC_URL": "your_solana_rpc_url_here",
        "SOLANA_PRIVATE_KEY": "your_private_key_here",
        "OPENAI_API_KEY": "your_openai_api_key"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Key features of Solana Agent Kit MCP Server?

  • Blockchain Integration: Allows Claude AI to interact with the Solana blockchain via standardized MCP interfaces
  • Wallet Management: Seamlessly manage Solana wallets for AI agent operations
  • Transaction Execution: Execute various blockchain operations including token deployments and transfers
  • Account Queries: Retrieve account information such as balances and asset details
  • NFT Support: Capabilities for creating and minting new NFTs
  • Security Focus: Emphasizes secure handling of private keys and sensitive operations
  • Multi-environment Support: Works on mainnet, testnet, and devnet for testing and production

Use cases of Solana Agent Kit MCP Server?

  1. Automated Blockchain Operations: AI agents can autonomously execute trades, transfers, and queries
  2. Token Deployment: Automate the deployment of new tokens on Solana
  3. Wallet Management: AI agents can manage and interact with Solana wallets securely
  4. NFT Operations: Create and mint NFTs programmatically
  5. Transaction Monitoring: Get real-time insights on blockchain transactions per second
  6. Development Testing: Easily request funds for testnet/development purposes
  7. Domain Resolution: Resolve Solana domain names automatically

FAQ about Solana Agent Kit MCP Server?

  • What is the primary purpose of the MCP server?

It extends Claude AI's capabilities by providing tools to interact with the Solana blockchain and execute operations like token transfers and NFT minting.

  • What are the system requirements?

Node.js (v16 or higher) and pnpm/npm/yarn are required. A Solana wallet with a private key and an RPC URL are also needed.

  • How do I secure my private key?

Store your private key in environment variables and never share it. Consider using a dedicated wallet for AI operations.

  • Can I test operations before mainnet deployment?

Yes, the server supports testnet and devnet environments for testing before moving to mainnet.

  • What if I encounter errors during setup?

Verify your private key, check your RPC URL is correct, ensure the right network is selected, and examine Claude Desktop logs for error messages.