Payload CMS
Enables AI assistants to interact with Payload CMS instances through authenticated REST API operations. Supports creating, searching, and updating documents in collections with automatic JWT authentication and localization support.
What is Payload CMS?
Payload CMS is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to enables ai assistants to interact with payload cms instances through authenticated rest api operations. supports creating, searching, and updating documents in collections with automatic jwt authentic...
Enables AI assistants to interact with Payload CMS instances through authenticated REST API operations. Supports creating, searching, and updating documents in collections with automatic JWT authentication and localization support.
This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Enables AI assistants to interact with Payload CMS instances
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx payload-cms-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Payload CMS
Payload CMS MCP Server enables AI assistants to interact with Payload CMS 3.0 instances through authenticated REST API operations, supporting document creation, search, and updates across any collection with automatic JWT authentication and localization support. Beyond basic CRUD, it provides Payload-specific code generation tools for scaffolding collections, fields, and entire project structures following Payload best practices. Developers building or maintaining Payload CMS-powered applications use it to automate content operations, validate collection code, and generate boilerplate through natural language without writing repetitive API calls.
Prerequisites
- Node.js 18 or later
- A running Payload CMS 3.0 instance (local or hosted)
- Admin credentials for your Payload CMS instance (email and password for JWT authentication)
- An MCP-compatible client such as Claude Desktop or Cursor
- Optional: Railway account if deploying the MCP server to the cloud
Clone the repository
Clone the Payload CMS MCP server repository to your local machine.
git clone https://github.com/disruption-hub/payloadcmsmcp.git
cd payloadcmsmcpInstall dependencies
Install the required Node.js dependencies.
npm installConfigure your Payload CMS connection
Set environment variables pointing to your Payload CMS instance URL and admin credentials. The server uses these to obtain a JWT token automatically.
export PAYLOAD_CMS_URL=https://your-payload-instance.com
export [email protected]
export PAYLOAD_PASSWORD=your_admin_passwordStart the server locally
Run the server in development mode to verify it connects to your Payload CMS instance correctly.
npm run devConfigure your MCP client
Add the server to your MCP client configuration. For local development, use the node command to run the server directly.
{
"mcpServers": {
"payload-cms": {
"command": "node",
"args": ["/path/to/payloadcmsmcp/dist/index.js"],
"env": {
"PAYLOAD_CMS_URL": "https://your-payload-instance.com",
"PAYLOAD_EMAIL": "[email protected]",
"PAYLOAD_PASSWORD": "your_admin_password"
}
}
}
}Restart your MCP client
Restart Claude Desktop or Cursor to load the Payload CMS server. You can then ask the AI to generate collections, validate code, or manage content.
Payload CMS Examples
Client configuration for Claude Desktop
Configuration for running the Payload CMS MCP server locally with your CMS credentials.
{
"mcpServers": {
"payload-cms": {
"command": "node",
"args": ["/Users/yourname/payloadcmsmcp/dist/index.js"],
"env": {
"PAYLOAD_CMS_URL": "https://your-payload-instance.com",
"PAYLOAD_EMAIL": "[email protected]",
"PAYLOAD_PASSWORD": "your_admin_password"
}
}
}
}Prompts to try
Example prompts for generating Payload CMS code, validating collections, and managing content.
- "Generate a Payload CMS collection for a blog with title, content, author, and tags fields"
- "Validate this Payload CMS collection code for best practices"
- "Scaffold a complete e-commerce project with products, orders, and users collections"
- "Generate a media collection with image upload and alt text fields"
- "What are best practices for access control in Payload CMS 3.0?"Troubleshooting Payload CMS
JWT authentication fails with 401 errors
Verify PAYLOAD_EMAIL and PAYLOAD_PASSWORD match an active admin account in your Payload CMS instance. Ensure the PAYLOAD_CMS_URL points to the correct base URL without a trailing slash, and that the instance is running and accessible from the machine running the MCP server.
Collections are not found when querying
Payload CMS collection slugs are case-sensitive. Use the exact slug defined in your Payload config (e.g., 'posts' not 'Posts'). Check your Payload admin panel at /admin to confirm the exact collection slug names.
npm run dev fails with TypeScript compilation errors
Run npm run build first to compile TypeScript to JavaScript, then run npm start. If build errors persist, ensure your Node.js version is 18 or later with node --version and update if needed.
Frequently Asked Questions about Payload CMS
What is Payload CMS?
Payload CMS is a Model Context Protocol (MCP) server that enables ai assistants to interact with payload cms instances through authenticated rest api operations. supports creating, searching, and updating documents in collections with automatic jwt authentication and localization support. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Payload CMS?
Follow the installation instructions on the Payload CMS GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Payload CMS?
Payload CMS works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Payload CMS free to use?
Yes, Payload CMS is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Payload CMS Alternatives — Similar Business Applications Servers
Looking for alternatives to Payload CMS? 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 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?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.