Black Friday 75% off every pluginAll 5 Pro plugins, lifetime, 80% off Shop the deal

Connecting AI assistants (MCP)

Ultimate Discounts Engine includes an optional MCP server, so AI assistants such as Claude, ChatGPT and Gemini can read your WooCommerce discount campaigns and, if you allow it, help you create and manage them. Open Discount Engine → MCP in WordPress for guided setup, access controls, connected apps and change requests.

MCP (Model Context Protocol) is an open standard that lets AI assistants use tools in other apps. Access starts Off, and you choose exactly what assistants are allowed to do.

Requirements

  • WordPress 6.9 or newer, which includes the WordPress Abilities API
  • WooCommerce and Ultimate Discounts Engine, active
  • The free MCP Adapter plugin from WordPress.org, installed and active. It provides the MCP server
  • A public HTTPS address to connect web assistants (Claude, ChatGPT, Gemini). Local and staging sites can use the Desktop & CLI method instead
  • Pretty permalinks, used for OAuth discovery

Step 1: Prepare WordPress

The MCP page checks each requirement and shows a tick when it is ready. If the MCP Adapter is missing, use Install MCP Adapter, then choose Refresh checks. The server address appears once these checks pass.

Step 2: Choose what AI can do

Pick an access level and choose Save access. Saved changes apply to every connected assistant immediately.

Access levelWhat assistants can do
Off (default)Nothing. AI assistants cannot use Discount Engine tools.
Read onlyRead campaigns, search products and preview discounts. Nothing can be changed. A good place to start.
Read and writeAlso create drafts and request campaign changes. Changes to live campaigns and deletions need your approval in WordPress.

Step 3: Connect an assistant

Copy the Server address from the MCP page. It looks like https://yourstore.com/wp-json/ultimate-discount-engine/v1/mcp. Then follow the steps for your assistant. Menu names and custom connector availability vary by plan and workspace.

Claude

  1. In Claude, open Customize → Connectors and choose Add custom connector. Your workspace administrator may need to add it for you.
  2. Name it Discount Engine and paste the server address into MCP server URL. Leave the advanced OAuth settings empty, then add and connect it.
  3. Your WordPress site opens. Sign in as an administrator, review the app and its access, then choose Allow access.
  4. Return to Claude and enable Discount Engine in your conversation.

ChatGPT

  1. In ChatGPT, open your app or connector settings and add a custom MCP server. Your account or workspace must allow custom connections.
  2. Name it Discount Engine, paste the server address and choose OAuth authentication. Leave the client ID and secret empty so the app can register itself.
  3. Connect the app. On your WordPress site, sign in as an administrator, review the requested access and choose Allow access.
  4. Enable Discount Engine in a conversation and send the test prompt.

Gemini

  1. If your Google account has Gemini Apps Developer Mode, create a connected app and choose a remote MCP server. Availability depends on your Google account.
  2. Paste the server address and choose OAuth. Use automatic client registration when offered.
  3. Sign in on your WordPress site as an administrator, review the app and choose Allow access. Return to Gemini and enable the app.

Desktop & CLI clients

For desktop and command-line MCP clients that support HTTP and WordPress application passwords, such as Claude Code, Gemini CLI or Cursor. The client must be able to reach your site.

  1. In your WordPress profile, create a dedicated application password named Discount Engine. Your normal account password is not needed.
  2. In your client, add an HTTP MCP server using the server address. Store your WordPress username and the application password in the client’s secure credentials settings.
  3. Enable the server and send the test prompt.

For clients that launch WP-CLI on the same machine, use the MCP Adapter’s mcp-adapter serve command with the server ultimate-discount-engine and a WordPress user who can manage WooCommerce. No OAuth is needed for this local bridge.

Test the connection

Send this prompt to your assistant:

List my discount campaigns and tell me which are active. Do not make changes.

Then choose Refresh checks on the MCP page. Last successful tool request confirms that a real request reached your store.

What assistants can do

Ultimate Discounts Engine adds these tools. Read-only tools are available at both access levels. Write tools appear only with Read and write.

ToolWhat it doesAccess level
list-campaignsSearch campaigns by name, summary, type and statusRead only
get-campaignRead a campaign and its current revisionRead only
get-campaign-typesDiscover campaign types, editable fields, permissions and store context (timezone, today’s date)Read only
search-targetsFind products, variations, categories, tags or SKUs to targetRead only
get-reportRead aggregate discount performance, without customer recordsRead only
preview-campaignValidate an unsaved campaign and test it on sample products. Nothing is saved or activatedRead only
get-requestCheck the outcome of a change request, or whether it is still waiting for approvalRead only
create-draft, create-campaignCreate a new campaignRead and write
update-campaign, duplicate-campaignEdit or copy an existing campaignRead and write
activate-campaign, pause-campaign, resume-campaign, move-to-draftChange a campaign’s statusRead and write
delete-campaignDelete a campaignRead and write

With Ultimate Discounts Engine Pro active, the Pro campaign types (Buy X Get Y, Bundle Discount and Buy X Get Y Bundle) are included in the campaign types assistants can discover and use.

Approving changes

  • Changes to draft campaigns save immediately.
  • Changes to published campaigns, activation and deletion create a change request. Review the exact change under Campaign change requests on the MCP page and approve it there.
  • Pending approvals expire after 15 minutes.
  • The assistant receives the request status and an approval link, and is told not to report success while a change is waiting for your approval.

Privacy and security

  • Assistants act as the WordPress user who approved the connection, and every tool call is permission-checked.
  • Reports are aggregate. No customer records are shared.
  • Previews validate a campaign without saving or activating it.
  • OAuth connections show under Your connected apps. Application passwords are managed in your WordPress profile.

Disconnecting

Set the access level to Off to block every assistant immediately. To remove a single desktop client, revoke its application password in your WordPress profile.

Troubleshooting

  • “Finish step 1 to make the MCP server available”: install and activate the MCP Adapter, then choose Refresh checks.
  • Local site: web assistants cannot reach a site without a public HTTPS address. Use the Desktop & CLI method, or connect from your live site.
  • No successful tool requests yet: send the test prompt from your assistant, then refresh checks.
  • Can’t find custom connectors: availability depends on your assistant’s plan and workspace settings.

Read more: WooCommerce MCP: manage discount campaigns with Claude, ChatGPT and Gemini.