B

Baconservices MCP

by afmontoya · io.github.afmontoya/baconservices-mcp

Lets AI agents buy Bacon Services image operations (remove background, optimize for the web, colour palette, brand kit from a URL) per call in USDC on Base over x402, paid from the user's own wallet with local spending limits.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-afmontoya-baconservices-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "baconservices-mcp"
      ],
      "env": {
        "BACON_WALLET_KEY_FILE": "<VALUE>",
        "BACON_WALLET_PRIVATE_KEY": "<YOUR_VALUE>",
        "BACON_MAX_PER_CALL": "0.50",
        "BACON_MAX_PER_SESSION": "1.00",
        "BACON_MAX_PER_DAY": "5.00",
        "BACON_CONFIRM": "auto",
        "BACON_PAY_TO": "<VALUE>",
        "BACON_API_URL": "<VALUE>",
        "BACON_NETWORK": "base",
        "BACON_RPC_URL": "https://mainnet.base.org",
        "BACON_LEDGER_DIR": "~/.baconservices-mcp",
        "BACON_DISCLOSE_BALANCE": "false"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-afmontoya-baconservices-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "baconservices-mcp"
      ],
      "env": {
        "BACON_WALLET_KEY_FILE": "<VALUE>",
        "BACON_WALLET_PRIVATE_KEY": "<YOUR_VALUE>",
        "BACON_MAX_PER_CALL": "0.50",
        "BACON_MAX_PER_SESSION": "1.00",
        "BACON_MAX_PER_DAY": "5.00",
        "BACON_CONFIRM": "auto",
        "BACON_PAY_TO": "<VALUE>",
        "BACON_API_URL": "<VALUE>",
        "BACON_NETWORK": "base",
        "BACON_RPC_URL": "https://mainnet.base.org",
        "BACON_LEDGER_DIR": "~/.baconservices-mcp",
        "BACON_DISCLOSE_BALANCE": "false"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-afmontoya-baconservices-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "baconservices-mcp"
      ],
      "env": {
        "BACON_WALLET_KEY_FILE": "<VALUE>",
        "BACON_WALLET_PRIVATE_KEY": "<YOUR_VALUE>",
        "BACON_MAX_PER_CALL": "0.50",
        "BACON_MAX_PER_SESSION": "1.00",
        "BACON_MAX_PER_DAY": "5.00",
        "BACON_CONFIRM": "auto",
        "BACON_PAY_TO": "<VALUE>",
        "BACON_API_URL": "<VALUE>",
        "BACON_NETWORK": "base",
        "BACON_RPC_URL": "https://mainnet.base.org",
        "BACON_LEDGER_DIR": "~/.baconservices-mcp",
        "BACON_DISCLOSE_BALANCE": "false"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-afmontoya-baconservices-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "baconservices-mcp"
      ],
      "env": {
        "BACON_WALLET_KEY_FILE": "<VALUE>",
        "BACON_WALLET_PRIVATE_KEY": "<YOUR_VALUE>",
        "BACON_MAX_PER_CALL": "0.50",
        "BACON_MAX_PER_SESSION": "1.00",
        "BACON_MAX_PER_DAY": "5.00",
        "BACON_CONFIRM": "auto",
        "BACON_PAY_TO": "<VALUE>",
        "BACON_API_URL": "<VALUE>",
        "BACON_NETWORK": "base",
        "BACON_RPC_URL": "https://mainnet.base.org",
        "BACON_LEDGER_DIR": "~/.baconservices-mcp",
        "BACON_DISCLOSE_BALANCE": "false"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-afmontoya-baconservices-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "baconservices-mcp"
      ],
      "env": {
        "BACON_WALLET_KEY_FILE": "<VALUE>",
        "BACON_WALLET_PRIVATE_KEY": "<YOUR_VALUE>",
        "BACON_MAX_PER_CALL": "0.50",
        "BACON_MAX_PER_SESSION": "1.00",
        "BACON_MAX_PER_DAY": "5.00",
        "BACON_CONFIRM": "auto",
        "BACON_PAY_TO": "<VALUE>",
        "BACON_API_URL": "<VALUE>",
        "BACON_NETWORK": "base",
        "BACON_RPC_URL": "https://mainnet.base.org",
        "BACON_LEDGER_DIR": "~/.baconservices-mcp",
        "BACON_DISCLOSE_BALANCE": "false"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-afmontoya-baconservices-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "baconservices-mcp"
      ],
      "env": {
        "BACON_WALLET_KEY_FILE": "<VALUE>",
        "BACON_WALLET_PRIVATE_KEY": "<YOUR_VALUE>",
        "BACON_MAX_PER_CALL": "0.50",
        "BACON_MAX_PER_SESSION": "1.00",
        "BACON_MAX_PER_DAY": "5.00",
        "BACON_CONFIRM": "auto",
        "BACON_PAY_TO": "<VALUE>",
        "BACON_API_URL": "<VALUE>",
        "BACON_NETWORK": "base",
        "BACON_RPC_URL": "https://mainnet.base.org",
        "BACON_LEDGER_DIR": "~/.baconservices-mcp",
        "BACON_DISCLOSE_BALANCE": "false"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
BACON_WALLET_KEY_FILE No Path to a file containing the buyer wallet's private key.
BACON_WALLET_PRIVATE_KEY secret No The buyer wallet's private key itself (set only one of the two: BACON_WALLET_KEY_FILE or BACON_WALLET_PRIVATE_KEY). Without either, the free tools still work.
BACON_MAX_PER_CALL No Largest single payment, in USDC. Default: 0.50
BACON_MAX_PER_SESSION No Most this server process may spend. Default: 1.00
BACON_MAX_PER_DAY No Most spent in any rolling 24 hours, across all processes and restarts. Default: 5.00
BACON_CONFIRM No auto: ask before each payment when the host can; always: refuse to pay when it can't; never: don't ask (for unattended agents; the limits still apply). Default: auto
BACON_PAY_TO No Only with base-sepolia: the test copy's receiving address.
BACON_API_URL No Only with base-sepolia: the test copy's address.
BACON_NETWORK No base (real USDC, baconservices.com) or base-sepolia (test USDC, a test copy of Bacon). Default: base
BACON_RPC_URL No RPC used to check your USDC balance before paying. Default: https://mainnet.base.org
BACON_LEDGER_DIR No Where the spend ledger lives. Default: ~/.baconservices-mcp
BACON_DISCLOSE_BALANCE No true adds the exact balance and the wallet address to wallet_status. Default: false

Similar servers