原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

BagOS

作者:edycutjong版本 3.0.7i★ –i在你的电脑上运行
注册名称io.github.edycutjong/bagos

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 营销与社交媒体
  • 你需要填写:BAGS_API_KEY, SOLANA_RPC_URL

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: BAGS_API_KEY, BAGS_NETWORK, SOLANA_RPC_URL, BAGS_KEYPAIR_PATH, BAGS_MAX_SOL_PER_TX, BAGS_MAX_SOL_PER_SESSION, BAGS_ALLOW_UNCONFIRMED, BOS_TOKEN_MINT, BOS_REQUIRED_BALANCE, BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS, USE_MOCK_DATA

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

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

在终端中运行这条命令

claude mcp add bagos --env BAGS_API_KEY=your-value --env BAGS_NETWORK=your-value --env SOLANA_RPC_URL=your-value --env BAGS_KEYPAIR_PATH=your-value --env BAGS_MAX_SOL_PER_TX=your-value --env BAGS_MAX_SOL_PER_SESSION=your-value --env BAGS_ALLOW_UNCONFIRMED=your-value --env BOS_TOKEN_MINT=your-value --env BOS_REQUIRED_BALANCE=your-value --env BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS=your-value --env USE_MOCK_DATA=your-value -- npx -y bagos-mcp-server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

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

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

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

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • BAGS_API_KEY 机密 必填 env
    Bags API key from dev.bags.fm. Required for all tools.
  • BAGS_NETWORK env
    Solana cluster: devnet (default) or mainnet. Writes on mainnet move real funds.
  • SOLANA_RPC_URL 机密 env
    Custom Solana RPC endpoint. Defaults to the public RPC for BAGS_NETWORK.
  • BAGS_KEYPAIR_PATH env
    Path to a Solana keypair JSON file. Only required for write tools.
  • BAGS_MAX_SOL_PER_TX env
    Hard cap on SOL spent by any single transaction. Default 0.1.
  • BAGS_MAX_SOL_PER_SESSION env
    Hard cap on total SOL spent across one server session. Default 1.0.
  • BAGS_ALLOW_UNCONFIRMED env
    Set true to skip the two-step confirmation on writes. Default false.
  • BOS_TOKEN_MINT env
    Mint address of the BOS token used for gating write tools.
  • BOS_REQUIRED_BALANCE env
    Minimum BOS balance required to call write tools. Default 10000.
  • BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS env
    Permit non-SOL-input swaps, which the SOL-denominated caps cannot limit.
  • USE_MOCK_DATA env
    Makes bags_get_claimable_fees return fabricated data instead of calling the API. Default false.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 edycutjong 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“营销与社交媒体”中的其他服务器比较i

  • 星标数多于此分类中其他 2970 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 2970 个服务器的 40% 更新
  • 基础检查结果等于或优于此分类中其他 2970 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

BagOS 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:BAGS_API_KEY, SOLANA_RPC_URL

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(3.0.7)于41天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

MCP YouTube Transcript

作者:jkawamoto

An MCP server retrieving transcripts of YouTube videos

在你的电脑上运行★ 495MIT9天前更新
安装

Google Analytics MCP

作者:surendranb

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

在你的电脑上运行★ 244MIT9天前更新
安装

AI video summarizer: summarize and transcribe YouTube, Bilibili, TikTok and podcast videos.

在云端运行★ 137MIT10天前更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

BagOS 🚦 An MCP server that lets an AI assistant trade on Solana — and signs nothing until you say so.

🚀 Install

npx bagos-mcp-server

Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{

"mcpServers": { "bagos": { "command": "npx", "args": ["-y", "bagos-mcp-server"], "env": { "BAGS_API_KEY": "your-key-here" } } } }

Claude Code:

claude mcp add bagos --env BAGS_API_KEY=your-key-here -- npx -y bagos-mcp-server

Restart the client, then ask it: *"show me the top Bags creators"*. The server prints a configuration report to stderr on startup; if something is missing it tells you which variable and why.

An API key alone gives you 8 of the 11 read tools. Three of them — bags_heartbeat, bags_get_claimable_fees and bags_authenticate — report on *your* wallet, so they also need BAGS_KEYPAIR_PATH and will error without it. Writes stay off until you configure them (Getting Started).

🔒 Why this is safe to hand an assistant

  • Nothing signs on the first call. A write tool answers with a preview and a single-use token fingerprinted to those exact arguments; nothing reaches the chain until you call again with it.
  • Hard SOL caps. 0.1 per transaction and 1 per session by default, refused before the Bags SDK is called.
  • Devnet by default. Writes are mainnet-only, so an unconfigured install cannot spend real money.

Full threat model, disclosure policy and the limits of each control: [.github/SECURITY.md](.github/SECURITY.md).

⚠️ If you used 1.x — v2.0.0 corrected a serious defect

v2.0.0 corrects a serious defect. In 1.x the write tools built

transactions, discarded them, and reported success — nothing was ever signed

or submitted. If you used 1.x and believed a trade or claim executed, it did

not. See CHANGELOG.md.

