Payload CMS MCP
Payload CMS MCP Server
What is Payload CMS MCP?
Payload CMS MCP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to payload cms mcp server
Payload CMS MCP Server
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Payload CMS MCP Server
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx payloadcmsmcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Payload CMS MCP
Payload CMS MCP Server provides AI assistants with the ability to interact with Payload CMS 3.0 instances through a suite of tools covering validation, code generation, and project scaffolding. It authenticates automatically with your Payload CMS REST API using JWT tokens and exposes operations for creating and querying documents in any collection, generating complete collection definitions and field specifications, and scaffolding entire Payload projects with chosen database adapters and authentication setups. Developers working with Payload CMS use it to eliminate boilerplate, enforce coding standards, and automate content management through natural language in AI coding assistants like Cursor.
Prerequisites
- Node.js 18 or later
- A running Payload CMS 3.0 instance accessible via REST API
- Admin account credentials (email and password) for your Payload CMS instance
- An MCP-compatible client such as Cursor or Claude Desktop
- Optional: Railway account for cloud deployment of the MCP server
Clone the repository
Clone the payloadcmsmcp repository from GitHub to your local environment.
git clone https://github.com/disruption-hub/payloadcmsmcp.git
cd payloadcmsmcpInstall dependencies and build
Install Node.js dependencies and compile the TypeScript source.
npm install
npm run buildSet your Payload CMS credentials
Configure the environment variables that the server uses to authenticate with your Payload CMS instance. The server obtains a JWT token automatically using these credentials.
export PAYLOAD_CMS_URL=https://your-payload-cms.com
export [email protected]
export PAYLOAD_PASSWORD=your_secure_passwordAdd the server to your MCP client
Add a server entry to your MCP client configuration file. Use the absolute path to the compiled dist/index.js file.
{
"mcpServers": {
"payloadcmsmcp": {
"command": "node",
"args": ["/absolute/path/to/payloadcmsmcp/dist/index.js"],
"env": {
"PAYLOAD_CMS_URL": "https://your-payload-cms.com",
"PAYLOAD_EMAIL": "[email protected]",
"PAYLOAD_PASSWORD": "your_secure_password"
}
}
}
}Deploy to Railway (optional, for team use)
For shared team access, deploy to Railway using the deployment button in the repository. Set the same environment variables in the Railway project settings and use the generated service URL in your MCP config.
Restart your MCP client
Restart Cursor or Claude Desktop. The Payload CMS tools will appear in the AI assistant's available tool list.
Payload CMS MCP Examples
Client configuration for Cursor
MCP server configuration for Cursor IDE pointing to the locally built payloadcmsmcp server.
{
"mcpServers": {
"payloadcmsmcp": {
"command": "node",
"args": ["/Users/yourname/payloadcmsmcp/dist/index.js"],
"env": {
"PAYLOAD_CMS_URL": "https://your-payload-cms.com",
"PAYLOAD_EMAIL": "[email protected]",
"PAYLOAD_PASSWORD": "your_secure_password"
}
}
}
}Prompts to try
Example prompts for using the Payload CMS MCP server's code generation, validation, and content management tools.
- "Generate a Payload CMS collection for a blog with slug, title, body, featuredImage, and publishedAt fields"
- "Scaffold a complete Payload project with MongoDB, user authentication, and posts and categories collections"
- "Validate this Payload CMS collection definition and suggest improvements"
- "Generate a field specification for a rich text editor field with upload support"
- "Create a new document in the posts collection with title 'Hello World' and status 'draft'"Troubleshooting Payload CMS MCP
Authentication fails with 'Unauthorized' or empty JWT token
Check that PAYLOAD_CMS_URL is the correct base URL for your Payload instance (no trailing slash, correct protocol). Confirm the email and password match an admin user in Payload's Users collection. Test manually by logging into the Payload admin UI at /admin with the same credentials.
generate_collection or scaffold_project tools produce invalid TypeScript
Payload CMS 3.0 has specific type requirements that differ from v2. Ensure you are using the generated code with Payload 3.x and update deprecated field types. The validate tool can check generated code and suggest fixes before you use it in your project.
Server exits immediately after starting with no error output
Ensure npm run build has been run before starting. Check that dist/index.js exists in the repository directory. Run node dist/index.js directly in the terminal to see any startup errors that are suppressed when launched by the MCP client.
Frequently Asked Questions about Payload CMS MCP
What is Payload CMS MCP?
Payload CMS MCP is a Model Context Protocol (MCP) server that payload cms mcp server It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Payload CMS MCP?
Follow the installation instructions on the Payload CMS MCP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Payload CMS MCP?
Payload CMS MCP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Payload CMS MCP free to use?
Yes, Payload CMS MCP is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Payload CMS MCP Alternatives — Similar Business Applications Servers
Looking for alternatives to Payload CMS MCP? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.
n8n
★ 189.1kA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou
LobeHub
★ 77.5k🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.
Jeecgboot
★ 46.4kAI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。
CowAgent
★ 44.7kCowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。
Minds Platform
★ 39.2kPlatform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.
Astrbot
★ 32.8kAI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
Browse More Business Applications MCP Servers
Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Payload CMS MCP in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Payload CMS MCP?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.