> For the complete documentation index, see [llms.txt](https://docs.360dialog.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.360dialog.com/docs/get-started/mcp.md). Agents can also search and read this documentation through its [MCP server](https://docs.360dialog.com/docs/~gitbook/mcp).

# 360Dialog MCP

Learn how to manage your 360Dialog account using an AI agent

Connect your AI agent to 360Dialog's [Model Context Protocol (MCP)](https://modelcontextprotocol.io/docs/getting-started/intro) server and manage WhatsApp infrastructure with ease.

## Introduction

360Dialog MCP is a hosted server that gives AI agents secure, fine-grained access to your 360Dialog account:  It is designed to work with popular AI assistants like Claude, Claude Code, Cursor, Codex, VS Code, and more.

### Benefits

* **Ease of access —** Effortlessly manage assets using natural language
* **Faster troubleshooting —** See a number's status, quality rating, messaging limit, verification and policy violations in one answer
* **AI-powered flows —** Offload existing manual account management flows to AI agents
* **Fine-grained access control —** Select which scopes to allow during connection
* **UI/JSON previews —** View template previews, analytics charts, and example Messaging API JSON

### Capabilities

* **Sign up and onboard numbers —** Get a sign-up link, check whether a number is eligible, connect it and track it until it's live
* **Manage your company details —** View and update the company details on your 360Dialog account
* **Manage channels —** List your numbers and flag issues that block sending, like quality rating, messaging limits or policy violations.
* **Inspect and edit channel profiles —** View and update profiles, display names, business usernames and catalog settings
* **Block and unblock users —** See who is blocked from messaging your number, and block or unblock WhatsApp users
* **Manage WhatsApp templates —** Create, preview, list and delete templates, and get sample send JSON
* **Configure webhooks —** Read, set and test webhook URLs per channel
* **Track usage —** View messages sent, delivered and billed, and call volume and cost, per number
* **Query balance and invoices —** View balances, transactions, invoices, subscriptions and auto top-up settings, see what a top-up would cost, and get links to add a card or pay an invoice
* **Manage API keys —** Generate API keys for your numbers and see which numbers already have one
* **Share numbers with your partner —** Let your partner manage API keys for selected numbers
* **Manage security settings —** Manage your IP allowlist and view your webhook signing secret
* **Manage users —** List users, invite new ones, change roles and remove access
* **Manage numbers —** Move data to a local storage region, change billing currency, and cancel or reactivate numbers
* **Move to a new partner —** Check whether your numbers can move to another partner, request the move and track its status
* **Set up** [**Meta Business Agent**](https://docs.360dialog.com/docs/mba/meta-business-agent.md) **—** Check eligibility, onboard, configure, test and review the agent on your numbers
* [**Work in your inbox**](https://docs.360dialog.com/docs/inbox/overview.md) **—** Search, read, manage and reply to conversations
* **Search documentation —** Look up the public client documentation
* **Follow guided workflows —** Load curated skills and guides
* **Check platform status —** See whether 360Dialog or WhatsApp has an outage, and subscribe to status updates
* **Test on the sandbox —** Register a phone number for test messages and webhook events

## Quickstart

{% stepper %}
{% step %}

### Connect to MCP

360Dialog MCP is a streamable HTTP server. Any AI tool that has an MCP client, supports the streamable HTTP protocol, and remote MCP servers can connect to it by adding the server's URL:

```shellscript
https://mcp.360dialog.com/mcp
```

**Claude Code** users can run this command to connect to the MCP server:

```shellscript
claude mcp add --transport http 360dialog https://mcp.360dialog.com/mcp
```

**Codex** users can run this command to connect to the MCP server:

{% code overflow="wrap" %}

```shellscript
codex mcp add 360dialog --url https://mcp.360dialog.com/mcp
```

{% endcode %}

You may need to restart the AI tool afterwards for the changes to take effect.
{% endstep %}

{% step %}

### Start Authentication

After adding the MCP server and restarting your MCP client, you will either:

1. Be taken to the 360Dialog MCP consent page, or
2. Be asked by your AI tool to authenticate with the MCP server.

Some tools work without logging in: documentation search and skills. If you only use those, your agent will ask you to log in the first time you call a tool that needs an account.

Steps to start or re-attempt authentication with the MCP server vary.

For **Claude Code,** use the `/mcp` command to list your MCP servers. Select **`360dialog`** from the list, and select **`Authenticate`**.

For **Codex,** use the following command to log in:

{% code overflow="wrap" %}

```shellscript
codex mcp login 360dialog
```

{% endcode %}
{% endstep %}

{% step %}

### Authorize Scopes

Before the log in screen, you will be asked to review the access request and pick scopes you want to grant.

<figure><img src="https://3527970750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4sMxKjL6eJRvZn6jeG-887967055%2Fuploads%2FYzcoaj2fqRmytnZeP2f8%2Fimage.png?alt=media&amp;token=ae93504d-de19-4bdf-9959-18b9fa51d455" alt="" width="375"><figcaption></figcaption></figure>

Inspect the redirect URL and ensure it is a link you trust. If it is an untrusted link (e.g. unknown non-localhost URL), click **Decline.** Otherwise, select which scopes you would like to grant:

<figure><img src="https://3527970750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4sMxKjL6eJRvZn6jeG-887967055%2Fuploads%2FSbnGa2PO40OD5iEefvXJ%2Fimage.png?alt=media&amp;token=13680c18-5f18-495b-bf61-9f1078b3e202" alt="" width="375"><figcaption></figcaption></figure>

Denying scopes will hide corresponding tools from the AI agent. If `write:channels` is denied, the AI agent will not be shown the `set_display_name` tool.

After selecting/deselecting scopes, click **Approve.**

<figure><img src="https://3527970750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4sMxKjL6eJRvZn6jeG-887967055%2Fuploads%2F2VARxNeIPu6bAYBLMVoq%2Fimage.png?alt=media&amp;token=d0fdb2de-e9c8-473d-808c-c504724d8787" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Log In

Log into your account via email and password, or with Google, Facebook, or Microsoft:

<figure><img src="https://3527970750-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4sMxKjL6eJRvZn6jeG-887967055%2Fuploads%2FxCFYl6kp5PdHhucPSami%2Fimage.png?alt=media&amp;token=e72d9679-0db8-4e3e-9e5b-8abcd2e7d04f" alt="" width="375"><figcaption></figcaption></figure>

If you have access to multiple accounts under the same login, you may be prompted to select an organization. Select the organization you would like to manage to continue.
{% endstep %}

{% step %}

### Test the MCP

Use this example prompt in Claude, Cursor, or your own agent once the server is connected to ensure the connection works:

{% code overflow="wrap" %}

```
List my channels in 360Dialog, and tell me whether the webhook is configured for the first channel.
```

{% endcode %}

Typical tool flow will be:

1. `get_self` — Get identity and account context
2. `list_channels` — Discover available channels
3. `get_webhook` — Read live webhook configuration

If the tools do not work, attempt to reconnect to the 360Dialog MCP.

You may now start integrating AI agents into your WhatsApp Business Account management flows.
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.360dialog.com/docs/get-started/mcp.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
