For Sitecore Developers
БесплатноНе проверенA minimal MCP server demonstrating tools, resources, and prompts for Sitecore CDP personalization scenarios, with mock data.
Описание
A minimal MCP server demonstrating tools, resources, and prompts for Sitecore CDP personalization scenarios, with mock data.
README
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.
Running it
npm install
npm run demo
npm 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:server
Mapping back to the blog post
| Blog post concept | Where it lives in this code |
|---|---|
| Host | client.js (sitecore-demo-host) |
| Client | the Client instance inside client.js |
| Server | server.js |
| Tool ≈ API endpoint | get_visitor_segment, resolve_content_variant |
| Resource ≈ content/data for context | segment-catalog |
| Prompt ≈ reusable template | personalization-decision |
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)
from github.com/keerthika-srinivasan/mcp-for-sitecore-developers
Установка For Sitecore Developers
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/keerthika-srinivasan/mcp-for-sitecore-developersFAQ
For Sitecore Developers MCP бесплатный?
Да, For Sitecore Developers MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для For Sitecore Developers?
Нет, For Sitecore Developers работает без API-ключей и переменных окружения.
For Sitecore Developers — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить For Sitecore Developers в Claude Desktop, Claude Code или Cursor?
Открой For Sitecore Developers на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
автор: duxiaohuiSupabase
Database, auth and storage
автор: SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare For Sitecore Developers with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
