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.
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
- Push your code to a Git repository (GitHub, GitLab, etc.)
- Import the project in the Vercel dashboard
- 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:
- Automatically: When UI copy text is generated
- Explicitly: When users ask questions about UI text
Tool Parameters
text(required): The text to process through copywriting rulescontext(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:
- Open
lib/copywriter/rules.ts - Add your rule function to the
copywritingRulesarray - Add corresponding metadata to
ruleMetadataarray - 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 servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
License
MIT
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
E2B
Using MCP to run code via e2b.