BagOS
MCP server by edycutjong Community
BagOS is an MCP server that lets an AI assistant read Bags token data on Solana and, after explicit confirmation, run swaps and claim creator fees. It is for people who want an assistant to work with Bags tokens without signing anything unasked.
Install BagOS
Built from the published package, never by AI.
claude mcp add bagos -e BAGS_API_KEY=YOUR_BAGS_API_KEY -- npx -y bagos-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"bagos": {
"env": {
"BAGS_API_KEY": "YOUR_BAGS_API_KEY"
},
"args": [
"-y",
"bagos-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"bagos": {
"env": {
"BAGS_API_KEY": "YOUR_BAGS_API_KEY"
},
"args": [
"-y",
"bagos-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"bagos": {
"env": {
"BAGS_API_KEY": "YOUR_BAGS_API_KEY"
},
"args": [
"-y",
"bagos-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add bagos --env BAGS_API_KEY=YOUR_BAGS_API_KEY -- npx -y bagos-mcp-server{
"mcpServers": {
"bagos": {
"env": {
"BAGS_API_KEY": "YOUR_BAGS_API_KEY"
},
"args": [
"-y",
"bagos-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add bagos npx -y bagos-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the bagos block.
About
BagOS is an MCP server that lets an AI assistant read token data on Bags, a Solana token launchpad, and trade on Solana. It offers 11 read tools for token analytics, top creators, trade quotes, claimable fees and fee-share details, plus write tools for swaps and fee claims. Write tools are off unless configured and run only on mainnet. The first call to a write tool signs nothing and returns a preview with a single-use confirmation token. Default caps are 0.1 SOL per transaction and 1 SOL per session. Writes default to devnet, and the server reports a signature and explorer link only after a transaction lands. It suits people who want an assistant to check Bags data or trade and claim fees from their own wallet.
Written from the project's README and checked against it.
Tools it gives your assistant
bags_get_token_analyticsReturns lifetime fee data for a token mint.bags_get_creatorsLists top token creators by lifetime fees.bags_get_trade_quoteGives a price quote for a swap. Does not trade.bags_get_claimable_feesShows fees currently claimable by your wallet.bags_get_token_claim_eventsShows the paginated claim audit trail for a token.bags_get_token_creatorsShows who shares a token's fees and in what proportion.bags_resolve_launch_walletMaps a social handle to a fee-share wallet.bags_heartbeatReports server status and wallet reachability.bags_execute_tradeSwaps tokens. Signs and submits after confirmation.bags_claim_feesClaims creator or LP fees. Signs and submits after confirmation.
What you need
- Bags API key from dev.bags.fm
- Keypair file set as BAGS_KEYPAIR_PATH for wallet tools
- npx to run the bagos-mcp-server package
| Setting | Needed | What it is |
|---|---|---|
BAGS_Environment variable, secret | Required | Bags API key from dev.bags.fm. Required for all tools. |
BAGS_Environment variable | Optional | Solana cluster: devnet (default) or mainnet. Writes on mainnet move real funds. Default: devnet |
SOLANA_Environment variable, secret | Optional | Custom Solana RPC endpoint. Defaults to the public RPC for BAGS_NETWORK. |
BAGS_Environment variable | Optional | Path to a Solana keypair JSON file. Only required for write tools. |
BAGS_Environment variable | Optional | Hard cap on SOL spent by any single transaction. Default 0.1. Default: 0.1 |
BAGS_Environment variable | Optional | Hard cap on total SOL spent across one server session. Default 1.0. Default: 1.0 |
BAGS_Environment variable | Optional | Set true to skip the two-step confirmation on writes. Default false. Default: false |
BOS_Environment variable | Optional | Mint address of the BOS token used for gating write tools. |
BOS_Environment variable | Optional | Minimum BOS balance required to call write tools. Default 10000. Default: 10000 |
BAGS_Environment variable | Optional | Permit non-SOL-input swaps, which the SOL-denominated caps cannot limit. Default: false |
USE_Environment variable | Optional | Makes bags_get_claimable_fees return fabricated data instead of calling the API. Default false. Default: false |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- show me the top Bags creators
- Get a price quote for swapping 0.05 SOL into a Bags token
- Show the claim events for this token mint
Good to know
- Write tools are off unless configured and run only on mainnet.
- Spend caps apply only to SOL. Other-token swaps are refused unless BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS is set.
- bags_prepare_token_metadata does not launch a token. Finish launches at bags.fm.
- Six npm audit advisories remain, all from one root cause in bigint-buffer.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to BagOS
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
BagOS: common questions
Does BagOS sign transactions without confirmation?
No. The first call to a write tool returns a preview and a single-use token, and nothing is signed or sent until the tool is called again with that token. BAGS_ALLOW_UNCONFIRMED=true skips the preview, but spend caps still apply.
Which Solana network does BagOS use?
It defaults to devnet, so an unconfigured install cannot spend real money. Write tools are mainnet-only, and the source says Bags has no devnet deployment.
Is BagOS read-only?
No. It has 11 read tools, two write tools (bags_execute_trade and bags_claim_fees) and one gated tool (bags_prepare_token_metadata).
How do I install BagOS?
In Claude Code run claude mcp add bagos -e BAGS_API_KEY=YOUR_BAGS_API_KEY -- npx -y bagos-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is BagOS the official server?
BagOS is a community project by edycutjong, not verified by a company domain.
Is BagOS free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is BagOS safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to BagOS?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does BagOS work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
