io.github.Antonytm/mcp-sitecore-server
平台与服务by antonytm
面向 Sitecore 的 Model Context Protocol 服务器,方便 AI 工具与 Sitecore 内容和能力进行集成。
什么是 io.github.Antonytm/mcp-sitecore-server?
面向 Sitecore 的 Model Context Protocol 服务器,方便 AI 工具与 Sitecore 内容和能力进行集成。
README
Model Context Protocol server for Sitecore
Implemented tools
-
GraphQL API
-
introspection-grahpql-{schema}: returns the GraphQL schema -
query-graphql-{schema}: executes a GraphQL query
-
-
Item Service API
-
item-service-get-item: returns an item by ID -
item-service-get-item-children: returns the children of an item by ID -
item-service-get-item-by-path: returns an item by path -
item-service-create-item: creates an item by providing a template ID and parent path. -
item-service-edit-item: edits an item by ID -
item-service-delete-item: deletes an item by ID -
item-service-search-items: searches for items -
item-service-run-stored-query: runs a stored query -
item-service-run-stored-search: runs a stored search - Composite Item Service API
-
item-service-get-languages: returns Sitcore languages in the instance -
item-service-get-item-descendants: returns the descendants of an item by ID
-
-
-
Sitecore Powershell
-
get-powershell-documentation: returns the documentation describing all Sitecore Powershell commands -
run-powershell-script: runs a PowerShell script and returns the output - Security
-
security-get-current-user: returns the current user -
security-get-user-by-identity: returns a user by name -
security-get-user-by-filter: returns a user by filter -
security-new-domain: creates a new domain -
security-new-user: creates a new user -
security-new-role: creates a new role -
security-remove-domain: removes a domain -
security-remove-user: removes a user -
security-remove-role: removes a role -
security-get-domain: returns a domains -
security-get-domain-by-name: returns a domain by name -
security-get-role-by-identity: returns a role by name -
security-get-role-by-filter: returns a role by filter -
security-get-role-member: returns members of a role -
security-enable-user: enables a user -
security-disable-user: disables a user -
security-set-user-password: changes a user's password -
security-lock-item-by-id: locks an item by ID -
security-unlock-item-by-id: unlocks an item by ID -
security-lock-item-by-path: locks an item by path -
security-unlock-item-by-path: unlocks an item by path -
security-protect-item-by-id: protects an item by ID -
security-protect-item-by-path: protects an item by path -
security-unprotect-item-by-id: unprotects an item by ID -
security-unprotect-item-by-path: unprotects an item by path -
security-test-acccount: tests an account -
security-unlock-user: unlocks a user- test covergage requires logging user with wrong password
-
security-login-user: logs in a user. Blocked by SPE issue. -
security-logout-user: logs out a user. Blocked by SPE issue -
security-export-user: exports a user. Blocked by SPE issue -
security-import-user: imports a user. Blocked by SPE issue -
security-export-role: exports a role. Blocked by SPE issue -
security-import-role: imports a role. Blocked by SPE issue -
security-add-role-member: adds a member to a role -
security-remove-role-member: removes a member from a role -
security-test-item-acl-by-id: tests an item ACL by ID -
security-test-item-acl-by-path: tests an item ACL by path -
security-add-item-acl-by-id: adds an item ACL by ID -
security-add-item-acl-by-path: adds an item ACL by path -
security-clear-item-acl-by-id: clears an item ACL by ID -
security-clear-item-acl-by-path: clears an item ACL by path -
security-set-item-acl-by-id: sets an item ACL by ID -
security-set-item-acl-by-path: sets an item ACL by path
-
- Provider
-
provider-get-item-by-id: returns an item by ID -
provider-get-item-by-path: returns an item by path -
provider-get-item-by-query: returns an item by query -
provider-get-item-by-path: returns an item by path
-
- Presentation
-
presentation-get-layout-by-id: returns item presentation layout by ID -
presentation-get-layout-by-path: returns item presentation layout by path -
presentation-set-layout-by-id: sets item presentation layout by ID -
presentation-set-layout-by-path: sets item presentation layout by path -
presentation-reset-layout-by-id: resets item presentation layout by ID -
presentation-reset-layout-by-path: resets item presentation layout by path -
presentation-merge-layout-by-id: Merges final and shared layouts by item Id -
presentation-merge-layout-by-path: Merges final and shared layouts by item path -
presentation-get-layout-device: Gets the layout for the device specified -
presentation-get-default-layout-device: Gets the default layout -
presentation-get-rendering-by-id: Gets rendering definition by item id -
presentation-get-rendering-by-path: Gets rendering definition by item path -
presentation-remove-rendering-by-path: Removes renderings from an item by owners item path -
presentation-remove-rendering-by-id: Removes renderings from an item by owners item ID -
presentation-add-rendering-by-path: Adds a rendering to presentation of an item specified by path -
presentation-add-rendering-by-id: Adds a rendering to presentation of an item specified by item ID -
presentation-set-rendering-by-path: Updates rendering specified by item path with new values -
presentation-set-rendering-by-id: Updates rendering specified by item ID with new values -
presentation-switch-rendering-by-id: Switches an existing rendering specified by item ID with an alternate one for the item specified by item ID -
presentation-switch-rendering-by-path: Switches an existing rendering specified by path with an alternate one for the item specified by path -
presentation-switch-rendering-by-unique-id: Switches an existing rendering specified by unique ID with an alternate one for the item specified by item ID -
presentation-get-placeholder-setting-by-id: Gets placeholder setting assigned on the item specified by ID -
presentation-get-placeholder-setting-by-path: Gets placeholder setting assigned on the item specified by path -
presentation-add-placeholder-setting-by-id: Adds a placeholder setting to the item specified by ID -
presentation-add-placeholder-setting-by-path: Adds a placeholder setting to the item specified by path -
presentation-remove-placeholder-setting-by-id: Removes placeholder setting from the item specified by ID -
presentation-remove-placeholder-setting-by-path: Removes placeholder setting from the item specified by path -
presentation-get-rendering-parameter-by-id: Gets rendering parameter for the item specified by ID -
presentation-get-rendering-parameter-by-path: Gets rendering parameter for the item specified by path -
presentation-remove-rendering-parameter-by-id: Removes the specified rendering parameter from the rendering placed on the item specified by ID -
presentation-remove-rendering-parameter-by-path: Removes the specified rendering parameter from the rendering placed on the item specified by path -
presentation-set-rendering-parameter-by-id: Adds and updates the specified rendering parameter from the rendering placed on the item specified by ID -
presentation-set-rendering-parameter-by-path: Adds and updates the specified rendering parameter from the rendering placed on the item specified by path
-
- Indexing
-
indexing-initialize-search-index: initializes one or more search indexes -
indexing-get-search-index: returns a search index -
indexing-find-item: finds an item in a search index -
indexing-suspend-search-index: suspends one or more running search indexes -
indexing-stop-search-index: stops one or more running search indexes -
indexing-resume-search-index: resumes one or more paused search indexes -
indexing-initialize-search-index-item-by-id: rebuilds the index for a given tree with the specified root item by ID and index name -
indexing-initialize-search-index-item-by-path: rebuilds the index for a given tree with the specified root item by path and index name -
indexing-remove-search-index-item-by-id: removes the item with the specified ID from the search index -
indexing-remove-search-index-item-by-path: removes the item with the specified path from the search index -
Skipped, no value for MCP server.indexing-initialize-item: initializes items with the PowerShell automatic properties for each field.
-
- Common
-
common-add-base-template-by-id: adds a base template to a template item by ID -
common-add-base-template-by-path: adds a base template to a template item by path -
common-add-item-version-by-id: creates a version of the item (by its id) in a new language based on an existing language version -
common-add-item-version-by-path: creates a version of the item (by its path) in a new language based on an existing language version -
common-convert-from-item-clone-by-id: converts an item from a clone to a fully independent item by ID -
common-convert-from-item-clone-by-path: converts an item from a clone to a fully independent item by path -
common-get-archive: gets Sitecore database archives -
common-get-archive-item: gets a list of items found in the specified archive -
common-get-cache: gets information about Sitecore caches -
common-get-database: gets information about Sitecore databases -
common-get-item-field-by-id: gets item fields as either names or fields or template fields by ID -
common-get-item-field-by-path: gets item fields as either names or fields or template fields by path -
common-get-item-clone-by-id: gets all the clones for the specified item by ID -
common-get-item-clone-by-path: gets all the clones for the specified item by path -
common-get-item-reference-by-id: gets item references (where it is used) for a Sitecore item by ID -
common-get-item-reference-by-path: gets item references (where it is used) for a Sitecore item by path -
common-get-item-referrer-by-id: gets items referring to a Sitecore item by ID (which items reference it) -
common-get-item-referrer-by-path: gets items referring to a Sitecore item by path (which items reference it) -
common-get-item-template-by-id: gets template information for a Sitecore item by ID -
common-get-item-template-by-path: gets template information for a Sitecore item by path -
common-get-item-workflow-event-by-id: gets entries from the workflow history for the specified item by ID -
common-get-item-workflow-event-by-path: gets entries from the workflow history for the specified item by path -
common-get-sitecore-job: gets list of the current Sitecore jobs -
common-invoke-workflow-by-id: executes workflow action for a Sitecore item by ID -
common-invoke-workflow-by-path: executes workflow action for a Sitecore item by path -
common-new-item-clone-by-id: creates a new item clone based on the item provided by ID -
common-new-item-clone-by-path: creates a new item clone based on the item provided by path -
common-new-item-workflow-event-by-id: creates a new entry in the workflow history for a Sitecore item by ID -
common-new-item-workflow-event-by-path: creates a new entry in the workflow history for a Sitecore item by path -
common-publish-item-by-id: publishes a Sitecore item by ID -
common-publish-item-by-path: publishes a Sitecore item by path -
common-remove-archive-item: removes items permanently from the specified archive -
common-remove-base-template-by-id: removes a base template from a template item by ID -
common-remove-base-template-by-path: removes a base template from a template item by path -
common-remove-item-version-by-id: removes a version of a Sitecore item by ID -
common-remove-item-version-by-path: removes a version of a Sitecore item by path -
common-reset-item-field-by-id: resets item fields, specified as either names, fields or template fields by ID -
common-reset-item-field-by-path: resets item fields, specified as either names, fields or template fields by path -
common-restart-application: restarts the Sitecore Application pool -
common-restore-archive-item: restores items to the original database from the specified archive -
common-set-item-template-by-id: sets the item template by ID -
common-set-item-template-by-path: sets the item template by path -
common-test-base-template-by-id: checks if the item inherits from the specified template by ID -
common-test-base-template-by-path: checks if the item inherits from the specified template by path -
common-update-item-referrer-by-id: updates all references to the specified item (by ID) to point to a new provided in the -NewTarget or removes links to the item -
common-update-item-referrer-by-path: updates all references to the specified item (by path) to point to a new provided in the -NewTarget or removes links to the item
-
- Logging
-
logging-get-logs: retrieves Sitecore logs from the log directory with filtering options
-
-
-
Sitecore CLI
-
sitecore-cli-documentation: gets sitecore cli documentation to provide more context for LLM
-
Tools selection
AI Agents may have limit on the amount of tools they can use. Please make sure that you have disabled the tools you don't need. It will make your agent faster, cheaper and more efficient.
Installation
Add the following Model Context Protocol server to your Cursor, VS Code, Claude:
"Sitecore": {
"type": "stdio",
"command": "npx",
"args": ["@antonytm/mcp-sitecore-server@latest"],
"env": {
"TRANSPORT": "stdio",
"GRAPHQL_ENDPOINT": "https://xmcloudcm.localhost/sitecore/api/graph/",
"GRAPHQL_SCHEMAS": "edge,master,core",
"GRAPHQL_API_KEY": "{6D3F291E-66A5-4703-887A-D549AF83D859}",
"GRAPHQL_HEADERS": "",
"ITEM_SERVICE_DOMAIN": "sitecore",
"ITEM_SERVICE_USERNAME": "admin",
"ITEM_SERVICE_PASSWORD": "b",
"ITEM_SERVICE_SERVER_URL": "https://xmcloudcm.localhost/",
"POWERSHELL_DOMAIN": "sitecore",
"POWERSHELL_USERNAME": "admin",
"POWERSHELL_PASSWORD": "b",
"POWERSHELL_SERVER_URL": "https://xmcloudcm.localhost/",
}
}
Environment Variables Description
TRANSPORT: The transport protocol to use. Options arestreamable-http,stdioorsse.GRAPHQL_ENDPOINT: The GraphQL endpoint URL for the Sitecore instance.GRAPHQL_SCHEMAS: The Sitecore schemas to use for the GraphQL API, comma-separated.GRAPHQL_API_KEY: The API key for the GraphQL endpoint.GRAPHQL_HEADERS: Additional headers to include in the GraphQL requests.ITEM_SERVICE_DOMAIN: The domain for the Item Service API authentication. Default issitecore.ITEM_SERVICE_USERNAME: The username for the Item Service API authentication.ITEM_SERVICE_PASSWORD: The password for the Item Service API authentication.ITEM_SERVICE_SERVER_URL: The base URL for the Item Service API.POWERSHELL_DOMAIN: The domain for the Sitecore PowerShell Remoting API authentication. Default issitecore.POWERSHELL_USERNAME: The username for the Sitecore PowerShell Remoting API authentication.POWERSHELL_PASSWORD: The password for the Sitecore PowerShell Remoting API authentication.POWERSHELL_SERVER_URL: The base URL for the Sitecore PowerShell Remoting API.AUTORIZATION_HEADER: Optional. If set, it will be used as an authorization header for access to the server. MCP server will expectauthorizationheader to be passed with the value of this environment variable. If environment variable is not set, the server will not check for the authorization header.
Docker images
antonytm/mcp-sitecore-linux: The Linux version of the MCP Sitecore server.antonytm/mcp-sitecore-windows: The Windows version of the MCP Sitecore server.
Resources list
-
config: returns the configuration of the server. Use it to check if everything is properly configured.
Local Installation / Development
- Clone the repository
- Run
npm installto install dependencies - Run
npm run buildto build the project - Run
npm startto start the server
Contributing
Please read CONTRIBUTING.md for details.
常见问题
io.github.Antonytm/mcp-sitecore-server 是什么?
面向 Sitecore 的 Model Context Protocol 服务器,方便 AI 工具与 Sitecore 内容和能力进行集成。
相关 Skills
MCP构建
by anthropics
聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。
✎ 想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。
Slack动图
by anthropics
面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。
✎ 帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
MCP服务构建器
by alirezarezvani
从 OpenAPI 一键生成 Python/TypeScript MCP server 脚手架,并校验 tool schema、命名规范与版本兼容性,适合把现有 REST API 快速发布成可生产演进的 MCP 服务。
✎ 帮你快速搭建 MCP 服务与后端 API,脚手架完善、扩展顺手,尤其适合想高效验证服务能力的开发者。
相关 MCP Server
Slack 消息
编辑精选by Anthropic
Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。
✎ 这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。
by netdata
io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。
✎ 这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。
by d4vinci
Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。