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

mcp-server-bags

v0.1.6

Published

An MCP server for Bags.fm - enables token launches, partner fee management, trading, and analytics through Claude

Readme

Bags MCP Server

Use Claude AI to launch tokens, manage fees, and trade on Bags.fm - all through natural conversation.

Quick Start

# Install globally
npm install -g mcp-server-bags

# Run setup wizard
mcp-server-bags --setup

The setup wizard will:

  1. Ask for your Bags API key (from dev.bags.fm)
  2. Ask for your Solana private key (base58 encoded)
  3. Automatically configure Claude Code

Then restart Claude Code and ask: "What Bags tools do you have?"

What You Can Do

| Category | Tools | Description | |----------|-------|-------------| | Token Launch | 6 | Create tokens, set up fee sharing, launch on Solana | | Fee Management | 4 | Claim fees, resolve social accounts to wallets | | Partner | 3 | Earn 25% platform fees as a partner | | Trading | 2 | Get quotes and swap tokens | | Analytics | 1 | View claim history |

16 tools total - see them all with mcp-server-bags --tools

Commands

mcp-server-bags --setup     # Interactive setup wizard
mcp-server-bags --tools     # List all available tools
mcp-server-bags --help      # Show help
mcp-server-bags --version   # Show version

Example Conversations

Launch a token:

"Create a token called 'My Token' with symbol 'MTK' and this image: https://..."

Check partner fees:

"What are my unclaimed partner fees?"

Trade tokens:

"Swap 1 SOL for token ABC"

Set up fee sharing:

"Create a fee share config with 50% to @alice on Twitter and 50% to me"

Manual Configuration

If you prefer manual setup instead of the wizard:

For Claude Code

Add to ~/.claude.json:

{
  "mcpServers": {
    "bags": {
      "command": "mcp-server-bags",
      "env": {
        "BAGS_API_KEY": "your_key",
        "SOLANA_PRIVATE_KEY": "your_base58_key",
        "SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com"
      }
    }
  }
}

For Claude Desktop

Add to claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Same JSON format as above.

Requirements

  • Node.js 18+
  • Bags API key from dev.bags.fm
  • Solana wallet with private key (base58 encoded)

Important Notes

  • Transactions are not auto-signed - Claude generates transactions, you sign and broadcast them
  • Rate limit: 1,000 requests/hour
  • Partner keys: One per wallet, earns 25% platform fees
  • Fee claiming: Execute transactions in order (last one withdraws from vault)

Troubleshooting

Setup fails?

  • Make sure you have Node.js 18+ installed
  • Check your API key is valid at dev.bags.fm

Tools not showing in Claude?

  • Restart Claude Code/Desktop after setup
  • Run mcp-server-bags --setup again

Transaction errors?

  • Ensure wallet has SOL for fees
  • Check RPC endpoint is reachable

License

MIT