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

@refundyoursol/mcp

v1.0.0

Published

RefundYourSOL MCP Server — Solana wallet cleanup, token trading, and metadata tools for AI agents

Readme

refundyoursol

MCP (Model Context Protocol) server for RefundYourSOL — the most widely used Solana wallet cleanup tool with 500K+ wallets processed.

Provides AI agents with tools for Solana wallet cleanup, token trading on 12+ DEXes, and token metadata/pricing.

Tools

Always Available (no private key needed)

| Tool | Description | |------|-------------| | scan_wallet | Scan a wallet for reclaimable SOL locked in empty token accounts (~0.002 SOL each) | | detect_dex | Detect which DEX a token trades on + price, market cap, liquidity | | get_token_info | Get metadata and pricing for one or more tokens | | get_sol_price | Get current SOL/USD price |

Require Private Key

| Tool | Description | |------|-------------| | close_accounts | Close empty token accounts and reclaim rent SOL | | burn_and_close | Burn dust tokens and close accounts in one step | | trade_token | Buy or sell tokens on 12+ DEXes (PumpSwap, Raydium, Meteora, Orca, etc.) |

Quick Start

Claude Desktop / Cursor / Windsurf

Add to your MCP config (claude_desktop_config.json or equivalent):

{
  "mcpServers": {
    "refundyoursol": {
      "command": "npx",
      "args": ["-y", "refundyoursol"],
      "env": {
        "SOLANA_PRIVATE_KEY": "your-base58-private-key",
        "SOLANA_RPC_URL": "https://your-rpc-endpoint.com"
      }
    }
  }
}

Claude Code CLI

claude mcp add refundyoursol \
  -e SOLANA_PRIVATE_KEY=your-base58-key \
  -e SOLANA_RPC_URL=https://your-rpc.com \
  -- npx -y refundyoursol

Scan-Only Mode (no private key)

Omit SOLANA_PRIVATE_KEY to run in scan-only mode with 4 read-only tools:

{
  "mcpServers": {
    "refundyoursol": {
      "command": "npx",
      "args": ["-y", "refundyoursol"]
    }
  }
}

Configuration

| Variable | Default | Description | |----------|---------|-------------| | SOLANA_PRIVATE_KEY | — | Base58 private key for signing (optional — scan-only mode if omitted) | | SOLANA_RPC_URL | https://api.mainnet-beta.solana.com | Solana RPC endpoint | | RYS_API_URL | https://refundyoursol.com | RefundYourSOL backend | | RYS_API_KEY | — | API key for token metadata/pricing endpoints | | RYS_PRIORITY_FEE | 50000 | Priority fee in microLamports |

Usage Examples

Once connected, ask your AI assistant:

  • "Scan my wallet for reclaimable SOL"
  • "Close all empty token accounts in my wallet"
  • "What DEX does this token trade on? [mint address]"
  • "Buy 0.1 SOL of [token] on Solana"
  • "Sell 100% of [token] with Jito MEV protection"
  • "What's the current SOL price?"

Safety

  • Dry-run first: close_accounts and burn_and_close use a two-step pattern — first call shows a preview, second call with the execution token confirms
  • Safety Burns: Accidental burns can be reverted (unique to RefundYourSOL)
  • Non-custodial: Keys are used locally for signing only, never sent to any server
  • Execution tokens expire: 60-second TTL prevents stale operations

Features vs Competitors

| Feature | RefundYourSOL MCP | UnclaimedSOL MCP | |---------|-------------------|------------------| | Wallet scan | Yes | Yes | | Close accounts | Yes | Yes | | Burn & close | Yes | Yes | | Safety burns (revertible) | Yes | No | | Token trading (12+ DEXes) | Yes | No | | DEX detection | Yes | No | | Token metadata/pricing | Yes | No | | Fee matching (down to 2%) | Yes | No (fixed 5%) | | Fee Payer mode (0 SOL) | Yes | No |

Links

License

MIT