2.x is live on npm and is what npx bagos-mcp-server installs — see the

latest release. Every release ships with

npm provenance —

the tarball is cryptographically attested to this repository and the commit that built it.

1.x is deprecated on npm. If you are still on it, upgrade.


📦 Where it's listed


💡 The Problem & Solution

The Problem

An MCP server that can move money gives an AI assistant a signing key. The assistant decides, and the transaction is already on chain by the time a human reads about it. Nothing in the protocol makes the model pause, and nothing bounds what a single misunderstood instruction can spend.

The Solution

Bags is a Solana token launchpad whose defining feature is creator fee sharing: a token's trading fees are split on-chain between the people who launched and promote it, claimable at any time. That makes "who earns from this token, how much is claimable, and claim it" a real workflow — and the one BagOS automates.

BagOS lets an AI assistant read Bags/Solana token data and — with explicit confirmation — execute swaps and claim creator fees from your wallet. Writes are off unless you configure them, they are mainnet-only, and the first call to a write tool signs nothing: it returns a preview and a single-use token that only authorizes the exact arguments it was issued for.


🏗️ Architecture & Tech Stack

Every write goes through this:

token gate → spend caps → confirmation → simulate → sign → send → confirm
ToolTypeWhat it does
bags_heartbeatreadServer status and wallet reachability
bags_get_token_analyticsreadLifetime fee data for a token mint
bags_get_creatorsreadTop token creators by lifetime fees
bags_get_trade_quotereadPrice quote for a swap. Does not trade.
bags_get_claimable_feesreadFees currently claimable by your wallet
bags_get_partner_statsreadPartner config claim statistics
bags_get_token_claim_statsreadPer-creator claim totals — the royalty roster with amounts claimed
bags_get_token_claim_eventsreadThe claim audit trail for a token, paginated
bags_get_token_creatorsreadWho shares a token's fees, and in what proportion
bags_resolve_launch_walletreadSocial handle (twitter/tiktok/kick/github) → fee-share wallet
bags_authenticatereadVerify wallet ownership via Ed25519 signature
bags_prepare_token_metadatagatedCreates token info + metadata. Does not launch a token.
bags_execute_tradewriteSwap tokens. Signs and submits.
bags_claim_feeswriteClaim creator/LP fees. Signs and submits.

bags_prepare_token_metadata reserves a mint and uploads metadata. Completing a launch also requires a Meteora fee-share config, whose fee-claimer split has to be your decision — so this server does not implement that step rather than guessing at it. Finish the launch at bags.fm.


🔐 Write Tools & Spend Controls

Writes are off unless you configure them, and they are mainnet-only.

Bags has no devnet deployment. Its API endpoint and its Meteora/fee-share program IDs are all mainnet. This server nonetheless defaults to devnet, so an unconfigured install cannot spend real money. Calling a write tool on devnet returns an explanation, not a cryptic program error.

The first call to a write tool signs nothing. It returns a preview and a single-use token:

⚠️  CONFIRMATION REQUIRED — nothing has been signed or sent.

Action: Swap 0.05 of So1111…1112 for EkJuyY…dBAGS expect 4823917722 (min 4679199990) slippage 3% network 🔴 MAINNET — real funds

Spend: 0.05 SOL Caps: 0.1 SOL/tx · 0/1 SOL used this session

To execute, call bags_execute_trade again with the identical arguments plus: confirm: "kR3nT9xQm2vP"

The token is a fingerprint of the tool name plus the exact arguments, so one issued for a 0.01 SOL swap cannot authorize a 10 SOL one. It expires in five minutes and is consumed on every outcome, so it cannot be replayed.

On success you get a real signature and explorer link — never a success message for a transaction that did not land.

Set BAGS_ALLOW_UNCONFIRMED=true to skip the preview. Spend caps still apply.

The caps only bind on SOL. A swap whose input is some other token cannot be valued in SOL, so no cap can limit it. Those swaps are refused by default; set BAGS_ALLOW_UNCAPPED_TOKEN_SWAPS=true to permit them, and the preview will say plainly that the trade is uncapped.


⛓️ Live Deployment

A real transaction, landed through the production write path and re-fetched from the chain rather than trusted from a return value:

Signature2kvu25xW…U5Dm
Clusterdevnet
Slot484219564
Statuserr: null
Captured2026-08-16

Reproduce it yourself with npm run proof:devnet — it funds a throwaway keypair from the faucet, pushes a transfer through the same simulate → sign → send → confirm path the write tools use, then re-fetches the signature from the chain. A function returning success is a claim; a signature you can open on an explorer is evidence. Full method in DEMO.md.


📊 Engineering Rigor

418 tests. The bypass tests around the spend caps and the confirmation step are load-bearing; treat a change there as a security change. They were checked by hand against deliberate mutations: deleting the cap guard, the confirmation check, the decimals lookup, or the spend recorder each makes the suite fail. That was a manual exercise, not an automated mutation-testing stage — there is no mutation config in this repo to re-run.

LayerStatusDetails

| Real default path | ✅ | No kill-switch flag in any documented command. USE_MOCK_DATA defaults off; when on, it affec

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx