Payload MCP

Payload MCP

payload-mcp•byngyngcphu

A locally runnable Model Context Protocol server offering tools that help AI assistants generate, validate, scaffold, and query Payload CMS projects.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides generator tools that produce boilerplate for Payload CMS collections, fields, config files, access control, hooks, endpoints, plugins, blocks, migrations, and admin components.
  • •Includes validator tools for checking collection configurations, field configurations, access control rules, and hook implementations.
  • •Offers query tools to validate and format Payload queries and to suggest queries based on a project's collections.
  • •Provides scaffolding tools to create new Payload CMS projects, add features, and set up authentication or deployment.

BEST FOR

  • •Developers using AI assistants to generate and validate Payload CMS component code during development.
  • •Teams starting new Payload CMS projects who want assistance setting up structure, dependencies, and features.
  • •Catching configuration issues early by validating collections, fields, access control, and hooks.

ABOUT PAYLOAD-MCP

Payload MCP is cataloged as an MCP server attributed to ngyngcphu. A locally runnable Model Context Protocol server offering tools that help AI assistants generate, validate, scaffold, and query Payload CMS projects. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Payload MCP are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does Payload MCP run locally?

Yes, it is designed as a local-first server that runs entirely on the user's machine.

Which MCP clients can use Payload MCP?

It states compatibility with any AI assistant that supports the Model Context Protocol.

What port does the server use by default?

The README states the default port is 3001.

Upstream README

View this exact version on GitHub

README.md · c1a4eb11676a · Fetched 2026-11-13 10:31:26 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Payload MCP

In Progress

⚠️ Work in Progress
This repository is under active development and not yet feature-complete. APIs, configurations, and CLI commands may change without notice. Use at your own risk!

A powerful Model Context Protocol (MCP) server for Payload CMS that enables AI assistants to help you develop, manage, and extend your Payload CMS projects.

Overview

Payload MCP (Model Context Protocol) is a specialized server that connects AI assistants to your Payload CMS development workflow. It provides a set of tools for generating code, validating components, scaffolding projects, and performing specialized queries - all accessible to AI agents through the standardized Model Context Protocol.

This project implements an MCP server that can be run locally to provide AI assistants with capabilities specifically tailored for Payload CMS development, making it easier to:

  • Generate boilerplate code for collections, fields, access control, and more
  • Validate your Payload CMS components
  • Scaffold new Payload CMS projects
  • Query and analyze your existing codebase

Features

  • Code Generation: Create collections, fields, config files, access control rules, hooks, endpoints, plugins, blocks, migrations, and components with the right structure and best practices
  • Validation: Validate your Payload CMS components to ensure they follow best practices and will work correctly
  • Scaffolding: Set up new Payload CMS projects with the right file structure and dependencies
  • Specialized Queries: Get recommendations and insights for your Payload CMS codebase
  • MCP Compliant: Works with any AI assistant that supports the Model Context Protocol
  • Local-first: Run entirely on your local machine for privacy and security

Getting Started

Prerequisites

  • Node.js (v16 or higher)
  • npm or Bun (recommended)

Installation

  1. Install the package:

    npm install -g @ngyngcphu/payload-mcp
    
  2. Configure your MCP client (e.g., Cursor) by adding this to your mcp.json:

    {
      "mcpServers": {
        "@ngyngcphu/payload-mcp": {
          "command": "npx",
          "args": ["@ngyngcphu/payload-mcp"]
        }
      }
    }
    
  3. The server will start automatically when needed by your MCP client. The default port is 3001.

Manual Start (Optional)

If you want to start the server manually:

npx @ngyngcphu/payload-mcp

Tool Reference

Payload MCP provides four categories of tools:

Generator Tools

Generate boilerplate code for Payload CMS components:

ToolDescription
collectionGenerate a Payload collection with fields, hooks, and access control
fieldGenerate a field configuration for collections
configGenerate a Payload configuration file
access-controlGenerate access control functions
hookGenerate before/after hooks for collections
endpointGenerate custom API endpoints
pluginGenerate a Payload plugin
blockGenerate a block for the Payload block field type
migrationGenerate a database migration
componentGenerate a React component for the admin panel

Query Tools

Tools for querying and analyzing your Payload CMS codebase:

ToolDescription
validate_queryValidate and format Payload queries
get_query_suggestionsGet suggestions for Payload queries based on your collections
format_responseFormat the response from a Payload query

Scaffold Tools

Tools for scaffolding new Payload CMS projects:

ToolDescription
create_projectCreate a new Payload CMS project with recommended structure
add_featureAdd a feature to an existing Payload CMS project
setup_authenticationConfigure authentication for a Payload CMS project
setup_deploymentConfigure deployment settings for various platforms

Validator Tools

Tools for validating your Payload CMS components:

ToolDescription
validate_collectionValidate a collection configuration
validate_fieldValidate a field configuration
validate_access_controlValidate access control rules
validate_hookValidate a hook implementation

Example Usage

Generating a Collection

// Example: Generate a simple blog post collection
const options = {
  name: "Post",
  slug: "posts",
  fields: [
    { name: "title", type: "text", required: true },
    { name: "content", type: "richText" },
    { name: "status", type: "select", options: ["draft", "published"] }
  ],
  timestamps: true,
  auth: false
};

// The AI would use the generate_template tool with these options
// Result would be a complete collection configuration file

Validating a Query

// Example: Validate a query for the posts collection
const query = {
  where: {
    status: {
      equals: "published"
    },
    createdAt: {
      greater_than: "2023-01-01"
    }
  },
  sort: "-createdAt",
  limit: 10
};

// The AI would use the validate_query tool with this query
// Result would indicate if the query is valid and properly formatted

Scaffolding a New Project

// Example: Create a new Payload CMS project for a blog
const options = {
  name: "My Blog",
  collections: ["posts", "categories", "authors"],
  authentication: true,
  admin: {
    customization: true
  },
  database: "mongodb"
};

// The AI would use the create_project tool with these options
// Result would be instructions for setting up a complete project

Configuration

Payload MCP can be configured by modifying the following files:

  • package.json: Update the name, version, and other metadata
  • index.ts: Change the default port (3001) if needed
  • server/index.ts: Configure server options such as the MCP server name

Example Workflow

A typical workflow using Payload MCP might look like this:

  1. Start the MCP Server:

    npm start
    
  2. Connect Your AI Assistant: Configure your AI assistant to use the MCP server at http://localhost:3001/

  3. Request Generation: Ask your AI assistant to generate a new collection for your Payload CMS project

  4. Review & Integrate: Review the generated code and integrate it into your Payload CMS project

  5. Validate: Use the validation tools to ensure your implementation is correct

  6. Iterate: Continue developing with the help of your AI assistant and the MCP tools

Tips and Best Practices

  • Start with Scaffolding: For new projects, use the scaffolding tools to set up a well-structured project
  • Validate Frequently: Use the validation tools to catch issues early in your development process
  • Combine Tools: Most complex tasks require multiple tools - for example, generating a collection and then validating it
  • Review Generated Code: Always review generated code before integrating it into your project
  • Keep the Server Running: Leave the MCP server running during your development session so your AI assistant can access it
  • Use with Git: Commit your changes frequently so you can easily track and revert changes if needed

Future Plans

  • Additional generators for more Payload CMS component types
  • Integration with popular IDEs
  • Support for GraphQL query generation and validation
  • Performance optimizations for large Payload CMS projects

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Payload MCP from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/payload-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools