🚦 MCP server for Bags on Solana. Every AI-initiated spend is token-gated, SOL-capped, and requires a single-use confirmation before anything is signed.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add bagos --env BAGS_API_KEY='<BAGS_API_KEY>' --env SOLANA_RPC_URL='<SOLANA_RPC_URL>' -- npx -y bagos-mcp-server~/.codex/config.toml
[mcp_servers.bagos]
command = "npx"
args = ["-y", "bagos-mcp-server"]
env = { BAGS_API_KEY = "<BAGS_API_KEY>", SOLANA_RPC_URL = "<SOLANA_RPC_URL>" }
# codex mcp add bagos --env BAGS_API_KEY='<BAGS_API_KEY>' --env SOLANA_RPC_URL='<SOLANA_RPC_URL>' -- npx -y bagos-mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"bagos": {
"command": "npx",
"args": [
"-y",
"bagos-mcp-server"
],
"env": {
"BAGS_API_KEY": "<BAGS_API_KEY>",
"SOLANA_RPC_URL": "<SOLANA_RPC_URL>"
}
}
}
}.vscode/mcp.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>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"bagos": {
"command": "npx",
"args": [
"-y",
"bagos-mcp-server"
],
"env": {
"BAGS_API_KEY": "<BAGS_API_KEY>",
"SOLANA_RPC_URL": "<SOLANA_RPC_URL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"bagos": {
"command": "npx",
"args": [
"-y",
"bagos-mcp-server"
],
"env": {
"BAGS_API_KEY": "<BAGS_API_KEY>",
"SOLANA_RPC_URL": "<SOLANA_RPC_URL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"bagos": {
"command": "npx",
"args": [
"-y",
"bagos-mcp-server"
],
"env": {
"BAGS_API_KEY": "<BAGS_API_KEY>",
"SOLANA_RPC_URL": "<SOLANA_RPC_URL>"
}
}
}
}Environment variables
BAGS_API_KEYSOLANA_RPC_URL
Replace the placeholders with your own credentials and keep them out of version control.