create-post
Generate and manage WordPress posts programmatically by specifying site URL, credentials, title, content, and optional parameters like status, date, categories, and tags using the MCP server.
Instructions
Create a new WordPress post
Input Schema
Name | Required | Description | Default |
---|---|---|---|
author | No | The ID for the author of the post | |
categories | No | The terms assigned to the post in the category taxonomy | |
commentStatus | No | Whether or not comments are open on the post | open |
content | Yes | The content for the post | |
date | No | The date the post was published, in the site's timezone | |
dateGmt | No | The date the post was published, as GMT | |
excerpt | No | The excerpt for the post | |
featuredMedia | No | The ID of the featured media for the post | |
format | No | The format for the post | standard |
meta | No | Meta fields | |
password | Yes | WordPress application password | |
pingStatus | No | Whether or not the post can be pinged | open |
postPassword | No | A password to protect access to the content and excerpt | |
siteUrl | Yes | WordPress site URL | |
slug | No | An alphanumeric identifier for the post unique to its type | |
status | No | A named status for the post | draft |
sticky | No | Whether or not the post should be treated as sticky | |
tags | No | The terms assigned to the post in the post_tag taxonomy | |
template | No | The theme file to use to display the post | |
title | Yes | The title for the post | |
username | Yes | WordPress username |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"author": {
"description": "The ID for the author of the post",
"type": "number"
},
"categories": {
"description": "The terms assigned to the post in the category taxonomy",
"items": {
"type": "number"
},
"type": "array"
},
"commentStatus": {
"default": "open",
"description": "Whether or not comments are open on the post",
"enum": [
"open",
"closed"
],
"type": "string"
},
"content": {
"description": "The content for the post",
"type": "string"
},
"date": {
"description": "The date the post was published, in the site's timezone",
"type": "string"
},
"dateGmt": {
"description": "The date the post was published, as GMT",
"type": "string"
},
"excerpt": {
"description": "The excerpt for the post",
"type": "string"
},
"featuredMedia": {
"description": "The ID of the featured media for the post",
"type": "number"
},
"format": {
"default": "standard",
"description": "The format for the post",
"enum": [
"standard",
"aside",
"chat",
"gallery",
"link",
"image",
"quote",
"status",
"video",
"audio"
],
"type": "string"
},
"meta": {
"additionalProperties": {},
"description": "Meta fields",
"type": "object"
},
"password": {
"description": "WordPress application password",
"type": "string"
},
"pingStatus": {
"default": "open",
"description": "Whether or not the post can be pinged",
"enum": [
"open",
"closed"
],
"type": "string"
},
"postPassword": {
"description": "A password to protect access to the content and excerpt",
"type": "string"
},
"siteUrl": {
"description": "WordPress site URL",
"format": "uri",
"type": "string"
},
"slug": {
"description": "An alphanumeric identifier for the post unique to its type",
"type": "string"
},
"status": {
"default": "draft",
"description": "A named status for the post",
"enum": [
"publish",
"future",
"draft",
"pending",
"private"
],
"type": "string"
},
"sticky": {
"description": "Whether or not the post should be treated as sticky",
"type": "boolean"
},
"tags": {
"description": "The terms assigned to the post in the post_tag taxonomy",
"items": {
"type": "number"
},
"type": "array"
},
"template": {
"description": "The theme file to use to display the post",
"type": "string"
},
"title": {
"description": "The title for the post",
"type": "string"
},
"username": {
"description": "WordPress username",
"type": "string"
}
},
"required": [
"siteUrl",
"username",
"password",
"title",
"content"
],
"type": "object"
}