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 🙏

© 2026 – Pkg Stats / Ryan Hefner

solana-mainnet-wallet-agent

v0.1.0

Published

Safety-first CLI and MCP tools for Solana mainnet-beta wallet operations.

Readme

Solana Mainnet Wallet Agent

License: MIT

Safety-first CLI and MCP server for Solana mainnet-beta wallet operations: address, balance, SPL tokens, transaction status, and guarded SOL transfers.

This software moves REAL SOL on mainnet. You are solely responsible for your funds. This is not financial advice.


Security warning

  • Operates on Solana mainnet-beta with real SOL
  • Do not use wallets that hold significant funds
  • Prefer a fresh wallet created via solana-wallet setup
  • Private keys are stored locally at ~/.config/solana-mainnet-wallet-agent/wallet.json (mode 600)
  • The CLI never prints private keys or seed phrases
  • send requires typing CONFIRM before broadcast
  • MCP exposes prepare_solana_transfer only (preview) — no automatic send tool

Install

npm install -g solana-mainnet-wallet-agent

Requires Node.js 20+.

Local development:

git clone <your-repo-url>
cd solana-mainnet-wallet-agent
npm install
npm run build
npm link

Quick start

solana-wallet setup
solana-wallet address
solana-wallet balance

Send SOL (manual confirmation required)

solana-wallet send --to <RECIPIENT> --amount 0.01

You will see a preview, then must type CONFIRM exactly to broadcast.

Check a transaction

solana-wallet tx --signature <SIGNATURE>

SPL tokens

solana-wallet tokens

CLI commands

| Command | Description | |---------|-------------| | setup | Create fresh wallet or import Solana CLI JSON | | address | Public address + QR code | | balance | SOL balance on mainnet-beta | | send --to <addr> --amount <sol> | Send SOL (requires CONFIRM) | | tx --signature <sig> | Status + Explorer link | | tokens | List SPL token accounts | | mcp | MCP server on stdio |


Configuration

| Path | Purpose | |------|---------| | ~/.config/solana-mainnet-wallet-agent/config.json | RPC URL, metadata | | ~/.config/solana-mainnet-wallet-agent/wallet.json | Keypair (Solana CLI byte array format) |

Default RPC: https://api.mainnet-beta.solana.com

Override RPC:

export SOLANA_RPC_URL=https://your-mainnet-rpc.example.com

Or set rpcUrl in config.json during setup.


MCP server

solana-wallet mcp

Tools

| Tool | Broadcasts? | Description | |------|-------------|-------------| | get_solana_address | No | Wallet public key | | get_solana_balance | No | SOL balance | | get_solana_transaction_status | No | Tx status by signature | | prepare_solana_transfer | No | Preview + unsigned tx base64 only |

There is no MCP tool that sends SOL. Users must use the CLI send command with CONFIRM.

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "solana-mainnet-wallet-agent": {
      "command": "solana-wallet",
      "args": ["mcp"]
    }
  }
}

See claude_desktop_config.example.json in this repo.


npm scripts

| Script | Purpose | |--------|---------| | npm run build | Compile to dist/ | | npm start | MCP stdio (dist/index.js) | | npm run dev | CLI from source | | npm run publish:public | npm publish --access public |


Publish

npm login
npm run pack:check
npm publish --access public

Disclaimer

This project is provided as-is without warranty. Cryptocurrency transactions are irreversible. The authors are not responsible for lost funds, incorrect addresses, RPC failures, or misuse. Not financial advice. Always verify addresses and amounts before sending on mainnet.


License

MIT