Skip to main content
Glama

Sitecore MCP Server

by GaryWenneker
BEST-SOLUTION.md•2.24 kB
# Sitecore API Status - Your Instance ## šŸ” Detected Situation Your Sitecore instance has: - āŒ **GraphQL** - Not available (404) - Sitecore version too old - āŒ **Item Web API** - Not available (403) - Not activated - āŒ **SSC API** - Status unknown - āœ… **SPE** - Installed and working (PowerShell ISE accessible) ## āœ… BEST SOLUTION: SPE with Alternative Method Since SPE is installed and the ISE interface works, we can use an **alternative SPE method**: ### Method: PowerShell ISE Automation Instead of the RESTful v2 API (which doesn't work), we can: 1. Create a **saved script** in Sitecore via SPE ISE 2. Call this script via the **RESTful v2 API** 3. Or: create a **custom HTTP handler** ### Quick Win: Create one base script In Sitecore PowerShell ISE (`/sitecore/system/Modules/PowerShell/Script Library`): **Script name:** `ExecuteCommand` **Script path:** `/sitecore/system/Modules/PowerShell/Script Library/MCP/ExecuteCommand` ```powershell param( [string]$Command, [string]$Path = "/sitecore/content", [string]$Database = "master", [string]$Language = "en" ) # Execute the command $result = Invoke-Expression $Command # Return as JSON $result | ConvertTo-Json -Depth 10 -Compress ``` Then the MCP server can call this: ``` POST https://your-sitecore-instance.com/-/script/v2/master/MCP/ExecuteCommand?command=Get-Item+-Path+'/sitecore/content' ``` ## šŸŽÆ Alternative: Simple PowerShell Wrapper Or I can create a **very simple solution**: - MCP server calls PowerShell **locally** - PowerShell connects to Sitecore via SPE Remoting PowerShell module - This works **without API**! **Advantages:** - āœ… No API configuration needed - āœ… Uses SPE Remoting PowerShell cmdlets - āœ… Full PowerShell power available **Disadvantages:** - āš ļø Requires SPE Remoting PowerShell module installed locally - āš ļø MCP server must run locally (not remote) ## šŸ’” What do you want? **Option A:** I create saved scripts in SPE and adjust the MCP → Simplest, works immediately **Option B:** I use local PowerShell + SPE Remoting module → Most flexibility **Option C:** We upgrade Sitecore to 10.1+ for GraphQL → Best long-term Let me know! I would recommend **Option A** for now. šŸš€

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/GaryWenneker/SitecoreMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server