MCP for J add-on

MCP for Gantry 5

Change your Gantry template from your AI client

FreeJoomla 5Joomla 6 v1.0.1
Free

Free download. GPL, the same license as Joomla.

MCP for Gantry 5 is a free add-on for MCP for J that lets your AI client read and change a Gantry 5 template: outlines and which pages use them, layouts, particles, styles and Gantry 5 Particle modules. Gantry spreads one site's design across a stack of outlines that inherit from each other, so the hardest question is usually where does this value actually come from? Every value these 21 tools report says which outline it lives in, and every change tells you which other outlines it also reaches.

Why this exists

Gantry 5 keeps its settings in YAML files, one set per outline, with inheritance on top. Changing the copyright line or a colour is easy once you know which outline and which file to open, and finding that out is the slow part. This add-on reads those files the way Gantry does and answers in plain language, so "change the footer copyright to 2027" lands in the right place the first time.

What Claude can do

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

AreaToolsWhat you can do
Themes and outlines6List themes and outlines, read an outline with its full inheritance chain, see which pages use which outline, change those assignments, and duplicate an outline as a copy or as one that inherits from its source.
Layouts2Read an outline's layout, and list the module positions and module instances it renders, with the Joomla modules each one shows and any positions the layout never renders.
Particles5List particle types, read and change a particle in an outline, and read and change particle defaults.
Styles2Read and change an outline's styles, such as colours and fonts.
Particle modules2List and change Gantry 5 Particle modules.
Backups2List the backups these tools take before every change, and restore one.
Diagnostics2A health check and Gantry's own Clear Cache.

Installing it

You'll need Joomla 5 or 6, PHP 8.2 or later, MCP for J, and Gantry 5 itself, which is free. On Joomla 6 you need Gantry 5.6.2 or later; 5.6.0 and 5.6.1 only run on Joomla 5. The add-on is tested with Gantry 5.6.7 and the Helium 5.6.7 theme.

  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.

If MCP for J isn't installed, the plugin installs switched off and tells you why, rather than leaving you with tools that go nowhere.

The full manual, with an example of each tool's answer, is in the MCP for Gantry 5 documentation, and what changed in each version is in its changelog.

Using it

Start with "Check my Gantry 5 setup". The health check looks at your Gantry and Joomla versions together, outlines whose inheritance points at something that's gone, YAML files Gantry can't read, and outline folders left behind by deleted template styles. Then ask for what you want: "Which outline does the About page use?", "Make the accent colour darker on the Blog outline" or "Copy the Home outline so I can try a new layout".

When a setting is inherited, the tools won't quietly copy it into the outline you named. They tell you which outline it comes from, so you can decide whether to change it there (and everywhere that inherits it) or break the link.

A few things about Gantry are worth knowing:

  • Gantry's own admin can overwrite an outline. For a template style without a configuration setting, Gantry's outline list copies the preset over the outline's own files, and Gantry's installer creates every style that way. The write tools add that setting first, and the health check warns about any style still missing it.
  • Deleting a template style that other outlines inherit from makes them fall back to a preset, and Gantry recreates a folder for the deleted outline on the next page view. The health check reports both.
  • Gantry's configuration files can be read over the web, so keep passwords and keys out of particle settings.

Permissions and security

The tools check the same Joomla permissions as the screens they stand in for: managing and editing templates for outlines, particles and styles, editing menus for outline assignments, and managing and editing modules for Gantry 5 Particle modules. It's checked for the person whose MCP connection makes the request, so your AI client can't do anything that person couldn't do in the admin.

Reading never changes anything. Gantry's own layout reader saves files when its index is out of date, so these tools read Gantry's YAML themselves instead. A change writes one file, key by key, only under the theme's custom/config folder, after taking a backup that restore_gantry5_backup can put back. Keys and values are checked against Gantry's own blueprints, and the new file is read back before it replaces the old one. Colours are checked against what Gantry can compile before they're saved, because a colour it can't compile stops every page on that outline. A Custom HTML particle with "Process Twig" switched on runs its content as server-side code, so only a Super User can switch that on or change such content, including when Twig comes from an outline's particle defaults.

Why it's free

Gantry 5 is free, so this add-on is free too.

