BagOS

io.github.edycutjong/bagos

MCP server for Bags on Solana: token analytics, trade quotes, and gated write operations.

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "bagos": {
      "command": "npx",
      "args": [
        "-y",
        "bagos-mcp-server@3.0.7"
      ],
      "env": {
        "BAGS_API_KEY": "<your BAGS_API_KEY>",
        "BAGS_NETWORK": "devnet",
        "SOLANA_RPC_URL": "<your SOLANA_RPC_URL>",
        "BAGS_MAX_SOL_PER_TX": "0.1",
        "BAGS_MAX_SOL_PER_SESSION": "1.0",
        "BAGS_ALLOW_UNCONFIRMED": "false",
        "BOS_REQUIRED_BALANCE": "10000",
        "BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS": "false",
        "USE_MOCK_DATA": "false"
      }
    }
  }
}
Environment variables
  • BAGS_API_KEYrequiredsecretBags API key from dev.bags.fm. Required for all tools.
  • BAGS_NETWORKSolana cluster: devnet (default) or mainnet. Writes on mainnet move real funds.
  • SOLANA_RPC_URLsecretCustom Solana RPC endpoint. Defaults to the public RPC for BAGS_NETWORK.
  • BAGS_MAX_SOL_PER_TXHard cap on SOL spent by any single transaction. Default 0.1.
  • BAGS_MAX_SOL_PER_SESSIONHard cap on total SOL spent across one server session. Default 1.0.
  • BAGS_ALLOW_UNCONFIRMEDSet true to skip the two-step confirmation on writes. Default false.
  • BOS_REQUIRED_BALANCEMinimum BOS balance required to call write tools. Default 10000.
  • BAGS_ALLOW_UNCAPPED_TOKEN_SWAPSPermit non-SOL-input swaps, which the SOL-denominated caps cannot limit.
  • USE_MOCK_DATAMakes bags_get_claimable_fees return fabricated data instead of calling the API. Default false.

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
3.0.7
Registry
active
Published
9/26/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that BagOS is listed here — it’s also the link we check for a free listing.

BagOS — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-edycutjong-bagos?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="BagOS — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![BagOS — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-edycutjong-bagos?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.