MCP for Sitecore Developers
Provides tools for visitor segment lookup and content variant resolution based on Sitecore CDP segments, along with read-only reference data and a prompt template for personalization decisioning.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP for Sitecore Developers — Working Example
Companion code for the blog post "MCP for Sitecore Developers: A Practical Primer."
This is a minimal, runnable MCP server + client pair that demonstrates the three MCP capability types — tools, resources, and prompts — mapped to a Sitecore CDP / personalization scenario. No live Sitecore or CDP connection is required; the server mocks visitor segment data in-memory so the example runs standalone.
What's here
server.js— the MCP server. Exposes:get_visitor_segment(tool) — looks up a visitor's CDP segmentresolve_content_variant(tool) — decisioning logic: segment → content variantsegment-catalog(resource) — read-only reference datapersonalization-decision(prompt) — reusable prompt template
client.js— plays the "host" role. Connects to the server, walks through the exact worked example from the blog post, and logs each step of the host → client → server flow.
Related MCP server: Basic MCP Server
Running it
npm install
npm run demonpm run demo launches the server as a subprocess and runs the full walkthrough:
discovery → tool calls → resource read → prompt fetch.
To run the server standalone (e.g. to point a different MCP-compatible client at it):
npm run start:serverMapping back to the blog post
Blog post concept | Where it lives in this code |
Host |
|
Client | the |
Server |
|
Tool ≈ API endpoint |
|
Resource ≈ content/data for context |
|
Prompt ≈ reusable template |
|
Making this production-shaped
Swap the mockCdp object in server.js for a real call to Sitecore's CDP API
or Agent API, and this becomes a working MCP server you could point Agentic
Studio (or any MCP-compatible host) at.
Note what this example does not do: it doesn't address delivery-time latency. Everything here is decisioning — segment lookup, variant resolution, reasoning. Getting that decision onto the page fast is a separate, edge-delivery concern — see the Under-300ms Loop repo for that half of the architecture.
Requirements
Node.js 18+
@modelcontextprotocol/sdk(installed vianpm install)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for building and testing AI agents with multi-model experimentation and insights.
AI-native mock API server with MCP. Create REST/SOAP mocks from Claude, Cursor, or Windsurf.
Marketo MCP server for AI. 130 tools to operate Marketo from Claude, Cursor, or ChatGPT.
The Stytch MCP server is a reference implementation that demonstrates remote MCP server authentication and authorization using Stytch Connected Apps. It provides OAuth 2.1-compliant authorization (including PKCE), Dynamic Client Registration, and validates Stytch-issued access tokens to enable AI agents to securely interact with external services through permissioned access, supporting scopes like openid, email, profile, and manage:project_data.
Related MCP Servers
- AlicenseDqualityDmaintenanceA ready-to-use starter implementation of the Model Context Protocol (MCP) server that enables applications to provide standardized context for LLMs with sample resources, tools, and prompts.21MIT
- AlicenseNot gradedqualityDmaintenanceA minimal demonstration server showcasing MCP protocol capabilities including tools, resources, and prompts with basic examples like hello world functionality.MIT
- AlicenseNot gradedqualityDmaintenanceA minimal Model Context Protocol (MCP) server demonstrating the implementation of tools, resources, and prompts. It serves as a starter template built with the Smithery SDK for developing custom integrations.ISC
- AlicenseBqualityDmaintenanceA toy MCP server for exploring Model Context Protocol capabilities, including resources, tools, and prompts.1Apache 2.0