MCP directory
B

BagOS

by github.com/edycutjong · v3.0.7 · updated Sep 26, 2026

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

npm

Run it locally

Install the package and point your AI client at it.

Environment variables

  • BAGS_API_KEYrequiredsecret

    Bags API key from dev.bags.fm. Required for all tools.

  • BAGS_NETWORK

    Solana cluster: devnet (default) or mainnet. Writes on mainnet move real funds.

  • SOLANA_RPC_URLsecret

    Custom Solana RPC endpoint. Defaults to the public RPC for BAGS_NETWORK.

  • BAGS_KEYPAIR_PATH

    Path to a Solana keypair JSON file. Only required for write tools.

  • BAGS_MAX_SOL_PER_TX

    Hard cap on SOL spent by any single transaction. Default 0.1.

  • BAGS_MAX_SOL_PER_SESSION

    Hard cap on total SOL spent across one server session. Default 1.0.

  • BAGS_ALLOW_UNCONFIRMED

    Set true to skip the two-step confirmation on writes. Default false.

  • BOS_TOKEN_MINT

    Mint address of the BOS token used for gating write tools.

  • BOS_REQUIRED_BALANCE

    Minimum BOS balance required to call write tools. Default 10000.

  • BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS

    Permit non-SOL-input swaps, which the SOL-denominated caps cannot limit.

  • USE_MOCK_DATA

    Makes bags_get_claimable_fees return fabricated data instead of calling the API. Default false.

More MCP servers