MCP for J add-on

MCP for J2Commerce

Run your J2Commerce store from your AI client

FreeJoomla 6 v1.0.3
Free

Free download. GPL, the same license as Joomla.

MCP for J2Commerce is a free add-on for MCP for J that lets your AI client run a J2Commerce 6 store. Its 43 tools cover products, prices, stock, orders, customers, coupons, gift vouchers and sales reports, plus an audit that finds the gaps in your tax setup that make a store quietly charge no tax at all. You can ask what sold this month, put a delivery's worth of stock back on the shelf, or mark an order shipped and email the customer, all without opening the admin. Order changes go through J2Commerce's own code, so stock, order history and emails behave exactly as they do when you click the buttons yourself.

Why this exists

A store throws off questions all day. Which orders are still waiting to ship? What's running low? Is that new coupon actually being used? J2Commerce has the answer to every one of them, but its admin is built for working one record at a time, so you end up filtering, sorting and adding things up in your head. This add-on hands the store to your AI client instead. You ask in a sentence, and the answer comes back worked out.

What Claude can do

There are 43 tools, grouped roughly the way you'd reach for them.

AreaToolsWhat you can do
Products6List and search products, read one with every variant, option, image and price, turn an existing article into a product, change prices, SKUs, weights and stock rules, and delete a product cleanly.
Advanced prices3Quantity tiers, customer-group prices and date-limited sale prices, added or changed one row at a time.
Stock2See what's low, out or oversold, and set a count after a stocktake or adjust it for a delivery.
Orders6Find and read orders, change their status, add a private note or one the customer can see, and record a tracking number.
Customers2Every customer with their order history and lifetime value, including guests who never created an account.
Coupons5Create, change and retire coupons, and see how often each one has really been used.
Gift vouchers3Check balances, read the full history of a voucher, and credit or debit one with a reason on record.
Store7Currencies, countries and their states or provinces, geozones, manufacturers, product options, and your shipping and payment methods.
Reports2Sales for any date range, broken down by day, week or month, and your best sellers.
Diagnostics7Store overview, a health check, the tax audit, reading and changing store settings, and a read-only look at J2Commerce's own tables.

Installing it

You'll need Joomla 6, PHP 8.2 or later, MCP for J, and J2Commerce 6. The free J2Commerce core is all this needs.

  1. Open Components โ†’ MCP for J โ†’ Browse MCP Add-Ons and click Install on this add-on. You can also download the ZIP above and install it through System โ†’ Install โ†’ Extensions.
  2. That's the whole install. The plugin switches itself on, and the tools show up in your AI client the next time it lists them.

This is for J2Commerce 6. If your store still runs J2Store 4, it won't help you yet, because J2Store 4 keeps its data in a completely different set of tables.

Using it

Start with "Give me an overview of my J2Commerce store" and then "Check my store's tax setup". The second one is worth doing even if you think your tax is fine. J2Commerce works tax out through a chain of settings, from the product's tax profile through tax rates and geozones down to the customer's country, and if one link in that chain is missing it charges no tax and gives no warning. The audit walks the whole chain and tells you where it breaks.

After that, ask for what you want in plain language. "Which orders are still processing?", "What were sales last month compared with the month before?" and "Show me everything under five in stock" all work. So do changes. "Mark order 17921803931 as shipped with tracking number 1Z999AA10123456784, and let the customer know" moves the stock, writes the order history and sends the shipping email.

When you change an order's status, you can ask for a dry run first. It tells you which stock will move, whether downloads will be unlocked, and which emails will actually go out. The emails are the part that catches people out, because J2Commerce marks an order as "customer notified" even when it has no email template for that status, and on a fresh install there isn't one for Delivered. The dry run tells you that before you rely on an email that will never be sent.

Permissions and security

The add-on uses the same J2Commerce permissions your admin team already has, checked for the person whose MCP connection makes each request. Someone who can view orders but not edit them can read orders through their AI client and nothing more. The read-only table viewer asks for the same permission as each table's own screen, reading store settings needs Options access, and a refusal names the permission that's missing. If you connect an AI app as anyone other than a Super User, a Super User can allow that group in J2Commerce's Options, on the Permissions tab.

