MODX3MCP
MODX3MCP connects external AI agents to MODX Revolution 3.x using the Model Context Protocol (MCP).
The PHP component provides the site's HTTP API, while a separate local Node.js client exposes the available tools to MCP-compatible applications over stdio.
Внимание
MODX3MCP is not a ready-to-use AI agent or an embedded MODX chat. The component connects the website to an external agent; the agent and its user interface must be configured separately.
User → AI agent / MCP client → MODX3MCP → MODXFeatures in version 1.2.4
The component offers 192 public MCP tools: 81 read-only operations and 111 mutations. The server contract includes 193 actions when the internal get_capabilities action is counted.
Supported areas include:
- resources, templates, chunks, snippets, plugins, TVs and categories;
- system settings, media sources, packages and namespaces;
- users, groups, roles, access policies and contexts;
- integration with ClientConfig, MIGX, miniShop2, VersionX and VirtualPage when installed;
- a dependency graph to inspect references, broken links and potentially unused code;
- stale-state protection (CAS,
STALE_STATE) for supported write operations; - a manager dashboard for endpoint details, token handling, settings and capability groups.
Nine manager UI languages: Russian (ru), English (en), Spanish (es), German (de), French (fr), Ukrainian (uk), Kazakh Cyrillic (kk), Dutch (nl) and Polish (pl). The manager dashboard and dependency graph are translated. See the nine-language documentation index.
Installation
Install modx3mcp-1.2.4-pl.transport.zip, matching your MODX version:
- modstore.pro — MODX3MCP — install using the MODX package manager;
- GitHub release 1.2.4 — download the transport archive for manual installation.
On a fresh installation, the component is disabled by default. Open Extras / Components → MODX MCP, review its security settings and enable modxmcp.enabled. The API token (modxmcp.api_token) is generated during installation; only appropriately authorized administrators can reveal it.
Connect an MCP client
The machine running the AI application needs Node.js 18+. Example stdio MCP configuration (the exact format depends on the client application):
{
"mcpServers": {
"modx": {
"command": "npx",
"args": ["-y", "github:rumata-estor/modx3-mcp#v1.2.4"],
"env": {
"MODX_MCP_SITE_URL": "https://example.com/assets/components/modxmcp/api.php",
"MODX_MCP_TOKEN": "YOUR_SITE_PRIVATE_TOKEN"
}
}
}
}Use HTTPS and keep the token secret. Start with authenticated read-only operations after connecting.
Upgrading
A regular upgrade of an existing modx3mcp package preserves configuration and the API token.
Complete installation guide · Security · Tool catalog · Changelog.
Compatibility
- MODX Revolution 3.x (verified on 3.2.4-pl);
- PHP 8.1 or later;
- Node.js 18+ for the local MCP client.
Source code and license
Free and open source under the MIT License. Author: Alexander Palochkin.
