Skip to content
← all systems

@mikulgohil/sitecore-mcp

MCP server that lets AI agents do real Sitecore XM Cloud work: GraphQL, Item Service and PowerShell tools.

published on npm · enterprise CMS tooling

role
Author and maintainer
stack
TypeScript · MCP SDK · Sitecore XM Cloud · Zod
status
npm

@mikulgohil/sitecore-mcp is an MCP server that lets AI agents do real Sitecore XM Cloud work without leaving the editor. It exposes GraphQL, Item Service, and PowerShell surfaces as typed MCP tools, so agents can create components, scaffold templates, and generate serialized YML items. Inputs and outputs are Zod-validated at the MCP boundary - a malformed agent call fails loudly instead of corrupting CMS content.

// 01 - PROBLEM

AI agents could not touch Sitecore: creating components, scaffolding templates or generating serialized YML items meant leaving the IDE. This MCP server gives agents first-class Sitecore XM Cloud tools.

// 02 - APPROACH

  • GraphQL, Item Service and PowerShell surfaces exposed as typed MCP tools.
  • Agents create components, scaffold templates and generate serialized YML without leaving the editor.

// 03 - ARCHITECTURE

typed MCP tools · Zod-validated

  1. Agent request

    The agent calls an MCP tool

  2. MCP tool

    GraphQL, Item Service, or PowerShell surface

  3. Sitecore API

    The tool talks to XM Cloud

  4. Validated result

    Zod-checked in and out; malformed calls fail loudly

Typed tool contracts
Zod-validated inputs and outputs at the MCP boundary - malformed agent calls fail loudly instead of corrupting CMS content.

// 04 - PRODUCTION-GRADE

  • Published and versioned on npm
  • Used in real agency Sitecore delivery

// 05 - ARTIFACTS