home / mcp / sitecore mcp server
Provides an MCP-enabled interface to GraphQL, item services, and Sitecore operations for automated workflows.
Configuration
View docs{
"mcpServers": {
"antonytm-mcp-sitecore-server": {
"command": "npx",
"args": [
"@antonytm/mcp-sitecore-server@latest"
],
"env": {
"TRANSPORT": "stdio",
"GRAPHQL_API_KEY": "{6D3F291E-66A5-4703-887A-D549AF83D859}",
"GRAPHQL_SCHEMAS": "edge,master,core",
"GRAPHQL_ENDPOINT": "https://xmcloudcm.localhost/sitecore/api/graph/",
"POWERSHELL_DOMAIN": "sitecore",
"ITEM_SERVICE_DOMAIN": "sitecore",
"POWERSHELL_PASSWORD": "b",
"POWERSHELL_USERNAME": "admin",
"ITEM_SERVICE_PASSWORD": "b",
"ITEM_SERVICE_USERNAME": "admin",
"POWERSHELL_SERVER_URL": "https://xmcloudcm.localhost/",
"ITEM_SERVICE_SERVER_URL": "https://xmcloudcm.localhost/"
}
}
}
}You can run and query a Model Context Protocol (MCP) server tailored for Sitecore, enabling GraphQL access, item services, and a broad set of Sitecore operations from a unified API. This server lets you interact with Sitecore data, manage items, and leverage PowerShell and security features through MCP endpoints, helping you automate workflows and integrate Sitecore with external systems.
You will connect your MCP client to the Sitecore MCP server to perform GraphQL queries, fetch and manipulate items, and run Sitecore-related operations. Use the provided stdio-based runtime configuration to launch the MCP server locally, then direct your client to the appropriate endpoints for GraphQL and item services.
Typical usage patterns include querying the GraphQL schema and executing queries, retrieving items by ID or path, creating and editing items, and running stored queries or searches. You can also manage Sitecore security and item ACLs, and leverage presentation and indexing endpoints as needed. Ensure you supply the required environment variables to enable authentication and access to your Sitecore instance.
Prerequisites: you need Node.js and npm installed on your system. Ensure you have network access to the Sitecore endpoints you will connect to.
Step 1: Install and start the MCP server as an MCP client within your environment using the provided runtime configuration.
Step 2: Configure the MCP client with the following settings to connect to Sitecore and enable the MCP features.
Environment variables shown in the configuration snippet control how the MCP server connects to GraphQL, Item Service, and PowerShell endpoints. You will need to supply the actual URLs, credentials, and API keys for your Sitecore instance.
{
"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/"
}
}
}Security-related MCP endpoints are included for managing domains, users, roles, ACLs, and items. You can enable or disable users, change passwords, and control item protections and ACLs as part of your Sitecore security strategy.
If you prefer containerized deployment, you can use the Linux or Windows MCP Sitecore images to run the server in a containerized environment.
1) Clone the project repository.
2) Install dependencies.
3) Build the project.
4) Start the server.
Provides a GraphQL schema introspection endpoint and the ability to execute GraphQL queries against the Sitecore instance.
Offers operations to get, create, edit, delete, and search Sitecore items, plus stored query and stored search support.
Aggregates languages, descendants, and extended item operations for broader Sitecore item management.
Runs PowerShell scripts and provides documentation for PowerShell commands (where implemented).
Manages domains, users, roles, ACLs, and item protections with various security-related actions.
Retrieves items by ID, path, or query, enabling programmatic access to Sitecore items.
Manages item presentation layouts, renderings, placeholders, and related rendering properties.
Controls search index initialization, item indexing, and index lifecycle operations.
A broad set of shared utilities for item templating, cloning, versioning, workflow, publishing, and item state management.
Retrieves Sitecore logs with filtering options.