mcp-sitecore-cdp-server

mcp-sitecore-cdp-server

3.4

The Sitecore CDP Server is a server application designed to interact with the Sitecore Customer Data Platform (CDP) using the Guest REST API, built with TypeScript and Express.

Sitecore CDP Server

This project is a server application that interacts with the Sitecore Customer Data Platform (CDP) using the Guest REST API. It is built with TypeScript and Express, providing a structured way to manage guest data.

Table of Contents

Installation

  1. Clone the repository:
    git clone <repository-url>
    
  2. Navigate to the project directory:
    cd sitecore-cdp-server
    
  3. Install the dependencies:
    npm install
    

Build the Project

Compile the TypeScript code:

npx tsc

(Optional) Manually Run the Server

node build/CdpServer.js

Environment Variables

Create a .env file in the root directory based on the .env.example file to configure your environment variables. Make sure to include your API keys and any other necessary configurations.

MCP Configuration

{
    "servers": {
        "sitecore-cdp": {
            "command": "node",
            "args": ["Path/To/build/index.js"],
            "env": {
               "SITECORE_CDP_ENDPOINT_URL"="https://api-engage-[us|ap|eu|jpe].sitecorecloud.io/'
               "SITECORE_CDP_CLIENT_KEY"="<client-key>"
               "SITECORE_CDP_API_TOKEN"="<api-token>"
            }
        },
    }
}