Provides comprehensive tools for managing Sitecore content including item operations, field value retrieval, template information, version control, parent navigation, and executing Sitecore queries through GraphQL API integration.
Sitecore MCP Server
A Model Context Protocol (MCP) server for Sitecore with GraphQL API, version control, parent navigation, and item statistics. Query Sitecore items via AI assistants like Claude and GitHub Copilot.
β¨ Features
π― Core Tools (21 total)
Item Operations:
π sitecore_get_item - Get a specific Sitecore item (with version support)
πΆ sitecore_get_children - Get child items (with version support)
π sitecore_get_field_value - Get a field value (with version support)
οΏ½ sitecore_get_item_fields - Get all fields of an item (template-aware)
οΏ½π sitecore_query - Execute Sitecore queries
π sitecore_search - Search items with filters and ordering
π sitecore_search_paginated - Search with pagination support
Template Operations:
π sitecore_get_template - Get template information
π sitecore_get_templates - Get multiple templates
Version Control:
π sitecore_get_item_versions - See all versions of an item
π sitecore_get_item_with_statistics - Get created/updated dates and users
Navigation:
β¬οΈ sitecore_get_parent - Navigate to parent item
π§ sitecore_get_ancestors - Get all ancestors (breadcrumb)
Layout & Sites:
π¨ sitecore_get_layout - Get layout/presentation information
π sitecore_get_sites - Get Sitecore site configurations
Mutations (Create/Update/Delete):
β sitecore_create_item - Create new Sitecore items
βοΈ sitecore_update_item - Update existing items
β sitecore_delete_item - Delete items
Advanced Features:
π¬ sitecore_scan_schema - Automatic GraphQL schema analysis
π¬ sitecore_command - Natural language
/sitecorecommands in chatπ sitecore_discover_item_dependencies - Comprehensive item discovery with template, fields, and relationships
π£ Live progress (all tools)
All MCP tools now report progress via stderr so you can see what's happening during longer operations in your AI client.
Format:
[tool_name] Message...Examples:
[sitecore_get_item] Starting (path=/sitecore/content/Home, language=nl-NL)[sitecore_get_item] Completed: Home (template=Page, version=1)[sitecore_search_paginated] Completed: 50 item(s), hasNextPage=true
Note: We always mention the language in messages (critical for Sitecore).
π¨ Examples
Via Slash Command Menu (Type / in chat):
Direct Natural Language Commands:
Version Control Examples:
Navigation Examples:
π Docs Map
docs/guides/ - Technical guides and implementation details (GUID formats, content discovery, slash commands, etc.)
docs/releases/ - Release notes per version (RELEASE-NOTES-v1.x.md)
docs/ready-to-ship/ - Release checklists and readiness documents per version
docs/status/ - Progress reports and status updates
docs/summaries/ - Version summaries and overviews
docs/BACKLOG.md - Product backlog and planning
Tip: All documentation is organized under docs/. Root contains only README.md.
π Repository Structuur
Purpose per Directory
Directory | Purpose | Allowed Files |
Root | Project metadata and entry point | Config files + README.md only |
src/ | TypeScript source code | .ts files |
dist/ | Build output | .js, .d.ts files (generated) |
scripts/ | All scripts organized | Subdirectories per category |
scripts/build/ | Build and packaging scripts | build-vsix.ps1 |
scripts/schema/ | GraphQL schema management | Schema tools (9 scripts) |
scripts/tests/ | Test scripts | Test files (72 files) |
scripts/tools/ | Utility tools | Helpers and utilities (3 tools) |
scripts/wrappers/ | Backward compatibility | Deprecated wrappers (11 files) |
docs/ | All documentation | .md files in subdirectories |
data/ | Generated data files | .json schema dumps (gitignored) |
.github/ | CI/CD workflows | GitHub Actions workflows |
Hygiene Policy: Root contains ONLY config files and README.md. All documentation is under docs/, all scripts under scripts/. This structure is enforced by CI workflow (root-scan.yml).
β API Status
GraphQL API is active and working!
β Item queries
β Get children
β Get field values
β Template information
β Variables in queries
Requirements
Node.js 18 or higher
Sitecore instance with GraphQL endpoint:
/sitecore/api/graph/items/masterSitecore API Key (see configuration)
π Quick Start
1. Install dependencies
2. Configure Environment
Copy .env.example to .env and configure your Sitecore instance:
3. Run Tests
Verify that all MCP tools are working correctly:
This will run a comprehensive test suite covering:
β Basic queries (item retrieval, children, fields)
β Advanced search & discovery
β Navigation & hierarchy (parent, ancestors)
β Utilities & extensions
Expected output: 17/17 tests passed (100% success rate)
4. Configure your IDE/Tool
Choose your favorite tool and configure the Sitecore MCP server:
Claude Desktop: %APPDATA%\Claude\claude_desktop_config.json
VS Code: .vscode/settings.json or User Settings
Rider: %APPDATA%\JetBrains\Rider2024.3\options\mcp-servers.json
Visual Studio: %USERPROFILE%\.github-copilot\mcp-servers.json
See docs/guides/INSTALLATION.md for detailed configuration per tool.
Example configuration (Claude Desktop):
For VS Code, Rider and Visual Studio configurations, see docs/guides/INSTALLATION.md.
5. Restart your tool
Claude Desktop: Close completely and restart
VS Code: Reload Window (Ctrl+Shift+P)
Rider: Invalidate Caches & Restart
Visual Studio: Close solution and reopen
The Sitecore MCP server should now be available!
π‘ Gebruik Voorbeelden
Slash Command Menu (New in v1.2.0!)
Step 1: Open your AI chat (Claude Desktop, VS Code Copilot, etc.)
Step 2: Type / to open the slash command menu
Step 3: Choose π§ /sitecore from the menu
Step 4: Type your command (prefix is automatically added)
Direct Commands
You can also type direct commands:
See docs/guides/EXAMPLES.md and docs/guides/SLASH-COMMAND.md for more extensive examples.
Sitecore PowerShell Extensions API
This MCP server uses the Sitecore PowerShell Extensions (SPE) API endpoint:
Ensure SPE is correctly configured and the API is accessible.
π Documentation
For a complete overview of all directories and their purposes, see the π Repository Structure section above.
Main documents:
README.md (this file): Overview and quick start
docs/guides/INSTALLATION.md: Detailed installation for all IDEs
docs/guides/EXAMPLES.md: Extensive usage examples and use cases
docs/guides/SLASH-COMMAND.md: β‘ Slash command menu guide
docs/guides/SITECORE-COMMAND-GUIDE.md: Natural language command reference
Documentation Structure:
docs/guides/β Technical guides and how-to's (35+ documents)docs/releases/β Release notes per version (RELEASE-NOTES-v1.x.md)docs/ready-to-ship/β Release readiness checklistsdocs/status/β Status and progress reportsdocs/summaries/β Version summaries
Note: All documentation is under docs/. The root contains only README.md. Scripts are under scripts/ in categories (build, schema, tests, tools, wrappers).
π§ Troubleshooting
MCP server doesn't appear
Claude: Check
claude_desktop_config.jsonsyntax β Restart appVS Code: Reload Window (Ctrl+Shift+P) β Check Output panel
Rider: Invalidate Caches β Check Event Log
Visual Studio: Restart as Administrator β Check Extension logs
SPE API errors
Run
.\test-spe-api.ps1to test the APIVerify that SPE remoting is enabled in
Spe.configCheck Sitecore logs:
https://your-sitecore-instance.com/sitecore/admin/showlog.aspx
Items not found
Verify that the path exists (case-sensitive!)
Verify database (master/web/core)
Check language code (en/nl/etc.)
For more details, see docs/guides/INSTALLATION.md.
β οΈ Security
Warning: This configuration is intended for LOCAL development!
For production environments:
β Use HTTPS with valid certificate
β No credentials in configuration files
β Use Sitecore API keys
β Restrict SPE permissions
β Enable SSL certificate verification
π€ Contributing
Suggestions and improvements are welcome! Create an issue or submit a pull request.
π License
MIT
This server cannot be installed