# Lockally Email MCP server

> Allows AI agents to manage email accounts, send messages, manage domains, and monitor delivery logs via a command-line interface.

- Repository: https://github.com/lockallyinc/lockally-cli
- Page: https://hostedmcp.org/servers/lockallyinc/lockally-cli
- Transport: remote
- Stars: 1
- License: MIT
- Latest version: 1.0.2

## Install

### Claude Code

```sh
claude mcp add --transport http lockally-cli https://mcp.lockally.com/
```

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

```json
{
  "mcpServers": {
    "lockally-cli": {
      "url": "https://mcp.lockally.com/"
    }
  }
}
```

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

```json
{
  "servers": {
    "lockally-cli": {
      "type": "http",
      "url": "https://mcp.lockally.com/"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"lockally-cli","type":"http","url":"https://mcp.lockally.com/"}'
```

### Codex

```sh
codex mcp add lockally-cli --url https://mcp.lockally.com/
```

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

```toml
[mcp_servers.lockally-cli]
url = "https://mcp.lockally.com/"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http lockally-cli https://mcp.lockally.com/
```

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

```json
{
  "mcpServers": {
    "lockally-cli": {
      "url": "https://mcp.lockally.com/",
      "type": "http"
    }
  }
}
```

## FAQ

### How do I authenticate with Lockally?

You can authenticate by running `lockally login` and pasting your API key, passing it directly with the `--api-key` flag, or setting the `LOCKALLY_API_KEY` environment variable.

### How can I manage my email templates?

The CLI provides commands to list, create, update, and remove templates, and you can use `lockally deploy` to reconcile a `lockally.json` configuration file with your account.
