BagOS ๐ฆ
An MCP server that lets an AI assistant trade on Solana โ and signs nothing until you say so.
[](https://www.npmjs.com/package/bagos-mcp-server)
[](https://github.com/edycutjong/BagOS/actions/workflows/ci.yml)
[](https://registry.modelcontextprotocol.io/?q=bagos)
[](LICENSE)
## ๐ Install
```bash
npx bagos-mcp-server
```
**Claude Desktop** โ `~/Library/Application Support/Claude/claude_desktop_config.json`
(macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
```json
{
"mcpServers": {
"bagos": {
"command": "npx",
"args": ["-y", "bagos-mcp-server"],
"env": {
"BAGS_API_KEY": "your-key-here"
}
}
}
}
```
**Claude Code**:
```bash
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](#-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)**.