Payload CMS MCP Server
# Add to your Claude Code skills
git clone https://github.com/disruption-hub/payloadcmsmcpThe Payload CMS 3.0 MCP Server is a specialized Model Context Protocol server designed to enhance your Payload CMS development experience. It helps developers build better Payload CMS applications by providing code validation, template generation, and project scaffolding capabilities that follow best practices.
<hr>validate - Validate code for collections, fields, globals, and configquery - Query validation rules and best practicesmcp_query - Execute SQL-like queries for Payload CMS structuresgenerate_template - Generate code templates for various componentsgenerate_collection - Create complete collection definitionsgenerate_field - Generate field definitions with proper typingscaffold_project - Create entire Payload CMS project structuresvalidate_scaffold_options - Ensure scaffold options follow best practices (used internally by scaffold_project)validateValidates Payload CMS code for syntax and best practices.
Parameters:
code (string): The code to validatefileType (enum): Type of file - "collection...