npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

aivy-agent-adapter-mcp

v10.1.0

Published

Create MCP servers with the Solana Agent Kit

Readme

Solana Agent Kit MCP Server Utility

This utility provides a framework for creating a Model Context Protocol (MCP) server to handle protocol operations on the Solana blockchain using the Solana Agent Kit.

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, yarn, or npm
  • Solana wallet with private key
  • Solana RPC URL

Installation

pnpm install

Configuration

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

For MacOS:

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

For Windows:

code $env:AppData\Claude\claude_desktop_config.json

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

{
    "mcpServers": {
        "agent-kit": {
            "command": "node",
            "env": {
                "RPC_URL": "your_solana_rpc_url_here",
                "SOLANA_PRIVATE_KEY": "your_private_key_here"
            },
            "args": [
                "/ABSOLUTE/PATH/TO/YOUR/MCP/PROJECT/FILE" // e.g /Users/username/Projects/solana-agent-kit-mcp-server/index.js
            ]
        }
    }
}

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

Building the Project

To build the project, run:

pnpm 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

Usage Examples

Starting the MCP Server

To start the MCP server, use the following command:

Installation

First you'll need to create a node project

pnpm init

Then install the solana-agent-kit, desired plugins and the mcp utility

pnpm add solana-agent-kit @aivy-solana-agent-kit/plugin-token @aivy-solana-agent-kit/adapter-mcp dotenv

Usage

import { SolanaAgentKit, KeypairWallet } from "@aivy-solana-agent-kit/core";
import  { startMcpServer } from '@aivy-solana-agent-kit/adapter-mcp'
import TokenPlugin from '@aivy-solana-agent-kit/plugin-token'
import * as dotenv from "dotenv";

dotenv.config();

const wallet = new KeypairWallet(process.env.SOLANA_PRIVATE_KEY)

const agent = new SolanaAgentKit(
  wallet,
  process.env.RPC_URL,
  {
    OPENAI_API_KEY: process.env.OPENAI_API_KEY,
  },
).use(TokenPlugin);

const finalActions = {
  BALANCE_ACTION: agent.actions.find((action) => action.name === "BALANCE_ACTION")!,
  TOKEN_BALANCE_ACTION: agent.actions.find((action) => action.name === "TOKEN_BALANCE_ACTION")!,
  GET_WALLET_ADDRESS_ACTION: agent.actions.find((action) => action.name === "GET_WALLET_ADDRESS_ACTION")!,
};

startMcpServer(finalActions, agent, { name: "solana-agent", version: "0.0.1" });

This will start the server once you start up Claude. You can add actions by simply adding them to the finalActions object.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. Refer to CONTRIBUTING.md for detailed guidelines on how to contribute to this project.