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
Sitecore Community MCP
This repository contains the source code for the Sitecore Community MCP server — an open-source Model Context Protocol server that gives AI agents direct read/write access to Sitecore, so you stop copy-pasting between your agent and the Content Editor.
- 121 tools across search, query, create, read, update, delete, media, PowerShell, logging, security and presentation
- Three guides —
guide://compose-page,guide://bulk-updateandguide://diagnose-connection— resources an agent can read mid-task: two common, complex workflows that you'd want to use this MCP for, plus a connection issue self diagnosis helper. - Covers four Sitecore API surfaces: the Authoring and Management GraphQL API, the Item Service, GraphQL Edge and Sitecore PowerShell Extensions
- Works with SitecoreAI and Sitecore XM/XP (all versions), from any MCP-compatible client
- Implements MCP protocol revision 2026-07-28, and answers the older
initializehandshake from the same tool registrations — negotiating down to any revision from2025-11-25to2024-10-07, so a client on either era sees the same tools - Reported impact: 5× faster Figma-to-Sitecore workflows and ~70% less manual scaffolding (case study)
- Three ways to run it: npm, Docker, or from source
Getting started with Sitecore Community MCP
To run the Sitecore Community MCP server, you need:
- Node — the latest long-term support (LTS) release.
- A Sitecore XM, XP or SitecoreAI instance. Which parts you enable decides which tools
work: the
authoring.*groups need only the Authoring and Management API (normally already on in the cloud) plus a token, while the Item Service and SPE Remoting are off by default and need a config patch. Preparing your Sitecore instance covers all three and how to verify each.
Adding the server to your MCP client
Add the entry below to your client's server map — mcpServers in Cursor, Claude Code and
most other clients, servers in VS Code — and fill in your own endpoints and credentials:
{
"mcpServers": {
"sitecore-mcp": {
"type": "stdio",
"command": "npx",
"args": ["@antonytm/mcp-sitecore-server@latest"],
"env": {
"TRANSPORT": "stdio",
"GRAPHQL_ENDPOINT": "https://xmcloudcm.localhost/sitecore/api/graph/",
"GRAPHQL_SCHEMAS": "edge",
"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/",
"AUTHORING_CLIENT_ID": "",
"AUTHORING_CLIENT_SECRET": "",
"TOOL_PROFILE": ""
}
}
}
}
TOOL_PROFILE takes a comma-separated list of presets, and unions what each one hides.
Every preset names something absent or unwanted rather than a platform. Four name an API
surface your instance does not serve — no-spe, no-item-service,
no-edge-graphql and no-authoring-api — so an instance missing two of them can
say so. no-account-management is the one that is not about a missing surface: it
hides the twelve tools that create or edit an account on the CM, for a deployment that
would rather an agent could not do that at all (item security, and reading accounts and
roles, are untouched):
TOOL_PROFILE=no-spe,no-item-service
no-spe is the big one: without SPE installed and its remoting service enabled, roughly
three quarters of this server's tools cannot run, and hiding them is schema an agent no
longer pays for on every turn. An unknown name is reported on stderr and ignored, leaving
the rest of the list in force.
Every setting is documented in Configuration. Agents have a limit
on how many tools they can hold, so before you get far, read
Tool selection and trim the surface with TOOL_PROFILE,
TOOL_GROUPS and DISABLED_TOOLS.
To run the server in a container or from source instead, see Running the server.
How this compares to the Sitecore Marketer MCP
Sitecore's own Marketer MCP is a hosted service aimed at marketers on SitecoreAI. This server is the developer-grade counterpart, and on that ground it is the stronger tool:
| Sitecore Community MCP | Sitecore Marketer MCP | |
|---|---|---|
| Platforms | SitecoreAI and XM/XP, all versions — including your local Docker CM | SitecoreAI only |
| Hosting | Self-hosted (npm, Docker, source); credentials never leave your infrastructure | Hosted by Sitecore; OAuth through the cloud |
| Surface | 121 tools across the full developer surface: items, templates, presentation, media, security, indexing, logs, publishing, GraphQL, raw PowerShell | Marketer operations: pages, components, briefs, brand kits, personalization, A/B tests |
| Escape hatch | run-powershell-script, raw Edge GraphQL and raw Authoring GraphQL — if a tool doesn't exist, the capability still does | Closed tool set |
| Layout safety | add-rendering-to-placeholder refuses components the placeholder settings forbid, naming the allow-list | Writes are not validated against placeholder settings |
| Tool gating | TOOL_GROUPS / DISABLED_TOOLS / TOOL_PROFILE trim the schema cost per turn | Fixed tool list |
They are complementary rather than exclusive: the Marketer MCP carries the cloud marketing features this server has no API for (briefs, brand kits, personalization variants, A/B tests), and nothing stops a client from connecting both. For building, migrating, auditing and operating Sitecore solutions, this server is the one with the depth.
Documentation and community resources
- Preparing your Sitecore instance — SPE Remoting, the Item Service, GraphQL keys, and the config patch that enables them
- Running the server — npm, Docker, from source, and the two transports
- Tool reference — every tool, grouped by API surface
- Configuration — environment variables, transports, timeouts and TLS
- Tool selection —
TOOL_GROUPS,DISABLED_TOOLSandTOOL_PROFILE - Guides — the
guide://compose-page,guide://bulk-updateandguide://diagnose-connectionresources, and when each is offered - Docker images — the published Linux and Windows images
- Changelog — what's new in 2.0 and its breaking changes
Community resources:
- Model Context Protocol specification
- Sitecore PowerShell Extensions documentation
- Sitecore Stack Exchange
- Sitecore Community Slack
- Sitecore Community Forum
Contributions
We are very grateful to the community for contributing bug fixes and improvements. We welcome all efforts to evolve and improve this server; read below to learn how to participate in those efforts.
Contributing Guide
Read our contributing guide to learn about our development process, how to propose bug fixes and improvements, and how to build, debug and test your changes.
License
Sitecore Community MCP is using the Apache 2.0 license.
Support
This is a community project and is not supported by Sitecore.
- Issues, bugs and feature requests: open an issue at Antonytm/mcp-sitecore-server/issues.
- Questions about Sitecore itself: Sitecore Stack Exchange or the Sitecore Community Slack will serve you better than a GitHub issue.
常见问题
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 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。
接口测试套件
by alirezarezvani
扫描 Next.js、Express、FastAPI、Django REST 的 API 路由,自动生成覆盖鉴权、参数校验、错误码、分页、上传与限流场景的 Vitest 或 Pytest 测试套件。
✎ 帮你把API与集成测试自动化跑顺,减少回归漏测;能力全面,尤其适合复杂接口场景的QA团队。
相关 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 等反爬机制。
✎ 这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。