Aem Mcp Server

io.github.easingthemes由 GitHub 帳號 easingthemes 發布v1.3.9更新於 Oct 24, 2026

AEM MCP server. Chat with your AEM instance for content, component, and asset operations.

概覽

AI 產生的概覽

針對 Adobe Experience Manager 的 MCP 伺服器,讓助理以自然語言管理 AEM 的頁面、元件、資產、內容片段與工作流程。

可以做什麼
  • 管理頁面與元件:更新、掃描、新增、轉換與批次管理元件,並分析頁面與元件結構
  • 處理內容片段與體驗片段:完整新增讀取修改刪除、變體管理,以及伺服器端合併 JSON 字串欄位
  • 搜尋與探索:QueryBuilder、全文、模糊與增強頁面搜尋,以及範本與網站結構
  • 發佈與工作流程:發佈或取消發佈內容,啟動、推進或委派工作流程階段
  • 從頁面(含片段)擷取文字與圖片
  • 以唯讀資源列出各執行個體的元件、網站、範本與工作流程模型
適用情境
適合想透過 AI 用戶端操作 AEM 作者或發佈執行個體(AEMaaCS 或自架)而不必寫程式的場合,例如列出頁面上的元件、編輯片段或發佈內容。內容與行銷團隊,以及偏好以自然語言管理 AEM 的開發者都適用。
執行需求
需要 Node.js 20.19.0+、22.12.0+ 或 23+,以及可存取的 AEM 執行個體(本機或遠端)。可透過 npx 以 stdio 執行,或全域安裝後以 streamable HTTP 執行(預設連接埠 8502)。憑證以命令列參數傳入:自架 AEM 使用 host、user、pass,AEMaaCS 使用 clientId 與 clientSecret 進行 OAuth S2S 驗證。可設定多個具名執行個體。
安裝前請注意
需要 AEM 憑證;README 提醒 MCP 設定檔常被提交到版本庫,不要硬編碼憑證,應改用用戶端的 AEM_PASSWORD 等環境變數參照或安全輸入提示。預設憑證為 admin:admin,不應在正式執行個體上使用。工具可寫入、發佈、取消發佈並變更內容、元件與工作流程,執行前應確認操作。README 範例也會把憑證直接寫在執行個體字串中。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Aem Mcp Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

AEM MCP Server (aem-mcp-server)

[Version] [Release Status] [CodeQL Analysis] [semver: semantic-release] [AGPL-3.0]

AEM MCP Server is a full-featured Model Context Protocol (MCP) server for Adobe Experience Manager (AEM). It provides a simple integration with any AI Agent. This project is designed for non-technical persons who want to manage AEM via natural language.


Overview

  • Manage your AEM instance with natural language — content, components, assets, workflows
  • Works with any MCP-compatible client:
    • AI IDEs — Cursor, VS Code + Copilot, Windsurf, Cline, JetBrains AI Assistant, Zed
    • CLI agents — Claude Code, GitHub Copilot CLI, Gemini CLI, Amazon Q CLI
    • Chat & desktop apps — Claude Desktop, ChatGPT Desktop, Goose
  • Supports both AEMaaCS and self-hosted AEM instances
  • Two transport modes — stdio via npx (recommended, zero install) and streamable HTTP

Quick Start

Prerequisites

  • Node.js 20.19.0+ || 22.12.0+ || 23+
  • Access to an AEM instance (local or remote)

Stdio Transport (recommended)

No installation needed — the AI agent downloads and spawns the process automatically via npx.

Add to your project's MCP config (.mcp.json, .vscode/mcp.json, .cursor/mcp.json, etc.):

json
{
  "mcpServers": {
    "AEM": {
      "command": "npx",
      "args": ["-y", "aem-mcp-server", "-t", "stdio", "-H", "http://localhost:4502", "-u", "admin", "-p", "admin"]
    }
  }
}

Secrets: Since MCP config files are typically committed to the repo, avoid hardcoding credentials. Use your client's env var syntax instead:

ClientSyntax
Claude Code (.mcp.json)${AEM_PASSWORD} or ${AEM_PASSWORD:-admin}
VS Code / Copilot${input:aem-password} (prompts securely) or envFile
Cursor${env:AEM_PASSWORD}

Example with env var references (Claude Code):

json
{
  "mcpServers": {
    "AEM": {
      "command": "npx",
      "args": ["-y", "aem-mcp-server", "-t", "stdio", "-H", "${AEM_HOST:-http://localhost:4502}", "-u", "${AEM_USER:-admin}", "-p", "${AEM_PASSWORD:-admin}"]
    }
  }
}

Streamable HTTP Transport (alternative)

