Connect an AI assistant
What it does
An AI assistant can build forms and work on submissions in your store for you. It connects through the WebForms MCP server, a small program that runs on the same computer as the assistant. MCP, the Model Context Protocol, is an open standard that lets an assistant use outside tools. Your assistant app needs to support MCP servers, as Claude Code and Claude Desktop do.
The connection is a Magento integration named WebForms MCP. You choose its permissions when you create it, and the assistant can do nothing beyond them. It reaches all your forms, or only the forms you pick.
Before you start
-
You, or your developer, can run commands on the server where your store runs.
-
The computer where the assistant runs has Node.js 22.19 or later.
-
Decide what the assistant may do. Each set of permissions has a name:
Set What the assistant can do readerRead forms and read submissions, with personal data masked editorRead, create and edit forms and publish them. The default. It can't read submissions, but it can change settings that delete old submissions, and it can send a form's emails to any address, so new submissions reach that address. See What the assistant can do supportRead forms; read, update and reply to submissions; see the list of uploaded files fullEvery permission in the API group except Edit Form Scripts and Submit Forms and Upload Files, including export, import, temporary disclosure and Disclose Personal Data Start with the smallest set that does the job. Disclose Personal Data, in the
fullset, lets the assistant read every answer unmasked without asking. See Personal data masking.
Steps
-
On your store's server, in the Magento folder, run the command with the set you chose, for example:
bin/magento webforms:api:connect --preset=editorIt creates the WebForms MCP integration, switches it on and prints a connection string. The string holds your store's address and the keys the assistant signs in with. Treat it like a password. Below the string, the command prints the setup command for step 2.
To limit the assistant to some forms, add
--forms=selected. Then go to System → Extensions → Integrations, click Edit in the row of WebForms MCP, then the API tab. In the resource list, scroll to WebForms. Its API group holds the permissions the sets above grant. Below it come Manage Statuses and All Forms, then one row per form. Select the forms it may reach. On the Integration Info tab, enter your admin password in Your Password, then click Save. Until you select forms, the assistant reaches none. -
On the assistant's computer, run the server's setup. It downloads the WebForms MCP server and sets it up:
npx -y @mageme/webforms-mcp@1 setup --fromPaste the connection string when it asks. It starts with
wf1_, and it isn't shown as you paste. Keep the string out of the command itself: a command line can end up in your shell history. Setup checks the string with your store before it saves anything, and it lists the permissions your store granted. -
Register the server with your assistant app. At the end, setup prints the line for Claude Code and the entry for Claude Desktop's settings file. Copy the one for your app:
- Claude Code: run the printed
claude mcp addline in a terminal. - Claude Desktop: add the printed entry to the app's settings file. If the file already has
mcpServers, add only thewebformsentry inside it.
- Claude Code: run the printed
-
Ask the assistant which WebForms stores it can reach.
What you should see
The assistant names your store and can list your forms. In the admin, go to System → Extensions → Integrations: WebForms MCP is in the list with the status Active.
To check the connection, ask for something small:
You: Which WebForms stores can you reach, and what forms are on it?
Assistant: I'm connected to one store, yourdomain.com, with access to All Forms.
It has 12 forms. Here are the active ones: …
A sample exchange. Your assistant's words will differ.
Limits
- The assistant can do only what the integration's permissions allow. Your store refuses everything else.
- Personal data in submissions reaches the assistant masked unless the integration has Disclose Personal Data or a temporary disclosure is approved. See Personal data masking.
- Before it publishes a form, switches a form or an email on or off, edits a submission, replies to a customer or unmasks personal data, the assistant must ask you. Your store also holds back changes that reach outside the form until you approve them: a switched-on email, form settings with lasting effects, a status or an approval that emails the customer, and the success message. See What the assistant can do. If your assistant app can show an approval question, the question comes from WebForms and your answer decides. Otherwise WebForms takes the assistant's word that you agreed, except for unmasking personal data, which needs an app that can ask you. The permissions are the limit that always holds.
- The
editorandfullsets cover email notifications: Edit and Publish Forms includes them. No set includes Edit Form Scripts, Submit Forms and Upload Files, Approve Results or the permission to link submissions to orders. To add Edit Form Scripts or Approve Results, go to System → Extensions → Integrations, click Edit in the row of WebForms MCP, and select them on the API tab: Edit Form Scripts under WebForms → API, Approve Results under WebForms → Manage Forms. Enter your admin password in Your Password on the Integration Info tab, then click Save. Your developer can add the order permission, see MCP server. - One server on one computer can serve several stores. Your developer sets that up, see MCP server.
Troubleshooting
- The command says an integration named "WebForms MCP" already exists. Your store has one connection already.
Run the same command with
--reissueadded to apply the new set and get a new connection string. The old string stops working. Then run setup again with the new string and--overwriteadded. A reissue gives the integration exactly the new set: if you added Edit Form Scripts or Approve Results on the API tab, select them again after it. - Setup says the store refused the connection string. Nothing was saved. Check that you copied the whole string and that the store's address in it opens in a browser.
- The assistant says it isn't allowed to do something. The integration lacks that permission. Run the command
again with a larger set and
--reissue, then run setup again with the new string and--overwriteadded. Select Edit Form Scripts or Approve Results on the API tab again if you had added them. - The assistant says it can't switch a form on. The form has code in its texts, such as a script in its success message. Switch the form on in the admin, or give the integration Edit Form Scripts on the API tab.
- You want to disconnect the assistant. Go to System → Extensions → Integrations and delete WebForms
MCP, or run the command with
--reissueto make the old string useless.
What's next
- What the assistant can do: every task, the permission it needs and when the assistant asks you first.
- Personal data masking: what the assistant sees of your customers' answers.
- Audit log: read what the assistant changed and every disclosure.