Version 1.0.1 was tested on Joomla 5.4 and 6.1 with PHP 8.4 against Gantry 5.6.7 and Helium 5.6.7. All 21 tools were called with every change checked in the files, the database and on a rendered page, then restored from its backup, and the permission checks ran on every tool with Super User, Administrator and Manager accounts. Themes with a parent theme, older layout formats and multilingual sites haven't been tried yet. If your site uses them, start with the health check, and I'd 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.1 12 Nov 2026
  • Security hardening. The Twig safeguard on update_gantry5_particle_module now takes the outline's particle defaults into account, as the other particle tools already did.
  • Colour settings are checked before they're saved. update_gantry5_styles (and any particle colour field) accepts only colours Gantry can compile: #rrggbb, rgba(r, g, b, a), transparent or a colour name. A value Gantry can't compile used to stop every page on that outline until it was removed.
  • Tested with Gantry 5.6.7 and Helium 5.6.7 on Joomla 5.4 and 6.1.
  • The package now includes LICENSE.txt.
  • Joomla's Changelog button now works for this add-on. On System โ†’ Manage โ†’ Extensions it shows this add-on's release notes.
Version 1.0.0 29 Oct 2026

First release. 21 tools for the Gantry 5 template framework (pkg_gantry5) by Tiger12. Studied against Gantry 5.6.4 with the Helium 5.6.4 theme and driven end-to-end on Joomla 6.2.0 / PHP 8.3, including particle, module position, style and particle-module changes showing up on a rendered page.

New

  • Diagnostics โ€” check_gantry5_health, clear_gantry5_cache.
  • Themes and outlines โ€” list_gantry5_themes, list_gantry5_outlines, get_gantry5_outline (with the full inheritance chain), list_gantry5_assignments (which pages use which outline), set_gantry5_outline_assignments, create_gantry5_outline (duplicate an outline as a copy or inheriting from its source).
  • Layouts โ€” get_gantry5_layout, list_gantry5_outline_modules (module positions and module instances per outline, the Joomla modules each renders, and positions the layout never renders).
  • Particles โ€” list_gantry5_particle_types, get_gantry5_particle, update_gantry5_particle, get_gantry5_particle_defaults, update_gantry5_particle_defaults.
  • Styles โ€” get_gantry5_styles, update_gantry5_styles.
  • Gantry 5 Particle modules โ€” list_gantry5_particle_modules, update_gantry5_particle_module.
  • Backups โ€” list_gantry5_backups, restore_gantry5_backup.

Architecture

  • Every value says where it comes from: this outline, an instance inherited from another outline, the Base Outline, the theme's shipped config, or the blueprint default, resolved in the same order Gantry uses.
  • Reads never write. Gantry's own layout reader saves files when its index is out of date, so these tools read Gantry's YAML themselves instead of booting Gantry.
  • Writes change one file, key by key, only under templates/<theme>/custom/config/, after a backup (restore_gantry5_backup undoes them). Keys and values are checked against the particle or style blueprint, the YAML is written the way Gantry writes it and read back before it replaces the original, and Gantry's cache is cleared the way its own Clear Cache button does it. A styles change also deletes the outline's compiled CSS so the next page view rebuilds it.
  • Inherited items are refused, not silently copied: the error names the outline to edit instead, and every write lists the other outlines it also reaches.
  • Free, because Gantry 5 is free.

Gantry behaviour worth knowing

  • Joomla 6 needs Gantry 5.6.2 or later; 5.6.0 and 5.6.1 are Joomla 5 only. Gantry 5.6.4 with Helium 5.6.4 runs on Joomla 6.2 without the Backward Compatibility plugin. check_gantry5_health checks the combination.
  • Gantry's admin can overwrite an outline. For a template style without a configuration param, Gantry's outline list copies the preset's folder over the outline's own; Gantry's installer creates every style that way. The write tools set the param first, and the health check warns about any style still missing it.
  • Deleting a template style that other outlines inherit from makes them fall back to a preset, and Gantry creates a folder for the deleted outline on the next page view. The health check reports both.
  • A Custom HTML particle with "Process Twig" on runs its content as server-side Twig; only a Super User can turn it on or change such content through these tools.
  • Gantry's configuration YAML is readable over the web; keep secrets out of particle settings.

Build

  • Requires PHP 8.2+ and CS MCP for J. Installs disabled, with an explanation, when CS MCP for J is not present, and clears Joomla's caches after install.
Log in to comment

Add comment

Submit