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

bagos-mcp-server

v1.0.0

Published

Claude MCP server for the Bags ecosystem, enabling wallet auth and Sol/Token trades via Bags SDK.

Readme


📸 See it in Action


🎯 Problem

Bags.fm creators manage their token economy across 3+ different dashboards — the Bags.fm web app for launches, DEX aggregators for trades, and claim portals for fee collection. This tab-switching workflow is slow, error-prone, and disconnected from modern AI-native workflows.

💡 Solution

BagOS is the first Model Context Protocol (MCP) server for Solana DeFi. It registers 10+ native tools directly into Claude Desktop, letting creators manage their entire Bags token economy through natural language.

No dashboards. No tab-switching. Just type what you want.

  • Instant Authentication — V2 wallet auth with Ed25519 signature verification
  • 🔒 $BOS Token Gate — Write operations (trades, claims, launches) require holding ≥10,000 $BOS
  • 🚀 Full Lifecycle — Launch tokens, execute trades, claim fees, view analytics — all from Claude

🏗️ Architecture

BagOS Architecture


🛠️ Tech Stack

| Layer | Technology | |-------|-----------| | MCP Server | @modelcontextprotocol/sdk v1.25+ | | DeFi SDK | @bagsfm/bags-sdk v1.3.7+ | | Blockchain | @solana/web3.js + tweetnacl + bs58 | | Validation | zod v4 | | Runtime | Node.js 22, TypeScript 5 | | Deployment | Docker / Fly.io |


🔧 Tools Reference

| Tool | Description | Token-Gated | |------|-------------|:-----------:| | bags_authenticate | V2 wallet authentication via Ed25519 | No | | bags_get_claimable_fees | Discover claimable fee positions | No | | bags_claim_fees | Claim pending creator fees | ✅ | | bags_get_trade_quote | Get swap quotes with slippage | No | | bags_execute_trade | Execute token swaps on Bags pools | ✅ | | bags_launch_token | Launch a new creator token | ✅ | | bags_get_creators | Top creators leaderboard | No | | bags_get_token_analytics | Token pool & claim stats | No | | bags_get_partner_stats | Partner referral earnings | No | | bags_heartbeat | Health check & system summary | No |


🚀 Getting Started (For Judges)

1. Clone & Install

git clone https://github.com/edycutjong/bagos.git
cd bagos && npm install

2. Configure Environment

cp .env.example .env
# Add your BAGS_API_KEY and HELIUS_RPC_URL

3. Build & Add to Claude Desktop

First, compile the server from TypeScript to JavaScript:

npm run build

Then edit ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "bagos": {
      "command": "node",
      "args": ["/absolute/path/to/bagos/build/index.js"]
    }
  }
}

4. Restart Claude Desktop & Start Chatting

🎬 Judge Shortcut: Run npm run demo to execute the full golden path flow (auth → quote → trade → claim) without needing Claude Desktop configured.


📁 Project Structure

bagos/
├── build/                # Compiled JavaScript output
├── src/
│   ├── index.ts              # MCP server entry point
│   ├── tools/                # 10 MCP tool implementations
│   │   ├── AuthenticateTool.ts
│   │   ├── ClaimFees.ts
│   │   ├── ExecuteTrade.ts
│   │   ├── GetClaimableFees.ts
│   │   ├── GetCreators.ts
│   │   ├── GetPartnerStats.ts
│   │   ├── GetTokenAnalytics.ts
│   │   ├── GetTradeQuote.ts
│   │   ├── Heartbeat.ts
│   │   ├── LaunchToken.ts
│   │   └── index.ts          # Tool registry
│   ├── lib/                  # Shared utilities
│   │   ├── bags-client.ts    # Bags SDK wrapper
│   │   ├── mcp-utils.ts      # MCP response helpers
│   │   ├── token-gate.ts     # $BOS balance verification
│   │   └── wallet.ts         # Solana keypair management
│   └── types/
│       └── IMcpTool.ts       # Tool interface definition
├── scripts/
│   ├── golden-path.ts        # E2E demo script (auth → trade → claim)
│   └── setup.sh              # Environment bootstrap
├── .env.example              # Required environment variables
├── Dockerfile                # Container deployment
├── fly.toml                  # Fly.io deployment config
└── package.json

💰 $BOS Token

$BOS is the access key for BagOS write operations. Hold ≥10,000 $BOS to unlock trades, claims, and token launches.

  • Contract Address: BagOS11111111111111111111111111111111111111
  • Trade on Bags.fm: bags.fm/BOS

🏆 Sponsor Tracks Targeted

  • Bags SDK — All 10 MCP tools use the @bagsfm/bags-sdk (v1.3.7) for authentication, trading, fee claiming, and token launches. Core integration: src/tools/
  • Token Gating — $BOS token gate implementation verifying on-chain balance before write operations. See: src/lib/token-gate.ts
  • Claude Skills Track — MCP server architecture enabling Claude Desktop as the primary DeFi interface. Entry point: src/index.ts

📄 License

MIT © 2026 Edy Cu

Built for The Bags Hackathon

Track: Claude Skills | Token: $BOS | By: @edycutjong