Payload CMS

v1.0.0Business Applicationsstable

This is a Model Context Protocol (MCP) server that enables AI assistants and tools to interact directly with your Payload CMS instance.

payloadmcpai-integration
Share:
11
Stars
0
Downloads
0
Weekly
0/5

What is Payload CMS?

Payload CMS is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this is a model context protocol (mcp) server that enables ai assistants and tools to interact directly with your payload cms instance.

This is a Model Context Protocol (MCP) server that enables AI assistants and tools to interact directly with your Payload CMS instance.

This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • This is a Model Context Protocol (MCP) server that enables A

Use Cases

Manage Payload CMS content and structure through AI assistants.
Automate content operations and queries using natural language.
ohnicholas93

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMar 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx payload

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Payload CMS

Payload MCP Server connects AI assistants directly to your Payload CMS instance, enabling natural-language control over content collections and global documents. It exposes tools for creating, searching, and updating documents via the Payload REST API, making it possible to manage headless CMS content without leaving your AI workflow.

Prerequisites

  • Python 3.8 or higher installed
  • A running Payload CMS instance (local or remote) with its REST API accessible
  • pip package manager available
  • An MCP-compatible client such as Claude Desktop or VS Code with MCP support
  • Optional: a Payload JWT auth token if your instance requires authentication
1

Clone and install the server

Clone the repository and install its Python dependencies. You can install it as an editable package for development or as a global command.

git clone https://github.com/ohnicholas93/payload-mcp-server.git
cd payload-mcp-server
pip install -r requirements.txt
# Or install as a package:
pip install .
2

Configure environment variables

Set the connection variables that point the server at your Payload CMS instance. At minimum you need the base URL; the auth token is optional for public instances.

export PAYLOAD_MCP_PAYLOAD__BASE_URL="http://localhost:3000/api"
export PAYLOAD_MCP_PAYLOAD__AUTH_TOKEN="your-jwt-token-here"
export PAYLOAD_MCP_PAYLOAD__TIMEOUT="30"
export PAYLOAD_MCP_LOG_LEVEL="INFO"
3

Verify the server starts

Run the server directly to confirm it starts without errors before wiring it into your MCP client.

payload-mcp-server
# Or from source:
python -m payload_mcp.server
4

Add to Claude Desktop configuration

Edit your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS) to register the server as an MCP provider.

{
  "mcpServers": {
    "payload-mcp": {
      "command": "python",
      "args": ["-m", "payload_mcp.server"],
      "cwd": "/path/to/payload-mcp-server",
      "env": {
        "PAYLOAD_MCP_PAYLOAD__BASE_URL": "http://localhost:3000/api",
        "PAYLOAD_MCP_PAYLOAD__AUTH_TOKEN": "your-jwt-token"
      }
    }
  }
}
5

Restart Claude Desktop and test

Quit and reopen Claude Desktop so it picks up the new server config. You should see the Payload MCP tools available in the tool list.

Payload CMS Examples

Client configuration

Complete claude_desktop_config.json entry for Payload MCP Server using Python module mode.

{
  "mcpServers": {
    "payload-mcp": {
      "command": "python",
      "args": ["-m", "payload_mcp.server"],
      "cwd": "/path/to/payload-mcp-server",
      "env": {
        "PAYLOAD_MCP_PAYLOAD__BASE_URL": "http://localhost:3000/api",
        "PAYLOAD_MCP_PAYLOAD__AUTH_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
        "PAYLOAD_MCP_PAYLOAD__VERIFY_SSL": "false",
        "PAYLOAD_MCP_LOG_LEVEL": "INFO"
      }
    }
  }
}

Prompts to try

Example prompts you can send to Claude once the Payload MCP Server is connected.

- "Search the 'posts' collection for items where the status field is 'draft' and return the first 10 results."
- "Create a new document in the 'products' collection with title 'Widget Pro', price 49.99, and status 'published'."
- "Update the global document with slug 'site-settings' to set the maintenanceMode field to false."
- "Get the user with ID '64abc123def456' from the 'users' collection and show all their fields."

Troubleshooting Payload CMS

Server returns 'connection refused' errors when calling tools

Ensure your Payload CMS instance is running and the PAYLOAD_MCP_PAYLOAD__BASE_URL environment variable points to the correct host and port. For Docker-based setups, use the container's network address instead of localhost.

Authentication errors (401 Unauthorized) from Payload API

Generate a fresh JWT token from your Payload admin panel or via the /api/users/login endpoint and set it as PAYLOAD_MCP_PAYLOAD__AUTH_TOKEN. Tokens expire based on your Payload configuration.

Module not found error when starting the server

Ensure you installed the package in the same Python environment you are running. Run 'pip install .' inside the cloned repo directory, or activate the correct virtual environment before starting.

Frequently Asked Questions about Payload CMS

What is Payload CMS?

Payload CMS is a Model Context Protocol (MCP) server that this is a model context protocol (mcp) server that enables ai assistants and tools to interact directly with your payload cms instance. 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. 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.1k

A 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.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform 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.8k

AI 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.

Quick Config Preview

{ "mcpServers": { "payload": { "command": "npx", "args": ["-y", "payload"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides