MCP Catalogs
Homepayloadcmsmcp screenshot

payloadcmsmcp

by disruption-hub·114·Score 41

Specialized MCP server for Payload CMS 3.0 providing code validation, template generation, and project scaffolding tools.

developer-toolsdatabaseecommerce
41
Forks
11
Open issues
14 mo ago
Last commit
2d ago
Indexed

Overview

The Payload CMS MCP Server enhances the development experience for Payload CMS applications by providing specialized tools for code validation, generation, and project scaffolding. It includes comprehensive tooling for validating collections, fields, globals, and config files, generating templates following best practices, and scaffolding complete project structures. The server is deployed on Railway and integrates seamlessly with Cursor IDE through command-based transport.

Try asking AI

After installing, here are 5 things you can ask your AI assistant:

you:Validate Payload CMS collections and configurations against best practices
you:Generate code templates for collections, fields, hooks, and other components
you:Scaffold complete Payload CMS projects with database setup and authentication
you:Which Payload CMS versions does this MCP server support?
you:Can I use this MCP server with AI clients other than Cursor?

When to choose this

Choose this if you're developing with Payload CMS 3.0 and need specialized tools for validation, template generation, and project scaffolding.

When NOT to choose this

Not suitable if you're not using Payload CMS, as it's specifically designed for this CMS platform and relies on Railway deployment.

Tools this server exposes

7 tools extracted from the README
  • validatevalidate(code: string, fileType: string)

    Validates Payload CMS code for syntax and best practices

  • queryquery(query: string, fileType?: string)

    Queries validation rules and best practices for Payload CMS

  • mcp_querymcp_query(sql: string)

    Executes SQL-like queries against Payload CMS structures

  • generate_templategenerate_template(templateType: string, options: object)

    Generates code templates for various Payload CMS components

  • generate_collectiongenerate_collection(slug: string, fields?: array, auth?: boolean, timestamps?: boolean, admin?: object, hooks?: boolean, access?: boolean, versions?: boolean)

    Generates a complete Payload CMS collection definition

  • generate_fieldgenerate_field(name: string, type: string, required?: boolean, unique?: boolean, localized?: boolean, access?: boolean, admin?: object, validation?: boolean, defaultValue?: any)

    Generates a Payload CMS field definition

  • scaffold_projectscaffold_project(projectName: string, description?: string, serverUrl?: string, database?: string, auth?: boolean, admin?: object, collections?: array, globals?: array, blocks?: array, plugins?: array, typescript?: boolean)

    Scaffolds a complete Payload CMS project structure

Comparable tools

payloadcms-mcpcms-mcprailway-mcp

Installation

Installation

Using Cursor

  1. Open Cursor Settings
  2. Go to MCP Servers section
  3. Add a new MCP server
  4. Name it "Payload CMS 3.0 MCP"
  5. Set Transport Type to "Command"
  6. Set Command to: railway run --service=YOUR_SERVICE_ID
  7. Save the configuration

General Setup

Ensure you have Node.js 18+ and an active Railway account with API token.

FAQ

Which Payload CMS versions does this MCP server support?
This server is specifically designed for Payload CMS 3.0 and may not be compatible with earlier versions.
Can I use this MCP server with AI clients other than Cursor?
Yes, you can use it with any MCP client that supports command transport. The setup instructions may vary depending on the client.

Compare payloadcmsmcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.