Sitecore Design MCP

Sitecore Design MCP

An MCP server that provides a copywriter agent to automatically enforce predefined copywriting rules for UI text generation. It enables users to process text through a modular rules system to ensure consistency in elements like button labels and error messages.

Category
Visit Server

README

Sitecore Design MCP - Copywriter Agent

A Model Context Protocol (MCP) server with a copywriter agent that enforces copywriting rules for UI text generation. Deployed on Vercel with HTTP transport support.

Overview

This MCP server provides a copywriter tool that processes UI copy text and automatically applies predefined copywriting rules. The agent is designed to be called whenever UI copy is generated or when users ask questions about UI text.

Features

  • Copywriter Agent: Automatically enforces copywriting rules on UI text
  • Modular Rules System: Easy-to-add rules configuration
  • HTTP Transport: Compatible with MCP HTTP client specification
  • Vercel Deployment: Pre-configured for seamless Vercel deployment
  • Type-Safe: Full TypeScript support with Zod validation

Project Structure

sitecore_design_mcp/
├── app/
│   └── api/
│       └── mcp/
│           └── route.ts         # MCP HTTP endpoint
├── lib/
│   ├── mcp-server.ts            # MCP server setup
│   └── copywriter/
│       ├── index.ts             # Copywriter agent interface
│       ├── rules.ts             # Copywriting rules (ADD YOUR RULES HERE)
│       └── processor.ts         # Rule processing logic
└── ...

Setup

1. Install Dependencies

npm install

2. Add Your Copywriting Rules

Edit lib/copywriter/rules.ts to add your copywriting rules. Each rule is a function that takes a string and returns a processed string:

export const copywritingRules: CopywritingRule[] = [
  (text: string) => {
    // Your rule logic here
    return processedText;
  },
  // Add more rules...
];

3. Local Development

npm run dev

The MCP server will be available at http://localhost:3000/api/mcp

4. Deploy to Vercel

Option A: Using Vercel CLI

npm install -g vercel
vercel

Option B: Using Git Integration

  1. Push your code to a Git repository (GitHub, GitLab, etc.)
  2. Import the project in the Vercel dashboard
  3. Vercel will automatically detect Next.js and deploy

Configuration

Environment Variables

Copy .env.example to .env and add any required environment variables:

cp .env.example .env

Cursor Integration

To use this MCP server with Cursor, add the following to your Cursor MCP configuration:

{
  "mcpServers": {
    "sitecore-design-mcp": {
      "url": "https://your-deployment.vercel.app/api/mcp",
      "transport": "http"
    }
  }
}

Replace https://your-deployment.vercel.app with your actual Vercel deployment URL.

Usage

The copywriter tool is automatically available when the MCP server is connected. It can be called:

  1. Automatically: When UI copy text is generated
  2. Explicitly: When users ask questions about UI text

Tool Parameters

  • text (required): The text to process through copywriting rules
  • context (optional): Context about where the copy will be used (e.g., "button label", "error message")

Example Tool Call

{
  "method": "tools/call",
  "params": {
    "name": "copywriter",
    "arguments": {
      "text": "click here to continue",
      "context": "button label"
    }
  }
}

Adding Rules

To add new copywriting rules:

  1. Open lib/copywriter/rules.ts
  2. Add your rule function to the copywritingRules array
  3. Add corresponding metadata to ruleMetadata array
  4. Rules are applied in sequence, so order matters

Example rule:

export const copywritingRules: CopywritingRule[] = [
  // Existing rules...
  
  // New rule: Capitalize first letter
  (text: string) => {
    if (!text) return text;
    return text.charAt(0).toUpperCase() + text.slice(1);
  },
];

Development

Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured