> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hamla.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Hamla to Claude

> Run your marketing from Claude, ChatGPT, or any MCP client — create campaigns, read analytics, and manage contacts in natural language.

Hamla runs an MCP server, so an AI assistant can work your marketing account directly: create campaigns, read performance, look up customers. Connect once, then ask in plain language.

## Connect

<Steps>
  <Step title="Create a Hamla account">
    Sign up at [app.hamla.io](https://app.hamla.io). The Free plan is enough to try this.
  </Step>

  <Step title="Connect your business">
    Link your store, social accounts, or other tools. See [Channels and tools](/reference/channels) for what each channel needs.
  </Step>

  <Step title="Add the server to your client">
    In Claude, search for **Hamla** in the Connectors Directory, or add the URL directly:

    ```
    https://mcp.hamla.io/mcp
    ```

    You will be prompted to sign in with your Hamla account.
  </Step>
</Steps>

## Authentication

OAuth 2.1 with PKCE. You sign in with your own Hamla account and the assistant acts as you — there is no API key to paste or rotate, and access follows your normal permissions.

## What it can do

The server exposes 14 tools and 3 resources. The full list, including which
tools write, is on [MCP tools](/reference/mcp-tools).

Read-only tools cover campaigns, contacts, segments, templates, analytics, and
documentation search. Three tools write: `create-campaign` and
`update-campaign` change a draft, and `control-campaign` launches, pauses,
resumes, or schedules. MCP clients surface those as write operations, so your
assistant should confirm before calling them.

## Resources

Alongside tools, the server publishes three read-only resources an assistant can pull without being asked:

| Resource            | Contents                           |
| ------------------- | ---------------------------------- |
| `hamla://campaigns` | Summary of all campaigns           |
| `hamla://contacts`  | Top contacts by spend              |
| `hamla://analytics` | Performance overview, last 30 days |

## Data and privacy

* The server reads only what a request actually needs
* Nothing is retained beyond the session
* All traffic is HTTPS/TLS
* OAuth 2.1 with PKCE

See the [privacy policy](https://hamla.io/en/privacy) for the full terms.

## Help

Email [support@hamla.io](mailto:support@hamla.io).
