Skip to main content
Glama

MCP Server for Joomla

A Joomla 4, 5 and 6 component that exposes a Model Context Protocol (MCP) server over HTTP JSON-RPC. It lets MCP clients such as Claude Desktop and Cursor work with Joomla content through the site's own Joomla Web Services API.

Version: 1.12.0 · Requires: Joomla 4, 5 or 6 · PHP 8.1+ · Licence: GPL-2.0-or-later

Features

  • Every MCP protocol revision from 2024-11-05 to the stateless 2026-07-28 on one endpoint (see Protocol Versions)

  • Argument completion for prompts and article resources, live progress for long-running tools, and Mcp-Param-* headers for gateway routing

  • Administrator dashboard with request summary (totals, error rate and auth failures), a requests-per-day chart, top tools and methods, and a requests log — restricted to the viewer's own requests unless they are a Super User

  • One-click Claude Desktop extension (.mcpb), generated on demand from the administrator or attached to every release

  • Security with bearer token authentication, optional IP allow-listing and Origin validation

  • OAuth 2.1 sign-in for MCP clients that support it, such as ChatGPT and Claude on the web, with each connection bound to a Governed Mode credential (see OAuth Sign-in)

  • Configurable fixed-window rate limiting

  • Response caching through Joomla's cache layer

  • JSON Schema validation for MCP tool inputs

  • Health endpoint for monitoring

  • MCP Resources (recent published articles as joomla://article/{id}) and guided Prompts (draft, SEO audit, translate)

  • Joomla update server metadata for official releases

Related MCP server: WordPress MCP Python

MCP Tools

The component exposes 98 tools grouped by Joomla domain. List tools include a pagination object (total_count, count, offset, has_more, next_offset) so agents can page through large result sets. Write tools use Joomla's Web Services API where possible; a small number of behaviours not exposed cleanly through Web Services (custom module HTML writes, multilingual associations, template file editing) are handled through Joomla's database or filesystem APIs.

Articles

Tool

Description

get_article_by_id

Retrieve a Joomla article by ID

search_articles

Search Joomla articles

create_article

Create a new Joomla article

update_article

Update an existing Joomla article

delete_article

Delete a Joomla article (trashes it first when needed, then deletes permanently)

Categories

Tool

Description

list_categories

List Joomla content categories (use to discover valid catid values)

get_category

Retrieve a Joomla content category by ID

create_category

Create a new Joomla content category

update_category

Update an existing Joomla content category

delete_category

Delete a Joomla content category (trashes first, then deletes; the category must be empty)

Tags

Tool

Description

list_tags

List Joomla tags

get_tag

Retrieve a Joomla tag by ID

create_tag

Create a new Joomla tag

update_tag

Update an existing Joomla tag

delete_tag

Delete a Joomla tag (trashes first, then deletes)

Contacts

Tool

Description

create_contact

Create a Joomla contact in a contact category (requires the Web Services - Contact plugin)

Redirects

Tool

Description

list_redirects

List redirect links, filtered by text, state, status code or missing destination (collected 404s) and sorted by any column, e.g. by hits

get_redirect

Retrieve a redirect link by ID

create_redirect

Create a redirect link from a source URL to a destination URL

update_redirect

Update a redirect link; only the fields sent change

delete_redirect

Delete a redirect link (trashes first, then deletes)

Joomla only acts on redirect links while the System - Redirect plugin is enabled, which it is not on a fresh install, and only for requests that would otherwise return 404. Use list_extensions and set_extension_state to check and enable it. Status codes other than 301, and links with no destination, need the Redirect component's Advanced Mode. Joomla's Web Services API lists enabled and disabled links only, never archived or trashed ones.

Article versions

Tool

Description

list_article_versions

List saved versions (content history) for a Joomla article

get_article_version

Retrieve a single article version from content history

diff_article_versions

Compare two saved article versions (unified diff for introtext/fulltext)

keep_article_version

Toggle the "keep forever" flag on an article version

delete_article_version

Delete a single article version from content history

restore_article_version

Restore a Joomla article to a previous saved version

Article versioning tools require Joomla article versioning to be enabled.

Custom modules

Tool

Description

create_custom_module

Create a new Joomla "Custom" (mod_custom) module

list_custom_modules

List all Joomla "Custom" (mod_custom) modules

get_custom_module_by_id

Retrieve a Joomla "Custom" module by ID

update_custom_module

Update the content of a Joomla "Custom" module

Modules

Tool

Description

list_modules

List all Joomla modules

get_module_by_id

Retrieve a Joomla module by ID

create_module

Create a new module of any installed type (type-specific settings via params)

update_module

Update any Joomla module (all types); merges type-specific params and sets the menu (page) assignment

delete_module

Delete a Joomla module and its page assignments

Menus and menu items

Tool

Description

list_menus

List all Joomla menus (menu types)

create_menu

Create a new Joomla menu (menu type)

list_menu_items

List menu items, optionally filtered by menu type

get_menu_item

Retrieve a Joomla menu item by ID

create_menu_item

Create a new Joomla menu item

update_menu_item

Update an existing Joomla menu item

delete_menu_item

Delete a Joomla menu item (trashes first, then deletes)

Media

Tool

Description

list_media

List Joomla media files and folders

get_media

Retrieve a single Joomla media file or folder by path

upload_media

Upload a new Joomla media file

create_media_folder

Create a new folder in the Joomla media library

update_media

Rename, move or replace an existing media file or folder

delete_media

Delete a Joomla media file or folder by path

To upload a file from the client's computer, pass its path as local_path, e.g. upload_media {"path": "banners/logo.png", "local_path": "~/Pictures/logo.png"}. The bundled bridge (mcp-http-bridge.js, also inside the .mcpb Claude Desktop extension) reads the file and sends it as content. The model writes only the path, so a file costs a few tokens and never needs a separate curl step. local_path is marked in the tool schema with x-mcp-local-file, and update_media and install_extension accept it too. A client that connects over HTTP without the bridge gets an error naming the alternatives (source_url, or base64 content for small files). The request carries the file base64-encoded, so PHP's post_max_size caps the size at about three quarters of its value (413 when exceeded), and com_media's own Maximum Size and allowed-extension options still apply.

Content languages

Tool

Description

list_content_languages

List Joomla content languages (tags assignable to articles, menu items, etc.)

get_content_language

Retrieve a Joomla content language by ID

create_content_language

Create a new Joomla content language

update_content_language

Update an existing Joomla content language

delete_content_language

Delete a Joomla content language by ID

Installed languages

Tool

Description

list_installed_languages

List languages installed on the Joomla site (site and administrator clients)

Template styles

Tool

Description

list_template_styles

List Joomla template styles for the chosen client

get_template_style

Retrieve a Joomla template style by ID

create_template_style

Create a new template style for an already-installed template

update_template_style

Update an existing Joomla template style

delete_template_style

Delete a Joomla template style

Installed templates

Tool

Description

list_installed_templates

List templates installed on the Joomla site (site and administrator clients)

Template files

Tool

Description

list_template_files

List editable source files of an installed template (Joomla's "Customise" view)

get_template_file

Read the source of a single template file

update_template_file

Write the source of a template file, creating it if its parent directory exists

create_template_override

Create a template override by copying a core view, module, plugin or layout into the template

list_template_updated_files

List the template's "Updated Files": overrides whose core file changed in a Joomla or extension update

diff_template_override

Show a unified diff from the core file to the template override (optionally with both full sources)

manage_template_updated_files

Mark Updated Files records checked or unchecked, or remove the records (override files are untouched)

Extensions

Tool

Description

list_extensions

List installed extensions (components, modules, plugins, templates, languages, …)

set_extension_state

Enable or disable an installed extension (e.g. activate a plugin after installing it)

get_extension_params

Read an extension's saved Options, plus the option definitions its manifest declares (name, type, default, list options)

update_extension_params

Update an extension's saved Options, merging into the stored values — only the keys you send change

install_extension

Install a Joomla extension from a download URL, a zip already on the server (source_path, e.g. one staged with task=rpc.upload) or a small base64 zip (arbitrary code execution — restrict to trusted callers)

uninstall_extension

Uninstall an extension by extension_id (protected/locked core extensions are refused)

install_extension, uninstall_extension and update_template_file are disabled by default because they allow code execution on the server. Remove them from the Disabled Tools list in the component options to opt in. The extension params tools and the custom field tools are disabled by default too, for different reasons — see below.

A tool argument cannot carry a large file: the model would have to write the whole package out as base64. Through the bundled bridge, pass the zip's path as local_path (see Media). Otherwise, to install a zip from the client's disk, upload it to the same endpoint with task=rpc.upload and the same Authorization header, then pass the returned source_path to install_extension:

curl -H "Authorization: Bearer $MCP_BEARER_TOKEN" -F file=@tpl_example.zip \
  "https://example.com/index.php?option=com_mcpserver&task=rpc.upload"
# {"source_path":"/var/www/tmp/mcp-upload-3f9c….zip","size":482113}

The upload is refused (403) whenever install_extension would be: while it is disabled, in read-only mode, or in Governed Mode for a user without site-wide core.admin. A staged package can be installed once, is deleted when it is, and otherwise expires after an hour. PHP's upload_max_filesize and post_max_size limit its size (413 when exceeded).

Extension Options

get_extension_params and update_extension_params read and write #__extensions.params: the settings an administrator edits on an extension's Options screen (a plugin's options, a component's Options, a template's or module type's defaults). Joomla's Web Services API ignores params on an extension write, so this is the only way to configure a plugin without a round-trip through the backend — the case that motivates them is deploying a plugin and setting its options in the same run.

Identify the extension by extension_id (from list_extensions) or by element plus type, adding folder for a plugin and client when the same element is installed for both site and administrator.

  • Writes merge. Only the keys you send change; every other stored option is left alone. A null value removes a key. A nested object is replaced wholesale rather than deep-merged.

  • Read first. get_extension_params also returns option_definitions, read from the extension's own manifest (config.xml for a component, the installation manifest for everything else): the key names, types, defaults and list options. An extension whose Options have never been saved stores an empty params object even though its manifest declares defaults, so this is how you learn what it accepts. Keys the manifest does not declare are still written, and reported back in unknown_keys so a typo is visible.

  • Module and template instances are elsewhere. Use update_module or update_template_style for those; these tools change the extension row, not an instance.

  • Secrets are masked. Values of manifest fields typed password are returned as ******** and listed in redacted_keys. Extensions with no manifest on disk have no definitions to consult, so nothing is masked for them.

  • The MCP server's own component is refused, for reading and for writing. Its options hold the bearer token and the Joomla API token, and they carry the policy — read-only mode, Disabled Tools, authentication — that gates these tools. Change them in the administrator.

Both are disabled by default, for a third reason than the code-execution and custom field tools: an extension's Options are where third-party extensions keep their credentials, so reading them is a disclosure risk, and writing them reconfigures the site. In Governed Mode both require site-wide core.admin, matching Joomla's own gating of Options screens.

Multilingual associations

Tool

Description

list_article_associations

List cross-language associations for a Joomla article

set_article_associations

Set cross-language associations for a Joomla article

list_menu_item_associations

List cross-language associations for a Joomla site menu item

set_menu_item_associations

Set cross-language associations for a Joomla site menu item

Maintenance

Tool

Description

clear_cache

Clear Joomla's system cache so recent changes become visible on the site (all groups, or a single group such as page or com_content; site, administrator or both clients)

Site diagnostics

Tool

Description

get_rendered_page

Fetch the HTML a guest visitor sees for an article or menu item (anonymous request, 512 KB cap, 30 s timeout)

seo_audit_articles

Audit published articles for missing titles, missing/short/long metadesc, and duplicate aliases in the same category

check_internal_links

Resolve article hyperlinks offline against published/unpublished articles and menu paths; external links are never probed

get_system_information

Joomla, PHP, database and web server versions, PHP limits and required extensions, and which core directories are writable — redacted by Joomla's own privacy filter

get_rendered_page fetches the public site as an anonymous visitor so the result matches what a guest actually sees after the template and content plugins run. check_internal_links never issues HTTP requests for external URLs. seo_audit_articles does not inspect metakey — Joomla stopped using keyword meta tags in 2009. get_system_information returns only the essentials of System Information, never the global configuration or phpinfo, and requires core.admin in Governed Mode just as Joomla's own screen does.

Custom fields

Tool

Description

list_fields

List the custom fields defined for a field context, optionally filtered by group, state or a name/title search

get_field

Get one field, with its selectable options split into the stored value and the displayed label

find_field_by_name

Resolve a field's technical name to its full definition, so an ID never has to be guessed

create_field

Create a custom field, including its type-specific fieldparams

update_field

Update a field; params and fieldparams are merged, and category assignments are preserved

delete_field

Delete a field and every value stored for it (trashes it first when needed)

reorder_fields

Set the order of the fields in a context in one call

Custom field groups

Tool

Description

list_field_groups

List the field groups (tabs) defined for a field context

get_field_group

Get one field group by ID

create_field_group

Create a field group

update_field_group

Update a field group; params is merged into the existing params

delete_field_group

Delete a field group (trashes it first when needed)

reorder_field_groups

Set the order of the tabs in a context in one call

Custom field values

Tool

Description

get_item_field_values

Read the field values stored on one article, category, contact or user, reporting the raw stored value and its resolved label separately

set_item_field_values

Set field values on one article, contact or user, keyed by each field's technical name

The field tools accept the six contexts core Joomla declares: com_content.article, com_content.categories, com_contact.contact, com_contact.mail, com_contact.categories and com_users.user. Third-party contexts are not supported, because core registers the com_fields Web Services routes from inside plg_webservices_content, _contact and _users rather than from a plugin of its own — a 404 from a field tool usually means one of those plugins is disabled.

All 15 field tools are disabled by default, for a different reason than the code-execution tools above: they change the site's content schema rather than its content, and deleting a field destroys every value stored against it. Remove the ones you want from the Disabled Tools list in the component options; the read-only tools can be enabled on their own.

Two Joomla behaviours are worth knowing before using them. update_field merges params and fieldparams rather than replacing them, and always resends category assignments, because Joomla's PATCH handler would otherwise discard both. Replacing fieldparams.options on a list, radio or checkboxes field makes Joomla delete every stored value that is no longer one of the options. Per-field permission rules are not exposed by Joomla's Web Services API, so these tools can neither read nor change them; the view access level (access) is fully supported.

Not covered (by design)

User management, Joomla global configuration, contacts and banners are deliberately not exposed as tools. User accounts and global configuration in particular would widen the blast radius of a leaked bearer token well beyond content management. If your workflow needs one of these domains, open an issue — they are candidates for opt-in tools in a future release.

MCP Resources

When Enable Resources is on (the default), MCP clients can attach published articles as context without a tool call.

  • resources/list returns up to 50 recent published articles, newest first, as joomla://article/{id}.

  • resources/templates/list advertises the template joomla://article/{id}.

  • resources/read returns the article HTML (introtext + fulltext, mimeType text/html).

Turning the option off omits the resources capability, returns empty lists, and answers resources/read with method-not-found. Under protocol 2026-07-28 the list methods are method-not-found (HTTP 404) too, as that revision prescribes for a capability the server does not advertise.

MCP Prompts

When Enable Prompts is on (the default), MCP clients can pick guided workflows from a menu:

Prompt

Arguments

Purpose

draft-article

topic (required), category (optional)

Draft a new article matching the tone of recent published articles, for create_article

seo-audit-article

article_id (required)

Audit an article for SEO and suggest update_article changes

translate-article

article_id and target_language (required)

Translate an article, then create_article and set_article_associations

Turning the option off omits the prompts capability, returns an empty list, and answers prompts/get with method-not-found. Under protocol 2026-07-28, prompts/list is method-not-found (HTTP 404) too.

Clients that support completion get suggestions while filling in prompt arguments: published category titles for category, article IDs for article_id (type digits to match an ID, or words to search titles), and published content-language codes for target_language. The id of the joomla://article/{id} resource template completes the same way. Suggestions come from the caller's own view of the site — their API token and Joomla ACL — so they never reveal anything the caller could not already read.

Installation

Download the latest pkg_mcpserver-<version>.zip package from the GitHub releases page, then install it in Joomla Administrator via System → Install → Extensions. It installs the component and the System - MCP Server plugin (which serves the OAuth Sign-in URLs), and Joomla lists it under Extensions: Manage as the MCP Server for Joomla package.

Upgrading from 1.11.x or earlier, where the component was installed on its own: Joomla offers the 1.12.0 update on the component as usual. It installs the package over the existing component, keeping all settings and data, and later updates come through the package. To uninstall, uninstall the package; Joomla will not remove the component or plugin separately.

For a local development build:

./build.sh

The build creates pkg_mcpserver-<version>.zip at the repository root, containing com_mcpserver.zip and plg_system_mcpserver.zip. The version is read from mcpserver.xml and written into the package and plugin manifests.

Configuration

Open Administrator → Components → MCP Server, then click Options in the toolbar.

Key settings:

  • Server Name: identifier returned in MCP server information.

  • Base URL: base URL of the Joomla site. Leave empty to use the current site.

  • Shared Joomla API Token: Joomla Web Services API token used for outbound REST calls in shared-token mode.

  • Verify SSL: verifies SSL certificates for outbound requests.

  • Resolve Host To IP: optional. Pins the Base URL hostname to a specific IP (e.g. 127.0.0.1) for the component's outbound REST calls only. Use when the server cannot reach its own public hostname (NAT hairpinning); the Host header and TLS validation still use the real hostname, so Verify SSL can stay on.

  • Cache TTL: response cache lifetime in seconds.

  • Require Auth: requires MCP clients to send a bearer token.

  • MCP Bearer Token: token clients must send in Authorization: Bearer.

  • IP Allow List: comma-separated client IP allow list.

  • Allowed Origins: comma-separated browser origins allowed to call the endpoint. A request carrying any other Origin header is refused with HTTP 403, as the MCP specification requires to prevent DNS rebinding. That includes the site's own origin, which must be listed to be trusted: Joomla derives it from the request's Host header, which a rebinding page controls. Clients that send no Origin (desktop clients, the bridge) are unaffected.

  • Trusted Proxies: comma-separated proxy IPs trusted for X-Forwarded-For.

  • Read-Only Mode: when enabled, only read-only tools may run; every tool that writes, deletes or installs anything is blocked.

  • Disabled Tools: comma- or newline-separated MCP tool names to block (e.g. delete_article). Defaults to the code-execution tools (install_extension, uninstall_extension, update_template_file), the custom field tools and the extension params tools (get_extension_params, update_extension_params); remove them to opt in, or enter none to allow all tools (an emptied field reverts to the defaults when saved).

  • Enable Resources: when enabled (the default), MCP clients can list and read recent published articles as joomla://article/{id} resources.

  • Enable Prompts: when enabled (the default), MCP clients can use the draft, SEO audit and translate article prompts.

  • Rate Limit Requests and Rate Limit Window: fixed-window rate limit settings.

Configuring the API Token

The Shared Joomla API Token setting holds a Joomla Web Services API token. The component uses it to make outbound REST calls to your site's own Joomla Web Services API, which is how most MCP tools read and write content. Without a valid token, those tools will fail.

  1. Enable the Web Services API. In the Joomla administrator, go to System → Global Configuration → Server and ensure the Web Services components are available. The relevant plugins live under System → Plugins; enable Web Services - Content (and any other Web Services - plugins for the data you want to access). The API plugin System - Joomla API Authentication must also be enabled — it is by default.

  2. Create a token for a user. Tokens are tied to a Joomla user account, and API calls run with that user's permissions, so use an account that has the access the MCP tools need (for full functionality, a Super User or an account with the equivalent component permissions).

    • Go to Users → Manage, edit the chosen user, and open the Joomla API Token tab.

    • Set Token Enabled to Yes, click Save, then copy the generated token. (If the tab is missing, enable the User - Joomla API Token plugin under System → Plugins.)

  3. Paste the token into the component options. Back in Components → MCP Server, click Options in the toolbar, paste the value into Shared Joomla API Token and click Save.

  4. Verify the API is reachable. The component calls your site's own API under /api/, so the web server must route that path to Joomla's API application. On Apache this works out of the box — Joomla's core .htaccess rewrites /api/ requests to api/index.php. On nginx there is no equivalent by default, so every tool fails while health.ping still reports ok (that endpoint only checks the component itself, not the outbound API layer). Check with:

    curl -i "https://example.com/api/index.php/v1/content/articles?page[limit]=1" \
      -H "X-Joomla-Token: <API_TOKEN>" -H "Accept: application/vnd.api+json"

    The status code alone is not enough — the response format tells you where the problem lies:

    Response from /api/…

    Actual cause

    HTML page

    The request never reached the API application → web server routing (see the nginx note below)

    JSON 404

    The relevant Web Services - * plugin is disabled

    JSON 401/403

    The API token is invalid, or its user lacks sufficient permissions

    On nginx, add this block before the general location / block, then run nginx -t and reload:

    location /api {
        try_files $uri $uri/ /api/index.php$is_args$args;
    }

Security note: treat the API token like a password. It grants the token user's level of access to your site. Store it only in trusted configuration, and regenerate it (by toggling Token Enabled off and on) if it may have been exposed.

Governed Mode (per-client credentials)

By default the component authenticates every MCP client with the single shared MCP Bearer Token and makes outbound Joomla API calls with the Shared Joomla API Token in Basic Settings. Governed Mode ignores that Basic Settings token and replaces it with individually issued, revocable credentials: each MCP client authenticates with its own bearer token, and every request is made using the Joomla API token encrypted inside that client's credential. Successful mutating tool calls made under a governed credential are additionally attributed to the credential's Joomla user in both the component's own request log and, when available, Joomla's core Action Logs.

Prerequisite: API tokens for every user who needs a credential

A governed credential runs tool calls with the user's own Joomla Web Services API token, so each of them must be allowed to hold one. Joomla's User - Joomla API Token plugin controls this, and its Allowed User Groups setting defaults to Super Users only — so on a stock site nobody else can have an API token, and their claim fails.

Before cutover, for every group that will hold a credential:

  1. Go to System → Plugins → User - Joomla API Token and make sure it is enabled.

  2. Add those user groups to Allowed User Groups, and save.

Users don't need to do anything with their tokens. When a user claims, the component works out their current token from their account, stores it encrypted, and never displays it. A user who has never had a token gets one created at claim, exactly as Joomla would create it when they save their profile; it then appears on the API Tokens tab of their account like any other. A user who has switched their token off must switch it back on before claiming: the component never re-enables it for them.

You do not have to work this out in advance: if a requester's group has no route to an API token, the Pending credential requests queue says so on that request, names the groups to add, and distinguishes a group restriction from the plugin being disabled outright. A request flagged this way can be approved, but never claimed, until the plugin setting is changed.

Prerequisite: Joomla Action Logs

Governed Mode attributes successful mutating tool calls (create/update/delete-type calls, not read-only ones) to the issuing user in Joomla's core System - Action Logs plugin, in addition to the component's own audit trail. Before cutover, enable it under System → Plugins → System - Action Logs. If the plugin (or com_actionlogs itself) is not installed or enabled, the Action Log write is silently skipped — the MCP response and the component's own audit trail (#__mcpserver_request_log) are unaffected — so governed mode still functions, but per-user actions will not appear in Users → Action Logs. Enable it first if you need that attribution for compliance or review.

Setup

Setup requires Governed Mode to be enabled first — see Migrating clients off the shared token below, and note the downtime warning there. While Governed Mode is off, Manage Credentials is hidden and every task on it is refused.

The credential salt — a random value stored in the component's own configuration, not in mcpserver.xml or any file — is generated automatically when the component is installed or updated, so there is nothing to provision by hand. Combined with the Joomla application secret, it derives the key that encrypts every stored credential's underlying Joomla API token, so back it up as part of your normal Joomla database backups; see Recovery below.

  1. Go to Administrator → Components → MCP Server → Client Configuration and click Manage Credentials in the Governed Mode panel. (There is no menu entry for it: the panel, and therefore the page, only appear while Governed Mode is on.) Any user granted Manage Own Credentials (mcpserver.credential.self) or core.manage on com_mcpserver can open this page — that is what the request step below relies on. Approving, rejecting, deleting a credential and pruning the audit trail each additionally require a Super User (global core.admin).

  2. Confirm the Governed Mode Setup panel reports the salt as provisioned, and record the recovery key fingerprint (a one-way hash, never the salt or secret itself) shown beside it. After a database restore or migration, compare it against the fingerprint shown post-restore to confirm the credential salt was preserved intact, before assuming existing credentials will still decrypt.

  3. If the panel instead shows a Provision credential salt button, automatic provisioning did not run (or the stored salt is unreadable). Pressing it — a Super User action — generates a salt only while no credential exists. If credentials are already stored, do not treat this as a fix: their salt has been lost, a new one cannot decrypt them, and the button will refuse. Restore the salt from backup instead, or reissue every credential.

Migrating clients off the shared token

Governed Mode is a single site-wide toggle (Governed Mode in Options → Security Settings), not a per-client switch, and it is the master switch for the whole credential workflow: while it is off, Manage Credentials is hidden from the administrator menu and no credential can be requested, approved or claimed.

Plan for downtime. Enabling Governed Mode stops the shared MCP Bearer Token from being accepted immediately, but credentials can only be requested after it is enabled. Every MCP client is therefore refused from the moment you switch it on until its user has claimed a credential. Do the cutover in a maintenance window, and have each user ready to claim.

  1. Enable Governed Mode in Options → Security Settings. Manage Credentials appears in the component menu. From this point the Shared Joomla API Token and MCP Bearer Token are no longer consulted, and existing clients will be refused until they are migrated.

  2. Open Manage Credentials and check the Setup panel above: the credential salt is generated automatically on install/update, so this is normally a confirmation rather than an action.

  3. Each eligible user opens Manage Credentials and requests access with the client name. A Super User reviews the pending request, approves it, and chooses that request's expiry. Super Users can approve or reject their own requests, so a site with a single administrator can issue itself a credential.

  4. The request owner then opens their approved request and claims the credential. The component binds the owner's own current Joomla API token at this step; the owner does not enter it. The one-time bearer token shown must be copied immediately — it is never displayed again — and configured in the client the same way the shared bearer token was (Authorization: Bearer <token>, or HTTP_AUTH_BEARER for the bundled bridge).

  5. Once every client has claimed and configured its credential, service is restored: each client now authenticates and acts as its own issued credential and its own Joomla user.

To roll back, switch Governed Mode off: the shared bearer token is accepted again immediately, issued credentials stop working, and Manage Credentials disappears from the menu. Nothing is deleted, so switching it back on restores the previously issued credentials.

Rollback

Disabling Governed Mode in Options → Security Settings is the rollback: it does not delete the credential salt, any issued credential, or the audit trail — it only stops governed authentication being used, so requests fall back to the shared MCP Bearer Token and Shared Joomla API Token immediately. Re-enabling later resumes governed authentication with the same salt and the same still-active credentials, without needing to re-run Setup or reissue credentials (unless they have since expired or been revoked).

Recovery

  • Lost or revoked a credential: submit and claim a new request from Manage Credentials for the same user; the old credential's bearer token cannot be recovered (it is never stored), only revoked.

  • Restoring the site from a database backup: because encrypted credential tokens are keyed on the credential salt (#__extensions.params.credential_salt for com_mcpserver) together with the Joomla application secret, restore both from the same backup as the #__mcpserver_credential table. Compare the recovery key fingerprint shown on Manage Credentials before and after the restore to confirm the salt was preserved; a changed fingerprint means every existing credential must be reissued.

  • Joomla application secret rotated independently of a restore: this also invalidates every existing credential's stored ciphertext, since the encryption key is derived from both the secret and the salt. Reissue credentials for every affected client after rotating the secret.

OAuth Sign-in

MCP clients that support OAuth, such as ChatGPT and Claude on the web, can connect by signing in to the site instead of being given a bearer token. You give the client only the endpoint URL. The client registers itself, sends the user to the site to sign in and approve it, and then calls the server with short-lived access tokens.

OAuth sign-in builds on Governed Mode rather than replacing it. On the approval page, the user chooses one of their own active MCP credentials, or one of their approved credential requests: choosing a request claims it there and then, so the user never handles a bearer token. The client then acts as that credential, with its Joomla user's permissions. Approval, expiry, revocation, the audit trail and Action Log attribution apply as they do for a credential bearer token. Revoking the credential, or switching OAuth off, ends the client's access on its next request.

Requirements

  • Governed Mode is on, and each user who will connect has a credential or an approved credential request. An approved request can be claimed on the approval page itself.

  • The System - MCP Server plugin is enabled. It is part of the MCP Server for Joomla package, is enabled when the package is first installed, and does nothing while OAuth Sign-in is off. Clients look up OAuth at /.well-known/oauth-authorization-server on the site root, a URL a component cannot serve, so the plugin answers it.

  • URL rewriting sends unknown paths to Joomla, so that /.well-known/... reaches the plugin. Joomla's standard .htaccess on Apache and its documented try_files rule on nginx both do this. Without URL rewriting, the endpoints fall back to index.php/mcp-oauth/..., but the /.well-known/ metadata still needs a web-server rule.

  • The site is reachable over HTTPS at its own domain root. On a site installed in a subdirectory (https://example.com/joomla/), clients look for /.well-known/oauth-authorization-server/joomla on the domain root, outside Joomla. Add a web-server rewrite from there to /joomla/.well-known/oauth-authorization-server.

Setup

  1. In Options → Security Settings, set OAuth Sign-in to Yes (it appears once Governed Mode is on).

  2. Set Allowed Redirect Hosts (recommended), for example chatgpt.com and claude.ai, plus cursor: or vscode: if desktop clients use those app schemes. With this set, clients can only register redirects to what it lists. Loopback redirects (http://127.0.0.1:<port>) used by desktop clients are always allowed. Left empty, any https host or app scheme can be registered, and the approval page is the only safeguard.

  3. Check discovery: curl https://example.com/.well-known/oauth-authorization-server should return JSON whose issuer is your site URL.

  4. In the MCP client, add the server by its endpoint URL, https://example.com/index.php?option=com_mcpserver&task=rpc.handle, and choose OAuth (or leave authentication on automatic). The client opens the site's sign-in page. Sign in with your Joomla account, choose a credential and approve.

How it works

  • An unauthenticated request to the MCP endpoint gets HTTP 401 with WWW-Authenticate: Bearer resource_metadata="...", pointing at the Protected Resource Metadata (RFC 9728).

  • The authorisation server supports the authorisation code grant with PKCE (S256 only), Dynamic Client Registration (RFC 7591), Client ID Metadata Documents (an https client_id whose JSON document the site fetches, caches for an hour, and checks like a registration), rotating refresh tokens, token revocation (RFC 7009), resource indicators (RFC 8707) and the iss response parameter (RFC 9207). The only scope is mcp.

  • The approval page uses Joomla's own login, so two-factor authentication and login plugins apply. Nothing is redirected back to a client before the user has signed in. The page shows the client's name as the client's own unverified claim, together with where it will send the user back to.

  • Client ID Metadata Documents are fetched only over https on port 443, from a host name that resolves to public addresses, with no redirects, a 5-second timeout and a 16 KB limit, so a client_id cannot be used to reach the server's internal network. The approval page names the host a document came from, which unlike the client's name is verified.

  • Only client registration is rate-limited (per IP, using the RPC limits). The token endpoint is not, because hosted clients call it for all their users from a few shared addresses.

  • Access tokens last an hour by default (Access Token Lifetime). Each refresh issues a new refresh token (Refresh Token Lifetime, 30 days by default). If an old refresh token or a used authorisation code is presented again, every token from that approval is revoked.

  • Codes, tokens and client secrets are stored only as SHA-256 hashes, in #__mcpserver_oauth_*. Registered clients that never complete a sign-in are removed after 30 days.

Method

Path

Description

GET

/.well-known/oauth-authorization-server

Authorization Server Metadata (RFC 8414)

GET

/.well-known/oauth-protected-resource

Protected Resource Metadata (RFC 9728); also at index.php?option=com_mcpserver&task=oauth.resource

GET, POST

/mcp-oauth/authorize

Sign-in and approval page (redirects to task=oauth.authorize)

POST

/mcp-oauth/token

Token endpoint

POST

/mcp-oauth/register

Dynamic Client Registration (when Allow Client Registration is on)

POST

/mcp-oauth/revoke

Token revocation

Endpoints

Method

Path

Description

POST

/index.php?option=com_mcpserver&task=rpc.handle

MCP JSON-RPC endpoint in the site application (Streamable HTTP, every protocol version)

POST

/index.php?option=com_mcpserver&task=rpc.upload

Stage an extension package (multipart field file) for install_extension's source_path

GET

/index.php?option=com_mcpserver&task=rpc.sse

Legacy HTTP+SSE stream for 2024-11-05 clients (the bundled bridge does not use it)

GET

/index.php?option=com_mcpserver&task=health.ping

Site health endpoint

POST

/administrator/index.php?option=com_mcpserver&task=rpc.handle

MCP JSON-RPC endpoint in the administrator application

GET

/administrator/index.php?option=com_mcpserver&task=health.ping

Administrator health endpoint

Protocol Versions

The endpoint serves every MCP revision from 2024-11-05 to 2026-07-28 on the same URL and decides per request which rules apply:

Revision

How a client selects it

2026-07-28 (stateless)

Every request carries io.modelcontextprotocol/protocolVersion and io.modelcontextprotocol/clientCapabilities in params._meta. There is no handshake; server/discover reports the supported versions, capabilities and server identity.

2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05

The initialize handshake. A client asking initialize for any other version — including 2026-07-28, which has no handshake — is offered 2025-11-25.

For 2026-07-28 requests:

  • Every POST must carry MCP-Protocol-Version, Mcp-Method and, for tools/call, prompts/get and resources/read, Mcp-Name, each matching the body (a value that is not plain ASCII is sent as =?base64?…?=). A missing or mismatched header gets HTTP 400 with -32020, an unsupported version 400 with -32022 and the supported list, a missing _meta field 400 with -32602, and a method the revision does not define (ping, logging/setLevel, resources/subscribe, …) 404 with -32601. Batches are refused.

  • Results carry resultType: "complete" and the server's name and version in _meta. server/discover, tools/list, prompts/list and resources/templates/list add ttlMs: 300000 and cacheScope: "public"; resources/list and resources/read add the Cache TTL option (in milliseconds) and cacheScope: "private", because in Governed Mode they are read with the caller's own token.

  • subscriptions/listen is answered as an event stream: an acknowledgement with an empty filter, then the closing result. The server advertises no change notifications (listChanged and subscribe are false), so it ends the stream at once rather than holding a PHP worker open; clients should re-fetch on the ttlMs hints rather than reconnect.

  • structuredContent may be any JSON value. For earlier revisions it is sent only when the result is a JSON object; the text content always carries the full result.

  • Tools whose schema marks id, version_id, extension_id or catid with x-mcp-header (52 tools) also need the matching Mcp-Param-Id, Mcp-Param-Version-Id, Mcp-Param-Extension-Id or Mcp-Param-Catid header whenever that argument is sent, so gateways can route or audit on the target without reading the body. A missing or mismatched header gets HTTP 400 with -32020. The bundled bridge sends them.

For every revision:

  • Arguments that fail the tool's input schema come back as a tool result with isError: true (so the model can correct them) rather than a -32602 error; an unknown tool name is a -32602 error.

  • An accepted notification gets 202 when the client sent MCP-Protocol-Version, and 204 otherwise, which is all that bridges from 1.9.0 and earlier understand. Only notifications/* methods may be sent without an id: any other method sent that way gets 400 with -32600 and is not run.

  • GET is served only for the legacy 2024-11-05 stream. A GET carrying MCP-Protocol-Version, and any DELETE, get 405.

  • A rate-limited request gets HTTP 429 with code -31000. It was -32002, which MCP reserves.

  • A tools/call carrying _meta.progressToken receives notifications/progress on an event-stream response while it runs: page by page for tools that read many pages (SEO audit, internal-link check, custom module lists) and by stage for install_extension. A call that reports no progress still gets an ordinary JSON response. Closing the stream cancels the call at its next progress point — never after a change has been saved — and it is logged with status 499.

  • completion/complete is available whenever Enable Prompts or Enable Resources is on.

Authorisation is supported through OAuth Sign-in, which needs Governed Mode. Not implemented, all optional in the specification: push change notifications, multi-round-trip input requests (no tool needs input from the client) and the tasks extension. These are planned. The deprecated logging, sampling and roots features will not be added.

Upgrading: a bridge or .mcpb extension from 1.9.0 or earlier does not send the headers 2026-07-28 requires, so a client speaking that revision through it gets -32020. The exception is the server/discover probe that dual-era clients send first: without the header it is answered as a legacy request (-32601), so such a client falls back to initialize and keeps working in the older protocol. After upgrading the component, download the extension again (below) or replace your copy of mcp-http-bridge.js. Clients that use initialize keep working with the old bridge.

Claude Desktop Extension (.mcpb)

For Claude Desktop the easiest client setup is the bundled extension: a .mcpb file (a zip in the MCPB format) that installs with a double-click. It contains the component's own zero-dependency HTTP bridge, so there is no Node.js install, no npm package and no hand-edited JSON — Claude Desktop supplies the Node runtime itself, and the connector appears as MCP Server for Joomla with the project logo.

Download it from your own site (recommended). In Administrator → Components → MCP Server, click Download Claude Desktop extension in the MCP Client Configuration card. The component generates a personalised bundle on the fly: the endpoint URL is pre-filled and the connector is named after the site. Each site's bundle also gets its own extension name, derived from the site's URL, so several Joomla sites can be installed side by side in Claude Desktop. Bundles downloaded from 1.11.0 or earlier all shared one extension name, so installing one replaced another and lost its bearer token; download each site's bundle again to install them side by side.

Or download the generic bundle. Every GitHub release also publishes com_mcpserver.mcpb alongside the component zip.

To install:

  1. Double-click the downloaded .mcpb file (requires Claude Desktop).

  2. Enter the MCP endpoint URL — pre-filled when the bundle was downloaded from your site; otherwise copy the RPC Endpoint shown under Components → MCP Server.

  3. Enter the MCP Bearer Token from Components → MCP Server, under Options in the toolbar.

The bearer token is never embedded in the downloaded file: it remains a one-time paste into Claude Desktop's settings, so no live credential lands in your downloads folder, backups or sync folders.

Desktop Client Bridge

Claude Desktop users: prefer the .mcpb extension above — it needs no Node.js or manual configuration. The bridge below remains for other stdio clients and custom setups.

For MCP clients that use stdio transport, run the included Node.js bridge. After installation it is located at components/com_mcpserver/mcp-http-bridge.js in your Joomla site root. When working from a repository checkout or extracted release zip, use site/mcp-http-bridge.js instead.

node components/com_mcpserver/mcp-http-bridge.js <endpoint-url> [bearer-token]

Example:

node components/com_mcpserver/mcp-http-bridge.js "https://example.com/index.php?option=com_mcpserver&task=rpc.handle" "$MCP_BEARER_TOKEN"

MCP client configuration

For your agent (e.g. Codex, Cursor, Claude, Hermes, OpenClaw), point your MCP client configuration file at the bundled bridge. Give each site its own server name: a client keys its servers by name, so two sites under the same name would replace one another. The example in Components → MCP Server is already named after the site, e.g. joomla-example-com:

{
  "mcpServers": {
    "joomla-example-com": {
      "command": "node",
      "args": [
        "/path/to/joomla/components/com_mcpserver/mcp-http-bridge.js",
        "https://example.com/index.php?option=com_mcpserver&task=rpc.handle"
      ],
      "env": {
        "HTTP_AUTH_BEARER": "your-mcp-bearer-token"
      }
    }
  }
}

The bridge sends each stdio message as its own HTTP POST, adding the MCP-Protocol-Version, Mcp-Method and Mcp-Name headers Streamable HTTP requires, and relays an event-stream reply message by message. It does no transport negotiation, so connection failures surface their real cause. A notifications/cancelled from the client aborts the matching HTTP request instead of being forwarded.

Windows / Claude Desktop

Claude Desktop on Windows spawns MCP servers with a truncated PATH that excludes the Node.js directory, so "command": "npx" (or a bare "node") fails with spawn npx ENOENT. Any cmd.exe layer — npx, npx.cmd or cmd /c — must also be avoided: cmd.exe treats & as a command separator and splits the endpoint URL at &task=, which the site answers with an HTML 404. Use the absolute path to node.exe and invoke the bridge directly. Copy mcp-http-bridge.js to the Windows machine first (from components/com_mcpserver/ in the Joomla site root, or from the release zip):

{
  "mcpServers": {
    "joomla-example-com": {
      "command": "C:\\Program Files\\nodejs\\node.exe",
      "args": [
        "C:\\path\\to\\mcp-http-bridge.js",
        "https://example.com/index.php?option=com_mcpserver&task=rpc.handle"
      ],
      "env": {
        "HTTP_AUTH_BEARER": "your-mcp-bearer-token"
      }
    }
  }
}

Fully quit Claude Desktop from the tray after editing the configuration — closing the window is not enough.

The bearer token can also be supplied through HTTP_AUTH_BEARER. Set MCP_IGNORE_SSL=1 only for local development with self-signed certificates. If the site cannot be reached, the bridge gives up after 15 seconds of trying to connect (DNS, TCP and the TLS handshake) and reports the cause (e.g. Could not connect to example.com within 15s) instead of leaving the client to time out without one; MCP_CONNECT_TIMEOUT changes the limit in seconds (0 disables it). It bounds only connecting, so a long-running tool call is never cut off.

Release Build

composer validate --working-dir=admin --no-check-publish
./build.sh

Licence

MCP Server for Joomla is free software released under GPL-2.0-or-later.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      D
      maintenance
      An MCP server that enables users to execute arbitrary shell commands on their local machine and receive the output. It provides a terminal tool for running system commands through MCP-compatible clients using the Python SDK.
      1
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      SSH-based MCP server that enables remote execution of SSH commands, file transfers, and secure server management via the MCP protocol.
      ISC