> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to the Adobe Marketing Agent MCP server

The Adobe Marketing Agent MCP connector routes your AI agent's tool calls to Adobe Marketing Agent's own MCP server through Scalekit. Each user signs in to Adobe Marketing Agent once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 12 tools.

**Authentication:** OAuth 2.1/DCR
**Categories:** Marketing, Analytics, AI
**Tools:** 12: 3 read, 8 write, 1 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Vendor MCP
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=ADOBEMARKETINGAGENTMCP)

## What you can do

- **Ask for marketing insights**: send plain-language questions to analyze audiences, troubleshoot journeys, and retrieve marketing insights
- **Set working context**: switch the active organization, Experience Platform sandbox, or Customer Journey Analytics dataview
- **Track tasks and plans**: check the status of long-running tasks and approve or reject a plan before it runs

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the Adobe Marketing Agent MCP connection

   In **AgentKit > Connections**, create an Adobe Marketing Agent MCP connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for Adobe Marketing Agent MCP server, so you don't need to register an OAuth app. To show your own app on the consent screen, use your own credentials instead.

   **Use your own OAuth app:**

   Adobe Marketing Agent MCP uses Dynamic Client Registration (DCR) — no client ID or secret is required. The only step is creating a connection in Scalekit and authorizing your Adobe account.

   1. ### Create a connection in Scalekit

      - In the [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** → **Connections** → **Create Connection**.
      - Search for **Adobe Marketing Agent MCP** and click **Create**.
      - Note the **Connection name** — use this as `connection_name` in your code (e.g., `adobemarketingagentmcp`).

   2. ### Authorize your Adobe account

      Generate an authorization link and open it in a browser to complete the Adobe OAuth flow.

      The user is redirected to Adobe to sign in and grant access. Scalekit stores the token and injects it automatically into every tool call — no further configuration is needed.

      > note: Adobe IMS login required
      >
      > The user must have an active Adobe Experience Cloud account. The OAuth flow uses Adobe IMS (Identity Management System) and supports Single Sign-On if your organization has it configured.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'adobemarketingagentmcp'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize Adobe Marketing Agent MCP:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'adobemarketingagentmcp_core-list_tasks',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "adobemarketingagentmcp"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize Adobe Marketing Agent MCP:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="adobemarketingagentmcp_core-list_tasks",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'adobemarketingagentmcp_adobe-marketing-agent-mcp-widget',
  toolInput: {
    query: '<query>',
  },
  connector: 'adobemarketingagentmcp',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="adobemarketingagentmcp_adobe-marketing-agent-mcp-widget",
    tool_input={
        "query": "<query>",
    },
    connection_name="adobemarketingagentmcp",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `adobemarketingagentmcp_adobe-marketing-agent-mcp-widget`

Adobe Marketing Agent Mcp Widget · Read-only

Send a natural-language query to the Adobe Marketing AI assistant to analyze audiences, troubleshoot journeys, and retrieve marketing insights.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `query` (`string`, required): The natural-language request or feedback message to send to the assistant.
- `async` (`boolean`, optional): Compatibility flag; set to true to request async execution.
- `chat_id` (`string`, optional): Optional identifier to correlate this request with a chat or conversation context.
- `execution_mode` (`string`, optional): Controls how the task runs; use async for long-running polling-based tasks. One of: `sync`, `async`.
- `long_running` (`boolean`, optional): Compatibility flag; set to true to request async execution for long-running tasks.

Example input: `{"query":"<query>"}`

### `adobemarketingagentmcp_core-get_task`

Core Get Task · Read-only

Retrieve the status and events for an async task by ID; use the cursor to poll only for new events since the last fetch.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `task_id` (`string`, required): The unique identifier of the async task to retrieve.
- `cursor` (`integer`, optional): Offset cursor from the previous response; use 0 to fetch all events from the beginning. Default: `0`.

Example input: `{"task_id":"<task_id>"}`

### `adobemarketingagentmcp_core-list_tasks`

Core List Tasks · Read-only

List all async tasks associated with the current conversation context.

Read only: yes. Destructive: no. Idempotent (safe to retry): no.

Inputs: none.

Example input: `{}`

### `adobemarketingagentmcp_core-context-management-widget`

Core Context Management Widget · Write

Display and manage the current organization, sandbox, and dataview context, allowing the user to switch between them.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `query` (`string`, optional): The natural-language request or feedback message to send to the assistant.

Example input: `{}`

### `adobemarketingagentmcp_core-feedback-widget`

Core Feedback Widget · Write

Show an interactive feedback form with thumbs up/down and rating categories; falls back to text-based feedback if widgets are not supported.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `query` (`string`, optional): The natural-language request or feedback message to send to the assistant.

Example input: `{}`

### `adobemarketingagentmcp_core-provide_feedback`

Core Provide Feedback · Write

Submit user feedback about the AI assistant experience; automatically classifies sentiment and calls the feedback API.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `comment` (`string`, optional): Optional free-text comment to accompany the feedback.
- `flagCategories` (`array`, optional): Categories of harmful content being reported; required when flagged is true.
- `flagged` (`boolean`, optional): Set to true if the feedback reports harmful content; triggers the flag API instead of sentiment feedback.
- `pickList` (`array`, optional): Selected feedback option labels chosen from the widget's predefined list.
- `query` (`string`, optional): The natural-language request or feedback message to send to the assistant.
- `sentiment` (`string`, optional): The user's overall sentiment rating for the interaction. One of: `like`, `dislike`.

Example input: `{}`

### `adobemarketingagentmcp_core-set_dataview`

Core Set Dataview · Write

Set the active Customer Journey Analytics dataview for the current session.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `dataviewName` (`string`, required): The name of the Customer Journey Analytics dataview to set as the active context.

Example input: `{"dataviewName":"<dataviewName>"}`

### `adobemarketingagentmcp_core-set_sandbox`

Core Set Sandbox · Write

Set the active Adobe Experience Platform sandbox for the current session.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `sandboxName` (`string`, required): The technical name (one word) of the Adobe Experience Platform sandbox to set as the active context.

Example input: `{"sandboxName":"<sandboxName>"}`

### `adobemarketingagentmcp_core-switch_org`

Core Switch Org · Write

Switch to a different Adobe organization by exchanging the current IMS token.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `org_name` (`string`, required): The display name or IMS Org ID of the Adobe organization to switch to.

Example input: `{"org_name":"<org_name>"}`

### `adobemarketingagentmcp_core-switch_sandbox_dataview`

Core Switch Sandbox Dataview · Write

Update the active sandbox and/or dataview for the session in a single call.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `dataviewName` (`string`, optional): The name of the Customer Journey Analytics dataview to set as the active context.
- `sandboxName` (`string`, optional): The technical name (one word) of the Adobe Experience Platform sandbox to set as the active context.

Example input: `{}`

### `adobemarketingagentmcp_core-user_preferences`

Core User Preferences · Write

Read or clear the user's persisted preferences including sandbox, dataview, org, and region settings.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `action` (`string`, optional): Action to perform on preferences; get returns current settings, clear removes all saved preferences. One of: `get`, `clear`. Default: `get`.

Example input: `{}`

### `adobemarketingagentmcp_core-plan_completion_decision`

Core Plan Completion Decision · Destructive

Submit the user's approval or rejection for a pending plan before it is executed.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `decision` (`string`, required): The user's approval decision for the pending plan. One of: `Approve`, `Reject`.

Example input: `{"decision":"Approve"}`

## Workflows

### Send a query to the Adobe Marketing AI assistant

Use `adobemarketingagentmcp_adobe-marketing-agent-mcp-widget` to ask questions about your campaigns, audiences, journeys, and Analytics data in plain English.

  **Node.js**

  ```typescript
  const result = await actions.executeTool({
    connector: 'adobemarketingagentmcp',
    identifier: 'user_123',
    toolName: 'adobemarketingagentmcp_adobe-marketing-agent-mcp-widget',
    toolInput: {
      query: 'What are my top performing audience segments this month?',
    },
  });
  console.log(result);
  ```

  **Python**

  ```python
  result = actions.execute_tool(
      connection_name="adobemarketingagentmcp",
      identifier="user_123",
      tool_name="adobemarketingagentmcp_adobe-marketing-agent-mcp-widget",
      tool_input={
          "query": "What are my top performing audience segments this month?",
      },
  )
  print(result)
  ```

### Switch sandbox and dataview

Use `adobemarketingagentmcp_core-switch_sandbox_dataview` to update the active Adobe Experience Platform sandbox and Customer Journey Analytics dataview in a single call.

  **Node.js**

  ```typescript
  const result = await actions.executeTool({
    connector: 'adobemarketingagentmcp',
    identifier: 'user_123',
    toolName: 'adobemarketingagentmcp_core-switch_sandbox_dataview',
    toolInput: {
      sandboxName: 'prod',
      dataviewName: 'My Analytics View',
    },
  });
  console.log(result);
  ```

  **Python**

  ```python
  result = actions.execute_tool(
      connection_name="adobemarketingagentmcp",
      identifier="user_123",
      tool_name="adobemarketingagentmcp_core-switch_sandbox_dataview",
      tool_input={
          "sandboxName": "prod",
          "dataviewName": "My Analytics View",
      },
  )
  print(result)
  ```

### Poll an async task

Some Adobe Marketing operations run asynchronously. Submit a query with `execution_mode: "async"`, then poll with `adobemarketingagentmcp_core-get_task` until the task completes.

  **Node.js**

  ```typescript
  // Step 1 — submit async query
  const submitted = await actions.executeTool({
    connector: 'adobemarketingagentmcp',
    identifier: 'user_123',
    toolName: 'adobemarketingagentmcp_adobe-marketing-agent-mcp-widget',
    toolInput: {
      query: 'Generate a full audience overlap report',
      execution_mode: 'async',
    },
  });
  const taskId = submitted.data?.task_id;

  // Step 2 — poll until complete
  let cursor = 0;
  while (true) {
    const status = await actions.executeTool({
      connector: 'adobemarketingagentmcp',
      identifier: 'user_123',
      toolName: 'adobemarketingagentmcp_core-get_task',
      toolInput: { task_id: taskId, cursor },
    });
    cursor = status.data?.cursor ?? cursor;
    if (status.data?.status === 'completed') {
      console.log(status.data.result);
      break;
    }
    await new Promise(r => setTimeout(r, 2000));
  }
  ```

  **Python**

  ```python
  import time

  # Step 1 — submit async query
  submitted = actions.execute_tool(
      connection_name="adobemarketingagentmcp",
      identifier="user_123",
      tool_name="adobemarketingagentmcp_adobe-marketing-agent-mcp-widget",
      tool_input={
          "query": "Generate a full audience overlap report",
          "execution_mode": "async",
      },
  )
  task_id = submitted.data.get("task_id")

  # Step 2 — poll until complete
  cursor = 0
  while True:
      status = actions.execute_tool(
          connection_name="adobemarketingagentmcp",
          identifier="user_123",
          tool_name="adobemarketingagentmcp_core-get_task",
          tool_input={"task_id": task_id, "cursor": cursor},
      )
      cursor = status.data.get("cursor", cursor)
      if status.data.get("status") == "completed":
          print(status.data.get("result"))
          break
      time.sleep(2)
  ```

### Read and clear user preferences

User preferences (sandbox, dataview, org, region) persist for 90 days. Use `adobemarketingagentmcp_core-user_preferences` to read or clear them.

  **Node.js**

  ```typescript
  // Read current preferences
  const prefs = await actions.executeTool({
    connector: 'adobemarketingagentmcp',
    identifier: 'user_123',
    toolName: 'adobemarketingagentmcp_core-user_preferences',
    toolInput: { action: 'get' },
  });
  console.log(prefs.data);

  // Clear all preferences
  await actions.executeTool({
    connector: 'adobemarketingagentmcp',
    identifier: 'user_123',
    toolName: 'adobemarketingagentmcp_core-user_preferences',
    toolInput: { action: 'clear' },
  });
  ```

  **Python**

  ```python
  # Read current preferences
  prefs = actions.execute_tool(
      connection_name="adobemarketingagentmcp",
      identifier="user_123",
      tool_name="adobemarketingagentmcp_core-user_preferences",
      tool_input={"action": "get"},
  )
  print(prefs.data)

  # Clear all preferences
  actions.execute_tool(
      connection_name="adobemarketingagentmcp",
      identifier="user_123",
      tool_name="adobemarketingagentmcp_core-user_preferences",
      tool_input={"action": "clear"},
  )
  ```

## Related

Other Marketing connectors ([all 98](/agentkit/connectors/?category=marketing)):

- [HubSpot](/agentkit/connectors/hubspot/): Scalekit connector, OAuth, 457 tools
- [Mailchimp](/agentkit/connectors/mailchimp/): Scalekit connector, OAuth, 73 tools
- [Twitter / X](/agentkit/connectors/twitteroauth/): Scalekit connector, OAuth, 92 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
