Skip to content
Grok

BagOS for Grok

io.github.edycutjong/bagos

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

client:Grok transport:stdio runtime:npm

Install BagOS in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "bagos": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "bagos-mcp-server"
      ],
      "env": {
        "BAGS_API_KEY": "<BAGS_API_KEY>",
        "BAGS_NETWORK": "<BAGS_NETWORK>",
        "SOLANA_RPC_URL": "<SOLANA_RPC_URL>",
        "BAGS_KEYPAIR_PATH": "<BAGS_KEYPAIR_PATH>",
        "BAGS_MAX_SOL_PER_TX": "<BAGS_MAX_SOL_PER_TX>",
        "BAGS_MAX_SOL_PER_SESSION": "<BAGS_MAX_SOL_PER_SESSION>",
        "BAGS_ALLOW_UNCONFIRMED": "<BAGS_ALLOW_UNCONFIRMED>",
        "BOS_TOKEN_MINT": "<BOS_TOKEN_MINT>",
        "BOS_REQUIRED_BALANCE": "<BOS_REQUIRED_BALANCE>",
        "BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS": "<BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS>",
        "USE_MOCK_DATA": "<USE_MOCK_DATA>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

BagOS in other clients