Skip to main content
Use the Model Context Protocol (MCP) to let an AI assistant work in your Adraa Inbox workspace. The server exposes 44 tools, covering every operation in the documented REST API, plus workspace setup, automation, and account discovery.

Add the server to your agent

With your client installed, use the matching setup below. These commands configure the MCP connection; the login step authenticates your Adraa Inbox account.
Add the remote server for your user account, sign in, and check its status:
Inside a Claude Code session, you can also run /mcp, select adraa-inbox, and authenticate there.To create a connection with explicit read-only inbox permissions, use this instead of the first command, then run the login command:
--scope user controls where Claude Code saves the configuration. OAuth permissions are the space-separated names in oauth.scopes.See the official Claude Code MCP guide.

Sign in to Adraa Inbox

  1. Run your client’s login command above, or select its MCP authentication action. It opens an Adraa Inbox authorization page in your browser.
  2. If you are not signed in, enter your Adraa Inbox email and verify the code sent to that address. Complete any additional account verification when prompted.
  3. Choose the workspace you want the agent to access. Your account must be an active admin of that workspace.
  4. Review the requested permissions and approve the connection.
  5. Return to your terminal or editor and refresh the MCP tool list. Ask the assistant to call get_me to confirm the workspace when inbox:read was granted.
If you are already signed in, you can go straight to workspace selection and consent. Your client completes the callback and stores its OAuth credentials. Do not paste an API token, email verification code, or OAuth callback URL into the assistant’s chat.
MCP sign-in is separate from signing in to Claude, Codex, Gemini, or Cursor. You use your Adraa Inbox account for the authorization page. No workspace API token or OAuth client secret is required.

If the browser does not open

Open the authorization URL printed by your client. Codex and current Claude Code versions also support an explicit manual-browser flow:
Run only the command for your client. Finish the browser flow and return the redirect URL to the originating terminal if it asks for it. Gemini’s OAuth flow requires a browser and a reachable local callback.

If you need more permissions

Update the scopes your client requests and sign in again. For Codex, use codex mcp login with the revised --scopes list. For Claude Code, update oauth.scopes and rerun claude mcp login adraa-inbox. For Gemini CLI, update oauth.scopes and rerun /mcp auth adraa-inbox. The consent page shows what the new connection can do. Refreshing a token or restarting the agent does not add permissions to an existing grant. The table below lists the scope needed for each capability.

Permissions

The client requests scopes during authorization. Approve only the access needed for your task. The existing setup and flow scopes keep their behavior. The ten inbox, contact, WhatsApp, agent, and broadcast scopes are additional permissions. When a client does not specify scopes, the default remains setup:read flows:read. If a tool reports insufficient scope, configure your client to request the required scope and authorize a new connection. Refreshing an existing token does not add permissions. A server update does not expand an earlier grant.

Tool reference

MCP exposes every operation in the documented public REST API, along with helpers for account selection, template status, workspace setup, and flows. Each tool uses the selected workspace and enforces its required scope. Use list and get tools to resolve IDs before writing. Follow the returned pagination fields for additional results. list_messages accepts conversationId to focus on one conversation; it still defaults to inbound messages, so use direction: "all" to read both directions. Read the current flow version before updating or publishing it. update_contact merges supplied custom fields; a null value removes that field. set_contact_tags replaces the contact’s full tag set, so include every tag you want to keep. Assignment changes replace the current assignment. Agent administration follows the public API’s protections for managed agents and the last workspace admin. remove_agent removes workspace membership. send_broadcast sends to a saved contact group; send_audience_broadcast supports the API’s audience options. Broadcasts send customer messages and can incur delivery charges, so inspect the audience and template before sending.

WhatsApp template workflow

  1. Call list_whatsapp_accounts and choose the connected number for your task.
  2. Draft the template and call submit_whatsapp_template with that account in from. Include body samples and any button samples.
  3. Call list_whatsapp_account_templates for the same from to inspect approval status and button definitions. You can filter by status, such as APPROVED.
  4. Once approved, call send_whatsapp_template with the recipient, template name, language, and variable values.
Submission starts provider review. It does not send a message, and a successful submission does not mean approval. Sending is a separate action that can contact a customer. list_whatsapp_templates mirrors the public API’s approved-template list across the workspace. Use list_whatsapp_account_templates when you need a specific account’s pending or rejected templates and full component definitions. The account-template helper returns up to limit templates per page (1–100, default 50). Pass its nextCursor as cursor to get the next page, keeping from and status unchanged. A null cursor marks the last page. If a cursor becomes invalid after the template list changes, restart the listing for the same account and filters. For a dynamic website button, submit a URL with one {{1}} placeholder at the end and a full sample URL:
When sending, supply the suffix through buttonParameters, separately from body parameters:
Button indexes start at zero. See Templates for the full submission example and supported content.

Example tool call

Your MCP client discovers tool schemas through tools/list and invokes tools through tools/call. Let the client handle OAuth and send requests to the MCP server URL. For example, read both directions of one conversation’s history:
Use a conversation ID returned by list_conversations. This call requires inbox:read. Follow nextCursor to retrieve more messages.

Resources and prompts

Clients that support MCP resources can discover these with resources/list and retrieve them with resources/read: Discover reusable prompts with prompts/list, then call prompts/get with the named arguments: Retrieving a resource or prompt does not submit a template, publish a flow, or send a customer message.

Errors and rate limits

The general limit is 100 requests per minute per IP. Per-operation write limits also apply. A successful send attempt does not prove recipient delivery. If a write times out, inspect the resulting messages, templates, or campaigns before retrying to avoid duplicates. If your client cannot find the inbox tools, refresh its tool list and check that the deployment includes the extended MCP server. Granting a scope does not add tools to an older server release.

Manage connected applications

Open Settings → API → Connected AI apps to inspect each application’s workspace and permissions. Select Disconnect to revoke that application’s connection. You can authorize a new connection later.

Build an MCP client

The server advertises OAuth discovery metadata at:
  • https://api.inbox.adraa.ai/.well-known/oauth-protected-resource/mcp
  • https://api.inbox.adraa.ai/.well-known/oauth-authorization-server
Use the advertised authorization, registration, and token endpoints. Keep the MCP resource URL bound to https://api.inbox.adraa.ai/mcp throughout authorization. The server requires a state value and S256 PKCE, and supports public client registration. For reusable agent instructions and direct REST workflows, see Agent skills. See the API reference for request fields shared with the MCP tools.