# BagOS

> BagOS is an open-source MCP server. MCP server for Bags on Solana: token analytics, trade quotes, and gated write operations. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/edycutjong/bagos
- **MCP Registry name:** io.github.edycutjong/bagos
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add bagos --env BAGS_API_KEY='<BAGS_API_KEY>' --env SOLANA_RPC_URL='<SOLANA_RPC_URL>' -- npx -y bagos-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "bagos": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "bagos-mcp-server"
      ],
      "env": {
        "BAGS_API_KEY": "<BAGS_API_KEY>",
        "SOLANA_RPC_URL": "<SOLANA_RPC_URL>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### Is BagOS free?

Yes. BagOS is open source, so you can use and self-host it for free.

### How do I add BagOS to Claude Code?

Run this command in your terminal: claude mcp add bagos --env BAGS_API_KEY='<BAGS_API_KEY>' --env SOLANA_RPC_URL='<SOLANA_RPC_URL>' -- npx -y bagos-mcp-server

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/bagos
