# smbCloud MCP server

> Manages email infrastructure, authentication, and deployments through a command-line interface and MCP server.

- Repository: https://github.com/smbcloudXYZ/smbcloud-cli
- Page: https://hostedmcp.org/servers/smbcloudxyz/smbcloud-cli
- Transport: stdio, remote
- Stars: 12
- Latest version: 1.2.0

## Install

### Claude Code

```sh
claude mcp add --env 'SMB_MAIL_API_KEY=<YOUR_SMB_MAIL_API_KEY>' smbcloud-cli -- npx -y @smbcloud/cli
```

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

```json
{
  "mcpServers": {
    "smbcloud-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@smbcloud/cli"
      ],
      "env": {
        "SMB_MAIL_API_KEY": "<YOUR_SMB_MAIL_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "smbcloud-cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@smbcloud/cli"
      ],
      "env": {
        "SMB_MAIL_API_KEY": "<YOUR_SMB_MAIL_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"smbcloud-cli","type":"stdio","command":"npx","args":["-y","@smbcloud/cli"],"env":{"SMB_MAIL_API_KEY":"<YOUR_SMB_MAIL_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "smbcloud-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@smbcloud/cli"
      ],
      "env": {
        "SMB_MAIL_API_KEY": "<YOUR_SMB_MAIL_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add smbcloud-cli --env 'SMB_MAIL_API_KEY=<YOUR_SMB_MAIL_API_KEY>' -- npx -y @smbcloud/cli
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.smbcloud-cli]
command = "npx"
args = ["-y", "@smbcloud/cli"]

[mcp_servers.smbcloud-cli.env]
SMB_MAIL_API_KEY = "<YOUR_SMB_MAIL_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'SMB_MAIL_API_KEY=<YOUR_SMB_MAIL_API_KEY>' smbcloud-cli npx -- -y @smbcloud/cli
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "smbcloud-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@smbcloud/cli"
      ],
      "env": {
        "SMB_MAIL_API_KEY": "<YOUR_SMB_MAIL_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `SMB_MAIL_API_KEY` | no | yes | Mail app API key (smb_mail_...) used by the mail_send tool. Optional: every other tool uses the session from `smb login`. |

## FAQ

### Does smbCloud require a browser to function?

No, every smbCloud capability is accessible without a browser via the REST API, the CLI, or the MCP server.

### How do I use smbCloud in a CI/CD environment?

Use the `--ci` flag to disable interactive prompts, ensuring that missing answers cause the process to fail immediately rather than hanging.
