MCP Now
Solana Agent Kit

Solana Agent Kit

by sendaifun
GitHub

This MCP server enables LLMs to interact with the Solana blockchain with help of Solana Agent Kit by SendAI, allowing for 40+ protcool actions and growing

solana
project
server
configuration
code

Solana Agent Kit MCP Server

SendAI

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

Features

  • Supports all actions from the Solana Agent Kit
  • MCP server implementation for standardized interactions
  • Environment-based configuration

Prerequisites

  • Node.js (v16 or higher recommended)
  • pnpm or yarn or npm
  • Solana wallet with private key
  • Solana RPC URL

Installation

1pnpm install

Configuration

  1. Configure the claude_desktop_config.json file by editing the env fields.
1SOLANA_PRIVATE_KEY=your_private_key_here 2RPC_URL=your_solana_rpc_url_here
  1. Change the Claude Desktop MCP server settings:

For MacOS:

1code ~/Library/Application\ Support/Claude/claude_desktop_config.json

For Windows:

1code $env:AppData\Claude\claude_desktop_config.json

The final configuration should look like the following (replace the path with your absolute project path):

1{ 2 "mcpServers": { 3 "agent-kit": { 4 "command": "node", 5 "env": { 6 "RPC_URL": "your_solana_rpc_url_here", 7 "SOLANA_PRIVATE_KEY": "your_private_key_here" 8 }, 9 "args": [ 10 "/ABSOLUTE/PATH/TO/YOUR/PROJECT" 11 ] 12 } 13 } 14}

Note: Make sure to restart Claude Desktop after updating the configuration and building the project.

Building the Project

To build the project, run:

1pnpm run build

This will compile the TypeScript code and set the appropriate permissions for the executable.

Project Structure

  • src/ - Source code directory
  • src/index.ts - Main entry point implementing the MCP server

Dependencies

License

ISC

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.