Some things are never handed back. The private key that lets a guest open their order from an email link, the raw data your payment gateway sends back, saved card references and customer IP addresses stay in the database. Gift voucher codes are partly hidden wherever they appear, including on past orders, because whoever has a code can spend it, and a full code is only shown when someone with edit rights asks for it specifically. Payment and shipping credentials are withheld too, including on gateways this add-on has never seen.

A few settings are deliberately read-only. J2Commerce saves tax profiles and geozones by deleting all their rules and writing them back from the form, so a half-finished change through anything other than its own screen can wipe out your tax. The add-on audits them and leaves the editing to the J2Commerce admin.

Why it's free

J2Commerce 6 is a free, GPL-licensed core with paid apps on top: extra payment gateways, live shipping rates, subscriptions and so on. The core has no Pro edition with features locked away, and this add-on works with the core, so it's free for the same reason. If your store relies on one of J2Commerce's paid apps and you'd like tools for it, let me know.

This is version 1.0.3, checked against J2Commerce 6.6.6. Version 1.0.2's full round tested all 43 tools against J2Commerce 6.6.5 on Joomla 6, with each write checked in the database, and the permission checks were run with Super User, Administrator and Manager accounts. 1.0.3 was then tested on J2Commerce 6.6.6, including order status changes in both directions and voucher adjustments. The first round of testing included a real checkout on a test store: a product created by the add-on showed up and sold, a coupon created by the add-on came off at checkout, and cancelling and then shipping the order moved the stock both ways. It also caught three bugs, which were fixed before release. Products with variants or options, downloadable products, and stores taking orders in more than one currency haven't been tried yet. If your store uses those, start with the overview and the health check, and I'd really like to hear how it goes.

Open source

GPL-2.0-or-later, the same license as Joomla itself. Source lives on GitHub.


Interesting blog? Like it on Facebook, Post it or share this article on other bookmarking websites.

Written by:
Tim Davis is the founder and owner of Cybersalt.

Recent changes

Version 1.0.3 12 Nov 2026

Checked against J2Commerce 6.6.6 (security advisory 621), which changed how orders handle stock and gift vouchers.

  • No more false "partial update" warning. get_j2commerce_component_info counted this add-on as part of J2Commerce, so every site was told to reinstall J2Commerce. It now compares only the members of the J2Commerce package.
  • Order status changes follow J2Commerce 6.6.6's voucher and coupon rules. Cancelling an order gives back the voucher value it used, and reopening it takes it again. A move that would push an order past a coupon's use limit or a voucher's balance is refused, as in J2Commerce's own admin. The dry run says what will happen to the order's vouchers.
  • Stock predictions follow the installed J2Commerce. 6.6.6 releases stock for statuses of type New, Failed and Cancelled; 6.6.5 used the fixed ids 3, 5 and 6. The tools now ask J2Commerce which statuses hold stock.
  • Order-linked voucher adjustments get J2Commerce's own checks on 6.6.6. An order that didn't use the voucher is refused, and a credit is capped at what the order is still owed.
  • Knows 6.6.6's new table (email_optouts) and its new Email Site URL option.
  • Version wording updated to say which J2Commerce versions each note was checked on.
  • Joomla's Changelog button now works for this add-on.
Version 1.0.2 4 Nov 2026
  • The table reader now follows J2Commerce's permissions. query_j2commerce_table only asked for View Setup, so an account refused View Orders could still read orders and customer addresses through it. Each table now needs what its own screen needs.
  • Voucher codes stay masked in the table reader. Order discount rows hold the code of the voucher that was used, and a voucher can have balance left. They're now masked and can't be filtered or sorted on.
  • Follows J2Commerce's current access rules. Clearing a permission in J2Commerce's Options now takes it away here too. Changes also need J2Commerce's Edit or Create permission and the matching view permission, as its REST API does, and turning an article into a product needs permission to edit that article.
  • Reading settings needs Options access, as J2Commerce's own Options screen does.
  • No HTML in plain-text fields. Order notes, status comments, coupon names and codes, add-to-cart text, SKUs, tracking numbers and voucher reasons are refused if they contain tags.
  • Check this after updating if a non-Super User connects an AI app. That account may need the permissions above, and gets a refusal naming the one that's missing until a Super User allows its group in J2Commerce's Options, on the Permissions tab.
  • The package now includes LICENSE.txt.
Log in to comment

Add comment

Submit