UNPKG

payload-cms-mcp

Version:

Payload CMS 3.0 MCP Server - A specialized Model Context Protocol server for Payload CMS

1,860 lines 60.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- Google tag (gtag.js) -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-NNP8YC3GX8"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-NNP8YC3GX8');
    </script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PAYLOAD CMS MCP SERVER | Matmax Worldwide</title>
    <meta name="description" content="PAYLOAD CMS MCP SERVER - A powerful headless CMS built with Node.js, Express, MongoDB, and React.">
    <meta name="keywords" content="Payload CMS 3.0, MCP, Model Context Protocol, AI agent, developer guidelines, structure validation, best practices, Cursor IDE, AI-assisted development">
    <meta name="author" content="MATMAX WORLDWIDE">
    <meta name="robots" content="index, follow">
    
    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://www.payloadcmsmcp.info/">
    <meta property="og:title" content="Payload CMS MCP Server - Validation & Query Service">
    <meta property="og:description" content="Enhance your Payload CMS development with real-time validation, suggestions, and AI-assisted development.">
    <meta property="og:image" content="https://www.payloadcmsmcp.info/og-image.jpg">
    
    <!-- Twitter -->
    <meta property="twitter:card" content="summary_large_image">
    <meta property="twitter:url" content="https://www.payloadcmsmcp.info/">
    <meta property="twitter:title" content="Payload CMS MCP Server - Validation & Query Service">
    <meta property="twitter:description" content="Enhance your Payload CMS development with real-time validation, suggestions, and AI-assisted development.">
    <meta property="twitter:image" content="https://www.payloadcmsmcp.info/og-image.jpg">
    
    <!-- Canonical URL -->
    <link rel="canonical" href="https://www.payloadcmsmcp.info/">
    
    <link rel="icon" href="/logopayload.png" type="image/png">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    
    <!-- JSON-LD Structured Data -->
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "SoftwareApplication",
      "name": "Payload CMS 3.0 MCP Server",
      "applicationCategory": "DeveloperApplication",
      "operatingSystem": "Any",
      "offers": {
        "@type": "Offer",
        "price": "0",
        "priceCurrency": "USD"
      },
      "description": "A specialized MCP server for Payload CMS 3.0, ensuring AI agents follow developer guidelines, respect structure, and adhere to best practices.",
      "creator": {
        "@type": "Organization",
        "name": "MATMAX WORLDWIDE",
        "url": "https://matmax.world",
        "logo": "https://www.payloadcmsmcp.info/00Matmax-world-logo-_1_-svg.png"
      },
      "url": "https://www.payloadcmsmcp.info/",
      "image": "https://www.payloadcmsmcp.info/00Matmax-world-logo-_1_-svg.png",
      "sameAs": [
        "https://github.com/Matmax-Worldwide/payloadcmsmcp",
        "https://payload-cms-mcp-production.up.railway.app"
      ]
    }
    </script>
    
    <style>
        :root {
            --primary: #5046e5;
            --primary-light: #6a62ff;
            --secondary: #2a2a2a;
            --accent: #ff6b6b;
            --light: #f5f5f7;
            --dark: #121212;
            --gray: #888;
            --border-radius: 12px;
            --box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
            --primary-color: #6366f1;
            --primary-hover: #4f46e5;
            --secondary-color: #0ea5e9;
            --text-color: #1e293b;
            --light-text: #64748b;
            --bg-color: #ffffff;
            --light-bg: #f8fafc;
            --border-color: #e2e8f0;
            --radius: 8px;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
        }

        html {
            scroll-behavior: smooth;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', sans-serif;
            line-height: 1.6;
            color: var(--secondary);
            background-color: var(--light);
            overflow-x: hidden;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        header {
            background-color: var(--dark);
            color: white;
            padding: 1.5rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: var(--box-shadow);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 1rem;
            z-index: 1001;
            position: relative;
            transition: all 0.3s ease;
        }

        .logo:hover .logo-icon {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .logo-image {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
            transition: all 0.3s ease;
            object-fit: contain;
            background-color: white;
            padding: 5px;
            animation: subtle-pulse 3s ease-in-out infinite;
            flex-shrink: 0;
            display: block;
        }

        .logo-text {
            display: inline-block;
            white-space: nowrap;
            overflow: visible;
            text-overflow: unset;
            max-width: none;
            transition: all 0.3s ease;
            line-height: 1.1;
        }

        .version-text {
            display: inline-block;
            margin-left: 3px;
        }

        @keyframes subtle-pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .logo:hover .logo-image {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            animation: none;
        }

        .logo-icon {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            letter-spacing: -0.5px;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .logo-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
        }

        .logo:hover .logo-icon::before {
            left: 100%;
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
        }

        nav a:hover {
            color: var(--primary-light);
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background-color: var(--primary-light);
            transition: var(--transition);
        }

        nav a:hover::after {
            width: 100%;
        }

        .github-link {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .nav-icon {
            filter: invert(1);
            transition: var(--transition);
        }
        
        .github-link:hover .nav-icon {
            filter: invert(0.7) sepia(1) saturate(5) hue-rotate(175deg);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
            color: white;
            padding: 6rem 0;
            text-align: center;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            font-weight: 700;
        }
        
        .hero p {
            font-size: 1.5rem;
            margin-bottom: 2.5rem;
            opacity: 0.9;
            line-height: 1.6;
        }
        
        .hero-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
        }
        
        .btn {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius);
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            cursor: pointer;
        }
        
        .btn-primary {
            background-color: white;
            color: var(--primary-color);
        }
        
        .btn-primary:hover {
            background-color: #f8fafc;
            transform: translateY(-2px);
        }
        
        .btn-secondary {
            background-color: rgba(255, 255, 255, 0.15);
            color: white;
            backdrop-filter: blur(4px);
        }
        
        .btn-secondary:hover {
            background-color: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }
        
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.2rem;
            }
            
            .hero-buttons {
                flex-direction: column;
                align-items: center;
                width: 100%;
                max-width: 300px;
                margin: 0 auto;
            }

            .btn {
                width: 100%;
                text-align: center;
                margin-bottom: 0.5rem;
            }

            .logo-image {
                width: 50px;
                height: 50px;
                padding: 4px;
                margin-right: 2px;
            }
        }

        .features {
            padding: 5rem 0;
            background-color: white;
        }

        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }

        .section-title h2 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .section-title p {
            color: var(--gray);
            max-width: 700px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .feature-card {
            background-color: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        .feature-icon {
            width: 60px;
            height: 60px;
            background-color: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            color: white;
            font-size: 1.5rem;
        }

        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--dark);
        }

        .feature-card p {
            margin-bottom: 0;
            flex-grow: 1;
        }

        /* Tools Section Styles */
        .tools-section {
            padding: 5rem 0;
            background-color: var(--light);
        }
        
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .tool-card {
            background-color: white;
            border-radius: var(--radius);
            padding: 2rem;
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }
        
        .tool-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1.5rem;
            color: var(--primary-color);
            border-bottom: 2px solid var(--border-color);
            padding-bottom: 0.75rem;
        }
        
        .tool-list {
            list-style: none;
            padding: 0;
            flex-grow: 1;
        }
        
        .tool-list li {
            margin-bottom: 1rem;
            padding-left: 1.5rem;
            position: relative;
            line-height: 1.5;
        }
        
        .tool-list li::before {
            content: "→";
            position: absolute;
            left: 0;
            color: var(--primary-color);
            font-weight: bold;
        }
        
        .tool-name {
            font-family: 'Courier New', monospace;
            color: var(--primary-color);
            font-weight: 600;
        }
        
        @media (max-width: 768px) {
            .tools-grid {
                grid-template-columns: 1fr;
            }
        }

        .api-section {
            padding: 5rem 0;
            background-color: var(--light-bg);
        }

        .api-container {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        .api-card {
            background-color: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--box-shadow);
        }

        .api-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #eee;
        }

        .api-name {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark);
        }

        .api-method {
            background-color: var(--primary);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.875rem;
            font-weight: 600;
        }

        .api-description {
            margin-bottom: 1.5rem;
            color: var(--gray);
        }

        .api-url {
            background-color: #f5f5f7;
            padding: 1rem;
            border-radius: 8px;
            font-family: monospace;
            overflow-x: auto;
            margin-bottom: 1rem;
        }

        .about-section {
            background-color: var(--light-bg);
            padding: 5rem 0;
        }

        .about-content {
            display: flex;
            align-items: center;
            gap: 4rem;
        }

        .about-image {
            flex: 1;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
        }

        .about-image img {
            width: 100%;
            height: auto;
            display: block;
            max-width: 100%;
            object-fit: contain;
        }

        .about-text {
            flex: 1;
        }

        .about-text h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            color: var(--dark);
        }

        .about-text p {
            margin-bottom: 1.5rem;
            color: var(--gray);
        }

        footer {
            background-color: var(--dark);
            color: white;
            padding: 4rem 0 2rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-column h3 {
            font-size: 1.25rem;
            margin-bottom: 1.5rem;
            color: white;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column ul li {
            margin-bottom: 0.75rem;
        }

        .footer-column a {
            color: #ccc;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-column a:hover {
            color: var(--primary-light);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #333;
            color: #888;
        }

        .footer-bottom p {
            margin-bottom: 1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1rem;
        }

        .social-links a {
            color: #ccc;
            font-size: 1.25rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
        }

        .social-links a:hover {
            color: var(--primary-light);
            background-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
        }
        
        .social-icon {
            filter: invert(0.8);
            transition: var(--transition);
        }
        
        .social-links a:hover .social-icon {
            filter: invert(0.5) sepia(1) saturate(5) hue-rotate(175deg);
        }

        @media (max-width: 768px) {
            .header-content {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding: 0.5rem 0;
            }

            .logo {
                font-size: 1.2rem;
                gap: 0.5rem;
                align-items: center;
                max-width: 65%;
            }

            .logo-image {
                width: 50px;
                height: 50px;
                padding: 4px;
                margin-right: 2px;
            }

            .logo span {
                font-size: 0.85rem;
            }

            .logo-text {
                max-width: none;
                line-height: 1.1;
                font-size: 0.85rem;
            }

            .version-text {
                margin-left: 1px;
                font-size: 0.8rem;
            }

            nav ul {
                gap: 1rem;
                flex-wrap: wrap;
                justify-content: center;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .about-content {
                flex-direction: column;
                gap: 2rem;
            }

            .btn-secondary {
                margin-left: 0;
                margin-top: 1rem;
            }
        }

        /* Setup Section Styles */
        .setup-section {
            padding: 5rem 0;
            background: linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            color: var(--text-color);
            margin-bottom: 1rem;
        }
        
        .section-title p {
            font-size: 1.2rem;
            color: var(--light-text);
            max-width: 700px;
            margin: 0 auto;
        }
        
        .setup-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .setup-step {
            background-color: var(--bg-color);
            border-radius: var(--radius);
            padding: 2rem;
            box-shadow: var(--shadow);
            position: relative;
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .setup-step:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
        }
        
        .step-number {
            position: absolute;
            top: -15px;
            left: -15px;
            width: 40px;
            height: 40px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 1.2rem;
            box-shadow: var(--shadow);
            z-index: 1;
        }
        
        .setup-step h3 {
            margin-top: 0.5rem;
            margin-bottom: 1rem;
            color: var(--primary-color);
            font-size: 1.5rem;
        }
        
        .setup-step p {
            margin-bottom: 1rem;
            line-height: 1.6;
        }
        
        .setup-step p + .code-block {
            margin-top: 0.5rem;
        }
        
        .setup-step p + p {
            margin-top: 1.5rem;
        }
        
        .setup-step p, .setup-step li {
            color: var(--text-color);
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }
        
        .setup-step ul, .setup-step ol {
            padding-left: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .setup-step li {
            margin-bottom: 0.5rem;
        }
        
        .code-block {
            background-color: #1e293b;
            border-radius: var(--radius);
            padding: 1rem;
            margin: 1rem 0;
            overflow-x: auto;
            position: relative;
        }
        
        .code-block code {
            display: block;
            color: #e2e8f0;
            font-family: 'Courier New', monospace;
            line-height: 1.5;
            white-space: pre;
            margin: 0.25rem 0;
            font-size: 0.9rem;
        }

        /* Responsive adjustments for Getting Started section */
        @media (max-width: 1200px) {
            .setup-steps {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 900px) {
            .setup-steps {
                grid-template-columns: 1fr;
                max-width: 600px;
                margin: 0 auto;
            }
            
            .setup-step {
                margin-bottom: 2rem;
                padding: 1.75rem 1.5rem;
            }

            .step-number {
                top: -12px;
                left: -12px;
                width: 35px;
                height: 35px;
                font-size: 1.1rem;
            }

            .setup-step h3 {
                font-size: 1.4rem;
                margin-bottom: 0.8rem;
            }

            .code-block {
                padding: 0.8rem;
                margin: 0.8rem 0;
            }

            .code-block code {
                font-size: 0.85rem;
                line-height: 1.4;
            }

            .setup-step ul, .setup-step ol {
                padding-left: 1.2rem;
            }
        }

        @media (max-width: 480px) {
            .setup-step {
                padding: 1.5rem 1.2rem;
                margin-bottom: 1.5rem;
                border-radius: 8px;
            }

            .step-number {
                top: -10px;
                left: -10px;
                width: 30px;
                height: 30px;
                font-size: 1rem;
            }

            .setup-step h3 {
                font-size: 1.3rem;
                margin-bottom: 0.7rem;
                padding-left: 0.5rem;
            }

            .setup-step p, .setup-step li {
                font-size: 0.95rem;
            }

            .code-block {
                padding: 0.7rem;
                margin: 0.7rem 0;
                border-radius: 6px;
            }

            .code-block code {
                font-size: 0.8rem;
                line-height: 1.3;
            }

            .setup-step ul, .setup-step ol {
                padding-left: 1rem;
            }

            .setup-step li {
                margin-bottom: 0.7rem;
            }

            .logo-image {
                width: 45px;
                height: 45px;
                padding: 3px;
                margin-right: 0;
            }
        }

        .command-examples {
            list-style: none;
            padding: 0;
        }
        
        .command-examples li {
            margin-bottom: 1rem;
            padding: 0.75rem 1rem;
            background-color: #f5f7fa;
            border-radius: var(--radius);
            color: var(--text-color);
            font-family: 'Courier New', monospace;
            border-left: 3px solid var(--primary-color);
            transition: var(--transition);
        }
        
        .command-examples li:hover {
            background-color: #eef2f7;
            transform: translateX(5px);
        }

        @media (max-width: 480px) {
            .command-examples li {
                padding: 0.6rem 0.8rem;
                font-size: 0.85rem;
                margin-bottom: 0.8rem;
                border-radius: 4px;
            }
        }

        /* Mobile Navigation */
        .mobile-nav-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1001;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            transition: all 0.3s ease;
            background-color: transparent;
            box-shadow: none;
        }

        .mobile-nav-toggle:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .mobile-nav-toggle:active {
            transform: translateY(-50%) scale(0.95);
        }

        /* Classic hamburger icon */
        .hamburger-icon {
            width: 24px;
            height: 18px;
            position: relative;
            margin: 0 auto;
            transform: rotate(0deg);
            transition: .5s ease-in-out;
        }

        .hamburger-icon span {
            display: block;
            position: absolute;
            height: 2px;
            width: 100%;
            background: white;
            border-radius: 4px;
            opacity: 1;
            left: 0;
            transform: rotate(0deg);
            transition: .25s ease-in-out;
        }

        .hamburger-icon span:nth-child(1) {
            top: 0px;
            width: 80%;
            right: 0;
            left: auto;
        }

        .hamburger-icon span:nth-child(2) {
            top: 8px;
        }

        .hamburger-icon span:nth-child(3) {
            top: 16px;
            width: 80%;
            right: 0;
            left: auto;
        }

        .mobile-nav-toggle.active .hamburger-icon span:nth-child(1) {
            top: 8px;
            transform: rotate(135deg);
            width: 100%;
            left: 0;
        }

        .mobile-nav-toggle.active .hamburger-icon span:nth-child(2) {
            opacity: 0;
            left: -60px;
        }

        .mobile-nav-toggle.active .hamburger-icon span:nth-child(3) {
            top: 8px;
            transform: rotate(-135deg);
            width: 100%;
            left: 0;
        }

        @media (max-width: 768px) {
            .mobile-nav-toggle {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
            }

            .header-content {
                padding: 0.5rem 0;
            }

            nav {
                position: fixed;
                top: 0;
                right: -100%;
                width: 80%;
                max-width: 300px;
                height: 100vh;
                background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
                padding: 5rem 2rem 2rem;
                transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
                z-index: 999;
                box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
                overflow-y: auto;
                border-left: none;
                border-radius: 0 0 0 20px;
            }

            nav.active {
                right: 0;
            }

            nav ul {
                flex-direction: column;
                gap: 1.5rem;
                align-items: flex-start;
            }

            nav a {
                display: block;
                padding: 0.5rem 0;
                font-size: 1.1rem;
                width: 100%;
                color: white;
                border-bottom: 1px solid rgba(255, 255, 255, 0.2);
                padding-bottom: 0.8rem;
            }

            nav a:hover {
                color: white;
                opacity: 0.8;
            }

            nav a::after {
                bottom: 0;
                background-color: white;
            }

            .overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 998;
                backdrop-filter: blur(2px);
                transition: opacity 0.3s ease;
                opacity: 0;
            }

            .overlay.active {
                display: block;
                opacity: 1;
            }
        }

        /* Additional Responsive Breakpoints */
        @media (max-width: 480px) {
            .container {
                padding: 0 1rem;
            }

            .logo {
                font-size: 1rem;
                gap: 0.4rem;
                align-items: center;
            }

            .logo-icon {
                width: 28px;
                height: 28px;
                font-size: 0.9rem;
            }

            .logo-image {
                width: 45px;
                height: 45px;
                padding: 3px;
                margin-right: 0;
            }

            .logo span {
                font-size: 0.85rem;
            }

            .logo-text {
                max-width: none;
                line-height: 1.1;
                font-size: 0.85rem;
            }

            .mobile-nav-toggle {
                width: 36px;
                height: 36px;
                right: 0.5rem;
            }

            .mobile-nav-toggle span {
                width: 22px;
                height: 2px;
            }

            header {
                padding: 0.8rem 0;
            }

            nav {
                width: 85%;
                padding: 4.5rem 1.5rem 1.5rem;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .section-title h2 {
                font-size: 2rem;
            }

            .feature-card, .tool-card, .api-card {
                padding: 1.5rem;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 2rem;
            }
        }

        @media (min-width: 769px) and (max-width: 1024px) {
            .features-grid, .tools-grid, .setup-steps {
                grid-template-columns: repeat(2, 1fr);
            }

            .about-content {
                gap: 2rem;
            }
        }

        /* Improved Typography Responsiveness */
        @media (max-width: 768px) {
            body {
                font-size: 15px;
            }

            .feature-card h3, .tool-card h3, .setup-step h3 {
                font-size: 1.3rem;
            }

            .section-title p {
                font-size: 1rem;
            }
        }

        .no-scroll {
            overflow: hidden;
        }
        
        @media (prefers-reduced-motion: reduce) {
            * {
                transition: none !important;
                animation: none !important;
                scroll-behavior: auto !important;
            }
        }

        /* Responsive Images */
        img {
            max-width: 100%;
            height: auto;
        }

        /* Improved Card Layout for Small Screens */
        @media (max-width: 480px) {
            .feature-card, .tool-card, .setup-step, .api-card {
                padding: 1.5rem;
            }

            .feature-icon {
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
                margin-bottom: 1rem;
            }

            .feature-card h3, .tool-card h3, .setup-step h3 {
                font-size: 1.3rem;
                margin-bottom: 0.75rem;
            }

            .tool-list li, .command-examples li {
                font-size: 0.9rem;
            }
        }

        /* Improved Responsive Layout */
        @media (max-width: 768px) {
            .hero {
                padding: 4rem 0;
            }

            .features, .tools-section, .api-section, .about-section, .setup-section {
                padding: 3rem 0;
            }

            .section-title {
                margin-bottom: 2rem;
            }

            .about-image {
                max-width: 300px;
                margin: 0 auto;
            }

            .about-text {
                text-align: center;
            }

            .about-text .btn {
                margin: 0 auto;
                display: block;
                max-width: 200px;
            }

            /* Improved API cards */
            .api-card {
                padding: 1.5rem;
            }

            .api-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }

            .code-block {
                margin: 0.8rem 0;
                padding: 0.8rem;
            }

            .code-block code {
                font-size: 0.85rem;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 3rem 0;
            }

            .features, .tools-section, .api-section, .about-section, .setup-section {
                padding: 2.5rem 0;
            }

            .btn {
                padding: 0.6rem 1.2rem;
                font-size: 0.9rem;
            }

            .feature-icon {
                width: 50px;
                height: 50px;
                font-size: 1.25rem;
                margin-bottom: 1rem;
            }

            .feature-card h3, .tool-card h3, .setup-step h3 {
                font-size: 1.3rem;
                margin-bottom: 0.75rem;
            }

            .tool-list li, .command-examples li {
                font-size: 0.9rem;
            }

            footer {
                padding: 3rem 0 1.5rem;
            }

            /* Improved footer for mobile */
            .footer-column h3 {
                font-size: 1.2rem;
                margin-bottom: 1rem;
            }

            .footer-column ul li {
                margin-bottom: 0.6rem;
            }

            .footer-bottom {
                padding-top: 1.5rem;
            }

            .social-links {
                gap: 1.5rem;
            }
        }

        /* Touch-friendly improvements */
        @media (hover: none) {
            .feature-card:hover, .tool-card:hover, .setup-step:hover {
                transform: none;
            }

            .btn:hover {
                transform: none;
            }

            .command-examples li:hover {
                transform: none;
            }

            nav a {
                padding: 0.7rem 0;  /* Larger touch target */
            }

            .footer-column a {
                padding: 0.3rem 0;
                display: inline-block;
            }
        }
    </style>
</head>
<body>
    <header role="banner">
        <div class="container header-content">
            <a href="/" class="logo" aria-label="Payload CMS MCP Server Home">
                <img src="/logopayload.png" alt="Payload CMS MCP Server" class="logo-image" width="60" height="60" loading="eager">
                <span class="logo-text">
                    <strong>Payload CMS MCP Server</strong>
                </span>
            </a>
            <button class="mobile-nav-toggle" aria-label="Toggle navigation menu" aria-expanded="false">
                <div class="hamburger-icon">
                    <span></span>
                    <span></span>
                    <span></span>
                </div>
            </button>
            <nav role="navigation" aria-label="Main Navigation">
                <ul>
                    <li><a href="#features">Features</a></li>
                    <li><a href="#tools">Capabilities</a></li>
                    <li><a href="#api">Integration</a></li>
                    <li><a href="#setup">Setup</a></li>
                    <li><a href="/deployment.html">Deployment Options</a></li>
                    <li><a href="https://github.com/Matmax-Worldwide/payloadcmsmcp" target="_blank" rel="noopener noreferrer" class="github-link">
                        <img src="/images/github-icon.svg" alt="GitHub" width="18" height="18" class="nav-icon">
                        GitHub
                    </a></li>
                </ul>
            </nav>
            <div class="overlay"></div>
        </div>
    </header>

    <main>
        <section class="hero" aria-labelledby="hero-heading">
            <div class="container">
                <div class="hero-content">
                    <h1 id="hero-heading">Payload CMS 3.0 MCP Server</h1>
                    <p>A specialized MCP server for Payload CMS 3.0 that validates code, generates templates, and scaffolds projects following best practices.</p>
                    <div class="hero-buttons">
                        <a href="#features" class="btn btn-primary">Explore Features</a>
                        <a href="#setup" class="btn btn-secondary">Get Started</a>
                    </div>
                </div>
            </div>
        </section>

        <section class="features" id="features" aria-labelledby="features-heading">
            <div class="container">
                <div class="section-title">
                    <h2 id="features-heading">Features</h2>
                    <p>Enhance your Payload CMS 3.0 development with AI that understands the framework's architecture and best practices.</p>
                </div>
                <div class="features-grid">
                    <article class="feature-card">
                        <div class="feature-icon" aria-hidden="true">📚</div>
                        <h3>Code Validation</h3>
                        <p>Validate Payload CMS code for collections, fields, globals, and config files with detailed feedback on syntax errors and best practices.</p>
                    </article>
                    <article class="feature-card">
                        <div class="feature-icon" aria-hidden="true">🔍</div>
                        <h3>Code Generation</h3>
                        <p>Generate code templates for collections, fields, globals, access control, hooks, endpoints, plugins, blocks, and migrations.</p>
                    </article>
                    <article class="feature-card">
                        <div class="feature-icon" aria-hidden="true">🚀</div>
                        <h3>Project Scaffolding</h3>
                        <p>Scaffold entire Payload CMS projects with validated options for consistency and adherence to best practices.</p>
                    </article>
                </div>
            </div>
        </section>

        <section class="tools-section" id="tools" aria-labelledby="tools-heading">
            <div class="container">
                <div class="section-title">
                    <h2 id="tools-heading">Payload CMS 3.0 Capabilities</h2>
                    <p>AI-powered tools to help you build robust Payload CMS 3.0 applications following best practices.</p>
                </div>
                <div class="tools-grid">
                    <article class="tool-card">
                        <h3>Validation Tools</h3>
                        <ul class="tool-list">
                            <li><span class="tool-name">validate</span> - Validate code for collections, fields, globals, and config</li>
                            <li><span class="tool-name">query</span> - Query validation rules and best practices</li>
                            <li><span class="tool-name">mcp_query</span> - Execute SQL-like queries for Payload CMS structures</li>
                        </ul>
                    </article>
                    
                    <article class="tool-card">
                        <h3>Code Generation</h3>
                        <ul class="tool-list">
                            <li><span class="tool-name">generate_template</span> - Generate code templates for various components</li>
                            <li><span class="tool-name">generate_collection</span> - Create complete collection definitions</li>
                            <li><span class="tool-name">generate_field</span> - Generate field definitions with proper typing</li>
                        </ul>
                    </article>
                    
                    <article class="tool-card">
                        <h3>Project Setup</h3>
                        <ul class="tool-list">
                            <li><span class="tool-name">scaffold_project</span> - Create entire Payload CMS project structures</li>
                            <li><span class="tool-name">validate_scaffold_options</span> - Ensure scaffold options follow best practices</li>
                        </ul>
                    </article>
                </div>
            </div>
        </section>

        <section class="api-section" id="api" aria-labelledby="api-heading">
            <div class="container">
                <div class="section-title">
                    <h2 id="api-heading">Payload CMS 3.0 AI Integration</h2>
                    <p>Connect to the MCP server to build Payload CMS 3.0 applications with AI that validates code, generates templates, and follows best practices.</p>
                </div>
                <div class="api-container">
                    <article class="api-card">
                        <div class="api-header">
                            <span class="api-name">Cursor IDE Integration</span>
                        </div>
                        <div class="api-description">
                            Use the MCP server with Cursor IDE to validate Payload CMS 3.0 code, generate templates, and scaffold projects with AI assistance.
                        </div>
                        <div class="code-block">
                            <code>// In Cursor Settings > MCP Servers</code>
                            <code>Name: "Payload CMS 3.0 MCP"</code>
                            <code>Transport Type: "Command"</code>
                            <code></code>
                            <code>// Option 1: After linking with Railway CLI</code>
                            <code>Command: railway run</code>
                            <code></code>
                            <code>// Option 2: Using API token and service ID</code>
                            <code>Command: railway run --service=YOUR_SERVICE_ID</code>
                        </div>
                    </article>
                    
                    <article class="api-card">
                        <div class="api-header">
                            <span class="api-name">Example Commands</span>
                        </div>
                        <div class="api-description">
                            Once configured, you can use natural language to interact with the Payload CMS MCP Server.
                        </div>
                        <ul class="command-examples">
                            <li>"Validate this collection code for Payload CMS 3.0"</li>
                            <li>"Generate a template for a blog collection with title, content, and author fields"</li>
                            <li>"Query validation rules for access control in Payload CMS 3.0"</li>
                            <li>"Generate a field definition for an image field with validation"</li>
                        </ul>
                    </article>
                </div>
            </div>
        </section>

        <section class="about-section" id="about" aria-labelledby="about-heading">
            <div class="container">
                <div class="about-content">
                    <div class="about-image">
                        <img src="/00Matmax-world-logo-_1_-svg.png" alt="Matmax Worldwide" width="300" height="300" loading="lazy">
                    </div>
                    <div class="about-text">
                        <h2 id="about-heading">MATMAX WORLDWIDE</h2>
                        <p>Creating technology that helps humans be more human. We believe in tech for good—tools that enhance our lives while respecting our humanity.</p>
                        <p>Join us in building a future where technology serves wellness, connection, and purpose. Together, we can create digital experiences that bring out the best in us all.</p>
                        <a href="https://matmax.world" class="btn" target="_blank" rel="noopener noreferrer">Visit matmax.world</a>
                    </div>
                </div>
            </div>
        </section>

        <section class="setup-section" id="setup" aria-labelledby="setup-heading">
            <div class="container">
                <div class="section-title">
                    <h2 id="setup-heading">Getting Started</h2>
                    <p>Follow these steps to set up and start using the Payload CMS MCP Server.</p>
                </div>
                <div class="setup-steps">
                    <div class="setup-step">
                        <div class="step-number">1</div>
                        <h3>Prerequisites</h3>
                        <p>Before you begin, make sure you have:</p>
                        <ul>
                            <li>Node.js 18+ (required for Payload CMS 3.0)</li>
                            <li>npm or yarn package manager</li>
                            <li>An active Railway account (for Railway deployment)</li>
                            <li>A Railway API token (create one at <a href="https://railway.app/account/tokens" target="_blank" rel="noopener noreferrer">railway.app/account/tokens</a>)</li>
                            <li>Basic familiarity with Payload CMS 3.0 concepts</li>
                        </ul>
                    </div>
                    
                    <div class="setup-step">
                        <div class="step-number">2</div>
                        <h3>Installation Options</h3>
                        <p><strong>Option 1:</strong> Install from npm (Recommended)</p>
                        <div class="code-block">
                            <code># Install specific version globally</code>
                            <code>npm install -g payload-cms-mcp@1.0.2</code>
                            <code></code>
                            <code># Or install latest version</code>
                            <code>npm install -g payload-cms-mcp</code>
                            <code></code>
                            <code># Run the server</code>
                            <code>payload-cms-mcp</code>
                        </div>
                        
                        <p><strong>Option 2:</strong> Clone the repository</p>
                        <div class="code-block">
                            <code># Clone the repository</code>
                            <code>git clone https://github.com/Matmax-Worldwide/payloadcmsmcp.git</code>
                            <code>cd payloadcmsmcp</code>
                            <code></code>
                            <code># Install dependencies</code>
                            <code>npm install</code>
                            <code></code>
                            <code># Run the development server</code>
                            <code>npm run dev</code>
                        </div>
                    </div>
                    
                    <div class="setup-step">
                        <div class="step-number">3</div>
                        <h3>Configure Cursor</h3>
                        <p>To use with Cursor IDE:</p>
                        <ol>
                            <li>Open Cursor Settings</li>
                            <li>Go to MCP Servers section</li>
                            <li>Add a new MCP server</li>
                            <li>Name it "Payload CMS 3.0 MCP"</li>
                            <li>Set Transport Type to "Command"</li>
                            <li>Set Command to one of the following options:</li>
                            <ul>
                                <li><strong>For Railway deployment:</strong> <code>railway run</code> (after linking with <code>railway link</code>)</li>
                                <li><strong>For local installation:</strong> <code>payload-cms-mcp</code> (if installed via npm)</li>
                                <li><strong>For local repository:</strong> <code>npm run dev</code> (in the repository directory)</li>
                            </ul>
                            <li>Save the configuration</li>
                        </ol>
                    </div>
                    
                    <div class="setup-step">
                        <div class="step-number">4</div>
                        <h3>Using the MCP Server</h3>
                        <p>Once configured, you can use these tools in your AI prompts:</p>
                        <ul>
                            <li><strong>Code Validation:</strong> "Validate this Payload CMS collection code"</li>
                            <li><strong>Template Generation:</strong> "Generate a template for a media collection"</li>
                            <li><strong>Query Rules:</strong> "Query validation rules for access control"</li>
                            <li><strong>SQL-like Queries:</strong> "Execute a query to find field types for collections"</li>
                        </ul>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <footer role="contentinfo">
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h3>Payload CMS 3.0 Resources</h3>
                    <ul>
                        <li><a href="https://github.com/Matmax-Worldwide/payloadcmsmcp" target="_blank" rel="noopener noreferrer">GitHub Repository</a></li>
                        <li><a href="https://payloadcms.com/docs" target="_blank" rel="noopener noreferrer">Payload CMS 3.0 Docs</a></li>
                        <li><a href="https://github.com/payloadcms/payload" target="_blank" rel="noopener noreferrer">Payload CMS GitHub</a></li>
                        <li><a href="https://discord.com/invite/payload" target="_blank" rel="noopener noreferrer">Payload CMS Discord</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h3>Quick Links</h3>
                    <ul>
                        <li><a href="#features">Features</a></li>
                        <li><a href="#tools">Payload CMS 3.0 Capabilities</a></li>
                        <li><a href="#setup">Getting Started</a></li>
                        <li><a href="#api">AI Integration</a></li>
                    </ul>
                </div>
                <div class="footer-column">
                    <h3>About Us</h3>
                    <p>Explore our vision for human-centered technology and join our community dedicated to wellness and meaningful innovation.</p>
                    <a href="https://matmax.world" class="btn" target="_blank" rel="noopener noreferrer" style="margin-top: 1rem;">Visit matmax.world</a>
                </div>
            </div>
            <div class="footer-bottom">
                <p>© 2025 MATMAX WORLDWIDE. Made with ❤️ for humanity.</p>
                <div class="social-links">
                    <a href="https://github.com/Matmax-Worldwide" target="_blank" rel="noopener noreferrer" aria-label="GitHub">
                        <img src="/images/github-icon.svg" alt="GitHub" width="24" height="24" class="social-icon">
                    </a>
                    <a href="https://instagram.com/matmaxyoga" target="_blank" rel="noopener noreferrer" aria-label="Instagram">
                        <img src="/images/instagram-icon.svg" alt="Instagram" width="24" height="24" class="social-icon">
                    </a>
                    <a href="https://www.linkedin.com/company/the-wellness-brand" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn">
                        <img src="/images/linkedin-icon.svg" alt="LinkedIn" width="24" height="24" class="social-icon">
                    </a>
                </div>
            </div>
        </div>
    </footer>
    
    <!-- Structured data for Organization -->
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "MATMAX WORLDWIDE",
      "url": "https://matmax.world",
      "logo": "https://www.payloadcmsmcp.info/00Matmax-world-logo-_1_-svg.png",
      "sameAs": [
        "https://github.com/Matmax-Worldwide",
        "https://instagram.com/matmaxyoga",
        "https://www.linkedin.com/company/the-wellness-brand"
      ],
      "subOrganization": {
        "@type": "Organization",
        "name": "Payload CMS MCP Server",
        "url": "https://www.payloadcmsmcp.info/",
        "logo": "https://www.payloadcmsmcp.info/00Matmax-world-logo-_1_-svg.png"
      }
    }
    </script>
    
    <script>
        // Smooth scrolling for navigation links
        document.addEventListener('DOMContentLoaded', function() {
            const navLinks = document.querySelectorAll('nav a[href^="#"]');
            const footerLinks = document.querySelectorAll('.footer-column a[href^="#"]');
            const heroButtons = document.querySelectorAll('.hero-buttons a[href^="#"]');
            
            const allLinks = [...navLinks, ...footerLinks, ...heroButtons];
            
            allLinks.forEach(link => {
                link.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    const targetId = this.getAttribute('href');
                    const targetElement = document.querySelector(targetId);
                    
                    if (targetElement) {
                        const headerHeight = document.querySelector('header').offsetHeight;
                        const targetPosition = targetElement.getBoundingClientRect().top + window.pageYOffset - headerHeight;
                        
                        window.scrollTo({
                            top: targetPosition,
                            behavior: 'smooth'
                        });

                        // Close mobile menu if open
                        if (document.querySelector('nav').classList.contains('active')) {
                            toggleMobileNav();
                        }
                    }
                });
            });

            // Mobile Navigation Toggle
            const mobileNavToggle = document.querySelector('.mobile-nav-toggle');
            const nav = document.querySelector('nav');
            const overlay = document.querySelector('.overlay');
            const body = document.body;

            function toggleMobileNav() {
                mobileNavToggle.classList.toggle('active');
                nav.classList.toggle('active');
                overlay.classList.toggle('active');
                body.classList.toggle('no-scroll');
                
                // Update aria-expanded attribute
                const isExpanded = mobileNavToggle.getAttribute('aria-expanded') === 'true';
                mobileNavToggle.setAttribute('aria-expanded', !isExpanded);
                
                // Add focus trap for accessibility
                if (nav.classList.contains('active')) {
                    // Focus the first link in the menu
                    setTimeout(() => {
                        nav.querySelector('a').focus();
                    }, 100);
                }
            }

            mobileNavToggle.addEventListener('click', toggleMobileNav);
            overlay.addEventListener('click', toggleMobileNav);

            // Close menu when pressing Escape key
            document.addEventListener('keydown', function(e) {
                if (e.key === 'Escape' && nav.classList.contains('active')) {
                    toggleMobileNav();
                }
            });

            // Handle window resize
            window.addEventListener('resize', function() {
                if (window.innerWidth > 768 && nav.classList.contains('active')) {
                    toggleMobileNav();
                }
            });

            // Prevent body scrolling when menu is open
            function preventScroll(e) {
                if (body.classList.contains('no-scroll')) {
                    e.preventDefault();
                }
            }

            // Apply to touch devices
            document.addEventListener('touchmove', preventScroll, { passive: false });
        });

        // Add no-scroll class to body
        document.head.insertAdjacentHTML('beforeend', `
            <style>
                .no-scroll {
                    overflow: hidden;
                    position: fixed;
                    width: 100%;
                    height: 100%;
                }
                
                @media (prefers-reduced-motion: reduce) {
                    * {
                        transition: none !important;
                        animation: none !important;
                        scroll-behavior: auto !important;
                    }
                }
            </style>
        `);
    </script>
</body>
</html>