For scenarios where you need a persistent server (shared team server, multiple clients connecting simultaneously, etc.), install globally and start the server manually:

sh
npm install aem-mcp-server -g
aem-mcp -H=http://localhost:4502 -u=admin -p=admin

Then point your AI agent to the URL:

json
{
  "mcpServers": {
    "AEM": {
      "url": "http://127.0.0.1:8502/mcp"
    }
  }
}

[Install MCP Server]

Configuration

Options:
      --version    Show version number                                 [boolean]
  -H, --host                         [string] [default: "http://localhost:4502"]
  -u, --user                                         [string] [default: "admin"]
  -p, --pass                                         [string] [default: "admin"]
  -i, --id         clientId                               [string] [default: ""]
  -s, --secret     clientSecret                           [string] [default: ""]
  -m, --mcpPort                                         [number] [default: 8502]
  -t, --transport  Transport mode: http (default) or stdio
                           [string] [choices: "http", "stdio"] [default: "http"]
  -I, --instances  Named AEM instances: "local:http://localhost:4502:admin:admin
                   ,qa:https://qa.example.com:user:pass"  [string] [default: ""]
  -h, --help       Show help                                           [boolean]

Authentication:

  • For AEMaaCS, use clientId and clientSecret for OAuth S2S authentication. More info.
  • For self-hosted AEM, use user/pass. Default credentials are admin:admin.

Multi-instance: Connect to multiple AEM instances simultaneously:

sh
aem-mcp --instances "author:http://localhost:4502:admin:admin,publish:http://localhost:4503:admin:admin"

All tools will get an instance parameter to target a specific instance.


Features

  • 57 MCP Tools covering pages, components, assets, workflows, content fragments, and experience fragments
  • MCP Resources — agents discover components, sites, templates, and workflow models upfront via resources/list, eliminating discovery roundtrips
  • Tool Annotations — every tool tagged with group, readOnly, and complexity so agents can make smarter tool selection decisions
  • Response Verbosity — verbosity parameter (summary/standard/full) on content-reading tools strips JCR internals and truncates long text
  • Actionable Errors — error responses include suggestion and alternatives fields for self-healing agent workflows
  • Component Operations: Update, scan, add, convert, and bulk-manage AEM components (including Experience Fragments)
  • Content & Experience Fragments: Full CRUD + variation management for both CF and XF, plus server-side JSON-string field merging (manageContentFragment action mergeJsonField) for CFs that store a whole key→value map inside one JSON-encoded field
  • Advanced Search: QueryBuilder, fulltext, fuzzy, and enhanced page search
  • Replication & Workflows: Publish/unpublish content, start/advance/delegate workflow stages
  • Text & Image Extraction: Extract all text and images from pages, including fragments
  • Template & Structure Discovery: List templates, analyze page/component structure
  • Multi-instance: Connect to multiple AEM instances simultaneously; tools and resources are instance-aware
  • Security: Basic auth and OAuth S2S, environment-based config, safe operation defaults

Usage

Once configured in your AI IDE, just ask in natural language:

List all components on MyPage

Merging into a JSON-string field

Some Content Fragments store an entire key→value map inside a single field as a JSON-encoded string. To upsert a few keys without round-tripping the whole blob, use the mergeJsonField action — the read-merge-write happens server-side:

jsonc
{
  "action": "mergeJsonField",
  "fragmentPath": "/content/dam/<site>/.../labels",
  "field": "CFMValue",                 // the field holding the JSON string
  "jsonPointer": "/0/content/0/value", // RFC-6901 pointer to the object to merge into ("" = field root)
  "merge": { "search": "Search", "clear_search": "Clear search" },
  "variation": "master"                // default: master
}

New keys are added, existing keys overwritten (deep-merge), and untouched keys preserved. The response reports the keys added/overwritten and the before/after key count at the pointer.

MCP Resources

The server exposes read-only MCP resources so agents can discover AEM catalogs without tool calls:

Resource URIDescription
aem://{instance}/componentsAll components (name, resourceType, title, group)
aem://{instance}/sitesSite roots and language structure under /content
aem://{instance}/templatesAvailable page templates (path, title)
aem://{instance}/workflow-modelsWorkflow models (ID, title, description)

Resources return summary data only. In multi-instance mode, each instance gets its own set of resource URIs.

API Documentation

For detailed API documentation, please refer to the API Docs.

Similar Projects

  1. https://github.com/easingthemes/aem-mcp-server (Used as a base for this project)
  2. https://github.com/indrasishbanerjee/aem-mcp-server (Used as a base for #1)
  3. https://www.npmjs.com/package/@myea/aem-mcp-handler (Looks like an original source of #2)

來源:README.md,提交 fdf582a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.3.9最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分