# BagOS [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/edycutjong/bagos  
**GitHub Stars:** 1  
**npm Downloads (last month):** 416  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/bagos

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

## Tools
Capabilities this server exposes over MCP:

- **bags_authenticate** — Authenticate with Bags API utilizing the V2 signature challenge flow. Uses the wallet at BAGS_KEYPAIR_PATH (default ~/.config/bags/keypair.json).
- **bags_claim_fees** — GATED WRITE: Claim pending creator/LP fees for the given token mints. Requires $BOS. Two-step: the first call previews and returns a confirmation token; call again with it to sign and submit. Returns confirmed on-chain signatures.
- **bags_execute_trade** — GATED WRITE: Swap tokens on Bags pools. Requires $BOS. Two-step: the first call returns a preview and a confirmation token; call again with that token to sign and submit. Returns a confirmed on-chain signature. SOL mint: So11111111111111111111111111111111111111112.
- **bags_get_claimable_fees** — Query all claimable creator/LP fees for a wallet. Free read-only tier.
- **bags_get_creators** — Query top creators by lifetime fees on Bags. Free read-only tier.
- **bags_get_partner_stats** — View partner referral earnings for the configured wallet. Free read-only tier.
- **bags_get_token_analytics** — Get pool info, claim stats, and bonding curve progress for a token. Free read-only tier.
- **bags_get_token_claim_events** — Get the fee-claim audit trail for a token: who claimed, how much, when, and the transaction signature. Paginated via limit/offset. Free read-only tier.
- **bags_get_token_claim_stats** — Get per-creator claim totals for a token: each fee-share creator with their royalty split and total claimed amount. Free read-only tier.
- **bags_get_token_creators** — Get the royalty split for a token: every creator sharing its fees, their wallet, social provider, and share in basis points. Free read-only tier.
- **bags_get_trade_quote** — Get a swap quote to trade SOL and any Bags ecosystem token. Free read-only tier. SOL mint: So11111111111111111111111111111111111111112. Default BOS token mint: EkJuyYyD3to61CHVPJn6wHb7xANxvqApnVJ4o2SdBAGS.
- **bags_heartbeat** — Periodic health check combining basic node status with an earnings/balance summary. Free read-only tier.
- **bags_prepare_token_metadata** — GATED: Create token info and metadata on Bags, returning the reserved mint address and metadata URL. Requires $BOS. This PREPARES a launch — it does not launch the token and does not send an on-chain transaction.
- **bags_resolve_launch_wallet** — Resolve a social handle (twitter, tiktok, kick, or github) to its Bags fee-share launch wallet. Free read-only tier.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "bagos": {
    "command": "npx",
    "args": ["-y","bagos-mcp-server"],
    "env": {
      "BAGS_API_KEY": "",
      "BAGS_KEYPAIR_PATH": ""
    }
  }
}
```

**Requires environment variables:** `BAGS_API_KEY`, `BAGS_KEYPAIR_PATH` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What the BagOS MCP server does

The BagOS MCP server gives an MCP client access to Bags and related Solana data. It can retrieve token analytics, creator fee shares, claim totals, claim events, partner statistics, claimable wallet fees, and trade quotes. It also resolves launch-related social handles to fee-share wallets and can verify wallet ownership with an Ed25519 signature.

The server includes write paths for swapping tokens and claiming creator or liquidity-provider fees. A separate gated operation prepares token information and metadata, but it does not complete a token launch. The remaining launch configuration must be completed through Bags.

## How it works

Read operations can use the Bags API key. Wallet-specific reads, including heartbeat, claimable-fee lookup, and authentication, also require access to the configured keypair. Write operations are disabled until the required wallet and write configuration is present.

For a write, the first request produces a preview and a single-use authorization token tied to the requested arguments. The action proceeds only after the token is supplied for confirmation. The documented execution sequence applies spend limits, simulates the transaction, signs it, submits it, and waits for confirmation.

Default controls limit spending to 0.1 SOL per transaction and 1 SOL per session. Writes use mainnet only, while the default setup is devnet-oriented and does not enable spending without configuration.

## Setup and configuration

The BagOS MCP server can be started with:

```bash
npx bagos-mcp-server
```

Set `BAGS_API_KEY` in the MCP client's server configuration. Add `BAGS_KEYPAIR_PATH` when using wallet-specific read tools or any workflow that needs a wallet. The README provides configuration examples for Claude Desktop and a `claude mcp add` command for Claude Code. Restart the client after adding the server. On startup, the process reports configuration problems to stderr and identifies missing variables.

## Tools and capabilities

The available read tools cover:

- Server and wallet reachability
- Token lifetime fee analytics
- Top creators and token fee-sharing proportions
- Trade quotes without executing a swap
- Claimable fees, partner statistics, claim totals, and paginated claim events
- Launch-wallet resolution and wallet authentication

The gated metadata tool creates token information and uploads metadata. `bags_execute_trade` signs and submits swaps, while `bags_claim_fees` signs and submits fee claims after confirmation.

## Limitations and notes

The BagOS MCP server does not implement the full token-launch flow. In particular, it does not create the Meteora fee-share configuration or choose the fee-claimer split; that decision and the remaining launch steps must be completed at Bags.

The README warns that 1.x incorrectly reported write success without signing or submitting transactions. Use the current 2.x package installed by `npx bagos-mcp-server`, rather than the deprecated 1.x release. Review the project's security documentation before enabling wallet-backed writes, and treat transaction confirmation and spend caps as controls rather than a substitute for human review.

_Full upstream README: https://allmcps.com/mcp/bagos/readme_

