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

# Connect AI apps with the MCP server

> Turn on the Elastly MCP server, connect an AI app through the consent screen, see what each tool does, and manage or revoke the apps members connected.

The MCP server lets AI apps that support the Model Context Protocol read your workspace and prepare drafts for a member to review. Each app acts with the access of the member who connected it and never sees data that member cannot see. Nothing changes in the workspace until a member acts in Elastly. This page covers turning the server on, connecting an app, the tools an app can use, limits and revoking access. For the assistant inside the dashboard, see [Assistant](/docs/assistant/overview.md).

## Before you start

* The workspace plan includes API access.
* **AI processing** is on for the workspace. While it is off, the MCP server card shows "Turn on AI processing to use the MCP server".
* Turning the server on and choosing its access needs **Edit** access to the **API & webhooks** area. Connecting an app needs only a member account in the workspace. See [Roles](/docs/administration/roles.md).

## Turn on the MCP server

**1. Open the MCP server card**

Go to **Manage** > **API & webhooks**. The **MCP server** card is at the top of the page.

**2. Switch it on**

Switch on **MCP server** in the **Status** row. The row reads "On for this workspace".

**3. Choose the access**

Under **Access**, choose **Read and draft** to let apps read and create drafts, or **Read only** to let apps read only.

**4. Share the server URL**

Copy the **Server URL** and give it to the members who will connect an app.

## Connect an app

**1. Add the server to the app**

In your AI app, add a remote MCP server or custom connector and paste the **Server URL**. The app discovers how to sign in from the server. It can register itself, so no client ID or secret is needed.

**2. Sign in**

The app opens Elastly in your browser. Sign in with your usual account.

**3. Review the consent screen**

The screen reads "Connect *app name* to Elastly" and shows where it returns you when you are done. Check the account, then choose the **Workspace** to connect. Under "*app name* will be able to", the screen lists what the app asked for:

* "Read prices, quotes, customers, products and reports you can see"
* "Create drafts that you review in Elastly before anything changes"

**4. Allow the connection**

Select **Allow**. The screen confirms that the app is connected and returns you to the app. Select **Cancel** to share nothing.

> [!WARNING]
>
> Allow a connection only if you started it yourself from your AI app. If the consent screen opened without you asking for it, select **Cancel**.

If no workspace allows AI apps, the consent screen shows "No workspace allows AI apps". Ask a workspace admin to turn on the MCP server. If the request took too long, the screen shows "This request has expired"; start the connection again from the app.

## Permissions

The app's access is the smallest of three things:

1. The scopes the app asked for and you allowed: `elastly:read` to read, and `elastly:draft` to create drafts.
2. The workspace's **Access** setting. Under **Read only**, apps receive no draft tools.
3. Your own role in the workspace, including which areas you can open and which figures, such as cost and margin, you can see.

## Tools

| Tool | What it does | Access needed |
| - | - | - |
| `elastly_search` | Searches products, customers, quotes and margin leaks | Read |
| `elastly_get_record` | Reads one record with its key figures | Read |
| `elastly_query_table` | Queries a table with filters and sorting | Read |
| `elastly_explain_price` | Explains how a price was set | Read |
| `elastly_list_needs_attention` | Lists what is waiting for the member | Read |
| `elastly_preview_impact` | Previews the impact of a pricing change | Read |
| `elastly_search_help` | Searches the product documentation | Read |
| `elastly_price_lines` | Prices up to 100 lines for a customer | Read |
| `elastly_list_drafts` | Lists the drafts this app created | Read |
| `elastly_draft_quote` | Creates a draft quote for a customer, or adds draft lines to a draft quote. Lines take an exact SKU or the customer's wording | Draft |
| `elastly_draft_policy_change` | Adds category floors to the workspace's policy draft. Overwrites the draft's value for the same category | Draft |
| `elastly_draft_control_change` | Prepares a change to control settings: markup limits, cap or learning values | Draft |
| `elastly_draft_strategy` | Creates a draft strategy in Shadow | Draft |
| `elastly_draft_report` | Requests a report run | Draft |

Every draft tool returns a link that opens the draft in Elastly. A member reviews it there and decides whether to publish, save, activate or send it. Nothing is sent to a customer until a member acts in Elastly.

## Limits

| Limit | Value |
| - | - |
| Tool calls per connected app | 60 a minute |
| Tool calls per workspace, across all apps | 600 a minute |
| Size of one tool result | About 25,000 tokens |

A call over a limit returns a message that names the limit and when to try again, for example "This app reached its limit of 60 calls a minute." A result that is too large returns "The result is too large. Narrow the request with filters or ask for fewer rows."

## Revoke an app

> [tab] Your own apps
>
> Go to **Profile & security**. On the **Connected apps** card, select **Revoke** next to the app. The app loses access at its next request. You can connect it again.

> [tab] Every app in the workspace
>
> Go to **Manage** > **API & webhooks** and select **Open connected apps**. The list shows each **App**, the **Member** who connected it, its **Access**, when it was **Connected** and when it was **Last used**. Select the apps and choose **Revoke**. Each app loses access at its next request, and the member can connect it again.

To stop every app at once, switch off **MCP server** on the **MCP server** card.

## When a call fails

| Message | Fix |
| - | - |
| "The access token is missing, expired or revoked." | Connect the app again from the app's settings |
| "Your access does not include this. Ask a workspace admin for access." | Your role does not cover what the tool reads. Ask an admin to change your role |
| "Creating drafts requires the elastly:draft scope." | Connect the app again and allow drafts, or ask an admin to set **Access** to **Read and draft** |
| "The request failed. Try again or contact support. Reference …" | Try again. Quote the reference when you contact support |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.