
Sitecore
STDIOModel Context Protocol server for Sitecore with GraphQL, Item Service, and PowerShell APIs
Model Context Protocol server for Sitecore with GraphQL, Item Service, and PowerShell APIs
GraphQL API
introspection-grahpql-{schema}
: returns the GraphQL schemaquery-graphql-{schema}
: executes a GraphQL queryItem Service API
item-service-get-item
: returns an item by IDitem-service-get-item-children
: returns the children of an item by IDitem-service-get-item-by-path
: returns an item by pathitem-service-create-item
: creates an item by providing a template ID and parent path.item-service-edit-item
: edits an item by IDitem-service-delete-item
: deletes an item by IDitem-service-search-items
: searches for itemsitem-service-run-stored-query
: runs a stored queryitem-service-run-stored-search
: runs a stored searchitem-service-get-languages
: returns Sitcore languages in the instanceitem-service-get-item-descendants
: returns the descendants of an item by IDSitecore Powershell
get-powershell-documentation
: returns the documentation describing all Sitecore Powershell commandsrun-powershell-script
: runs a PowerShell script and returns the outputsecurity-get-current-user
: returns the current usersecurity-get-user-by-identity
: returns a user by namesecurity-get-user-by-filter
: returns a user by filtersecurity-new-domain
: creates a new domainsecurity-new-user
: creates a new usersecurity-new-role
: creates a new rolesecurity-remove-domain
: removes a domainsecurity-remove-user
: removes a usersecurity-remove-role
: removes a rolesecurity-get-domain
: returns a domainssecurity-get-domain-by-name
: returns a domain by namesecurity-get-role-by-identity
: returns a role by namesecurity-get-role-by-filter
: returns a role by filtersecurity-get-role-member
: returns members of a rolesecurity-enable-user
: enables a usersecurity-disable-user
: disables a usersecurity-set-user-password
: changes a user's passwordsecurity-lock-item-by-id
: locks an item by IDsecurity-unlock-item-by-id
: unlocks an item by IDsecurity-lock-item-by-path
: locks an item by pathsecurity-unlock-item-by-path
: unlocks an item by pathsecurity-protect-item-by-id
: protects an item by IDsecurity-protect-item-by-path
: protects an item by pathsecurity-unprotect-item-by-id
: unprotects an item by IDsecurity-unprotect-item-by-path
: unprotects an item by pathsecurity-test-acccount
: tests an accountsecurity-unlock-user
: unlocks a user
security-login-user
: logs in a user. Blocked by SPE issue.security-logout-user
: logs out a user. Blocked by SPE issuesecurity-export-user
: exports a user. Blocked by SPE issuesecurity-import-user
: imports a user. Blocked by SPE issuesecurity-export-role
: exports a role. Blocked by SPE issuesecurity-import-role
: imports a role. Blocked by SPE issuesecurity-add-role-member
: adds a member to a rolesecurity-remove-role-member
: removes a member from a rolesecurity-test-item-acl-by-id
: tests an item ACL by IDsecurity-test-item-acl-by-path
: tests an item ACL by pathsecurity-add-item-acl-by-id
: adds an item ACL by IDsecurity-add-item-acl-by-path
: adds an item ACL by pathsecurity-clear-item-acl-by-id
: clears an item ACL by IDsecurity-clear-item-acl-by-path
: clears an item ACL by pathsecurity-set-item-acl-by-id
: sets an item ACL by IDsecurity-set-item-acl-by-path
: sets an item ACL by pathprovider-get-item-by-id
: returns an item by IDprovider-get-item-by-path
: returns an item by pathprovider-get-item-by-query
: returns an item by queryprovider-get-item-by-path
: returns an item by pathpresentation-get-layout-by-id
: returns item presentation layout by IDpresentation-get-layout-by-path
: returns item presentation layout by pathpresentation-set-layout-by-id
: sets item presentation layout by IDpresentation-set-layout-by-path
: sets item presentation layout by pathpresentation-reset-layout-by-id
: resets item presentation layout by IDpresentation-reset-layout-by-path
: resets item presentation layout by pathpresentation-merge-layout-by-id
: Merges final and shared layouts by item Idpresentation-merge-layout-by-path
: Merges final and shared layouts by item pathpresentation-get-layout-device
: Gets the layout for the device specifiedpresentation-get-default-layout-device
: Gets the default layoutpresentation-get-rendering-by-id
: Gets rendering definition by item idpresentation-get-rendering-by-path
: Gets rendering definition by item pathpresentation-remove-rendering-by-path
: Removes renderings from an item by owners item pathpresentation-remove-rendering-by-id
: Removes renderings from an item by owners item IDpresentation-add-rendering-by-path
: Adds a rendering to presentation of an item specified by pathpresentation-add-rendering-by-id
: Adds a rendering to presentation of an item specified by item IDpresentation-set-rendering-by-path
: Updates rendering specified by item path with new valuespresentation-set-rendering-by-id
: Updates rendering specified by item ID with new valuespresentation-switch-rendering-by-id
: Switches an existing rendering specified by item ID with an alternate one for the item specified by item IDpresentation-switch-rendering-by-path
: Switches an existing rendering specified by path with an alternate one for the item specified by pathpresentation-switch-rendering-by-unique-id
: Switches an existing rendering specified by unique ID with an alternate one for the item specified by item IDpresentation-get-placeholder-setting-by-id
: Gets placeholder setting assigned on the item specified by IDpresentation-get-placeholder-setting-by-path
: Gets placeholder setting assigned on the item specified by pathpresentation-add-placeholder-setting-by-id
: Adds a placeholder setting to the item specified by IDpresentation-add-placeholder-setting-by-path
: Adds a placeholder setting to the item specified by pathpresentation-remove-placeholder-setting-by-id
: Removes placeholder setting from the item specified by IDpresentation-remove-placeholder-setting-by-path
: Removes placeholder setting from the item specified by pathpresentation-get-rendering-parameter-by-id
: Gets rendering parameter for the item specified by IDpresentation-get-rendering-parameter-by-path
: Gets rendering parameter for the item specified by pathpresentation-remove-rendering-parameter-by-id
: Removes the specified rendering parameter from the rendering placed on the item specified by IDpresentation-remove-rendering-parameter-by-path
: Removes the specified rendering parameter from the rendering placed on the item specified by pathpresentation-set-rendering-parameter-by-id
: Adds and updates the specified rendering parameter from the rendering placed on the item specified by IDpresentation-set-rendering-parameter-by-path
: Adds and updates the specified rendering parameter from the rendering placed on the item specified by pathindexing-initialize-search-index
: initializes one or more search indexesindexing-get-search-index
: returns a search indexindexing-find-item
: finds an item in a search indexindexing-suspend-search-index
: suspends one or more running search indexesindexing-stop-search-index
: stops one or more running search indexesindexing-resume-search-index
: resumes one or more paused search indexesindexing-initialize-search-index-item-by-id
: rebuilds the index for a given tree with the specified root item by ID and index nameindexing-initialize-search-index-item-by-path
: rebuilds the index for a given tree with the specified root item by path and index nameindexing-remove-search-index-item-by-id
: removes the item with the specified ID from the search indexindexing-remove-search-index-item-by-path
: removes the item with the specified path from the search indexindexing-initialize-item
: initializes items with the PowerShell automatic properties for each field.common-add-base-template-by-id
: adds a base template to a template item by IDcommon-add-base-template-by-path
: adds a base template to a template item by pathcommon-add-item-version-by-id
: creates a version of the item (by its id) in a new language based on an existing language versioncommon-add-item-version-by-path
: creates a version of the item (by its path) in a new language based on an existing language versioncommon-convert-from-item-clone-by-id
: converts an item from a clone to a fully independent item by IDcommon-convert-from-item-clone-by-path
: converts an item from a clone to a fully independent item by pathcommon-get-archive
: gets Sitecore database archivescommon-get-archive-item
: gets a list of items found in the specified archivecommon-get-cache
: gets information about Sitecore cachescommon-get-database
: gets information about Sitecore databasescommon-get-item-field-by-id
: gets item fields as either names or fields or template fields by IDcommon-get-item-field-by-path
: gets item fields as either names or fields or template fields by pathcommon-get-item-clone-by-id
: gets all the clones for the specified item by IDcommon-get-item-clone-by-path
: gets all the clones for the specified item by pathcommon-get-item-reference-by-id
: gets item references (where it is used) for a Sitecore item by IDcommon-get-item-reference-by-path
: gets item references (where it is used) for a Sitecore item by pathcommon-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 IDcommon-get-item-template-by-path
: gets template information for a Sitecore item by pathcommon-get-item-workflow-event-by-id
: gets entries from the workflow history for the specified item by IDcommon-get-item-workflow-event-by-path
: gets entries from the workflow history for the specified item by pathcommon-get-sitecore-job
: gets list of the current Sitecore jobscommon-invoke-workflow-by-id
: executes workflow action for a Sitecore item by IDcommon-invoke-workflow-by-path
: executes workflow action for a Sitecore item by pathcommon-new-item-clone-by-id
: creates a new item clone based on the item provided by IDcommon-new-item-clone-by-path
: creates a new item clone based on the item provided by pathcommon-new-item-workflow-event-by-id
: creates a new entry in the workflow history for a Sitecore item by IDcommon-new-item-workflow-event-by-path
: creates a new entry in the workflow history for a Sitecore item by pathcommon-publish-item-by-id
: publishes a Sitecore item by IDcommon-publish-item-by-path
: publishes a Sitecore item by pathcommon-remove-archive-item
: removes items permanently from the specified archivecommon-remove-base-template-by-id
: removes a base template from a template item by IDcommon-remove-base-template-by-path
: removes a base template from a template item by pathcommon-remove-item-version-by-id
: removes a version of a Sitecore item by IDcommon-remove-item-version-by-path
: removes a version of a Sitecore item by pathcommon-reset-item-field-by-id
: resets item fields, specified as either names, fields or template fields by IDcommon-reset-item-field-by-path
: resets item fields, specified as either names, fields or template fields by pathcommon-restart-application
: restarts the Sitecore Application poolcommon-restore-archive-item
: restores items to the original database from the specified archivecommon-set-item-template-by-id
: sets the item template by IDcommon-set-item-template-by-path
: sets the item template by pathcommon-test-base-template-by-id
: checks if the item inherits from the specified template by IDcommon-test-base-template-by-path
: checks if the item inherits from the specified template by pathcommon-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 itemcommon-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 itemlogging-get-logs
: retrieves Sitecore logs from the log directory with filtering optionsSitecore CLI
sitecore-cli-documentation
: gets sitecore cli documentation to provide more context for LLMAI 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.
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/", } }
TRANSPORT
: The transport protocol to use. Options are streamable-http
, stdio
or sse
.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 is sitecore
.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 is sitecore
.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 expect authorization
header 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.antonytm/mcp-sitecore-linux
: The Linux version of the MCP Sitecore server.antonytm/mcp-sitecore-windows
: The Windows version of the MCP Sitecore server.config
: returns the configuration of the server. Use it to check if everything is properly configured.npm install
to install dependenciesnpm run build
to build the projectnpm start
to start the serverPlease read CONTRIBUTING.md for details.