MCP server

Payload CMS MCP Server: Validate and Scaffold Payload Code

The Payload CMS 3.0 MCP server helps an AI agent validate collections, fields and config, generate templates and scaffold Payload projects, rather than editing live content.

Run
npm install -g payload-cms-mcp && payload-cms-mcp
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the Payload CMS MCP server?

The Payload CMS MCP server is an MIT licensed Node.js server for Payload CMS 3.0 development. It offers tools to validate collection, field, global and config code, generate templates and collections, query best practice rules and scaffold whole projects. It does not manage documents in a running site.

This Model Context Protocol server is aimed at people building with Payload CMS 3.0. It checks Payload code against best practice rules and generates collections, fields, hooks, access control, endpoints, plugins, blocks and migrations.

Its job is development help. The README lists validation, template generation and scaffolding tools, and none that read or write documents in a running Payload site, so it is not a content editing connector.

What an agent can do with it

  • Validate collection, field, global and config code and get feedback on syntax and practice.
  • Query validation rules, for example for access control.
  • Generate templates for ten component types, plus full collection and field definitions.
  • Scaffold a project with MongoDB or Postgres, auth, collections, globals, blocks and plugins.
  • Run SQL like queries against Payload structures.

Who it is for

Best for

  • Developers starting a Payload 3.0 project who want a checked first draft of their schema.
  • Teams reviewing collection and access code for common mistakes.
  • Agencies who scaffold similar Payload builds repeatedly.

Not for

  • Editors who want an agent to publish or update documents in a live Payload CMS.
  • Setups that must avoid third party hosting, if you follow the Railway path.

Use it with UiChemy

Payload powers headless sites, so the front end is up to you. If you want a WordPress marketing site as well, UiChemy's AI to WordPress imports AI builds into editable pages. Click Get Started on uichemy.com.