Skip to main content
Glama

WordPress MCP

Official
by Automattic

create-post

Generate WordPress posts with Gutenberg blocks by specifying a title and structured content, enabling efficient content creation and publishing.

Instructions

Create a new WordPress post using Gutenberg blocks

Input Schema

NameRequiredDescriptionDefault
contentYesPost content in WordPress block format. Here is an example of the format: If you given following blocks documentation: ``` Name: core/paragraph Title: Paragraph Description: Start with the basic building block of all narrative. Category: text ##Attributes ###align type: string ###content type: rich-text source: rich-text selector: p role: content ###dropCap type: boolean default: false ###placeholder type: string ###direction type: string enum: ltr,rtl ###lock type: object ###metadata type: object ###className type: string ###style type: object ###backgroundColor type: string ###textColor type: string ###gradient type: string ###fontSize type: string ###fontFamily type: string ###borderColor type: string ``` You can use the following format: ``` <!-- wp:paragraph {"align":"center", "dropCap":true, "direction":"ltr", "fontSize":"large", "fontFamily":"serif", "borderColor":"red", "backgroundColor":"blue", "textColor":"green", "gradient":"linear-gradient(to right, #000000, #ffffff)", "style":{"color":"red", "background-color":"blue"}} --> <p class="has-text-align-center has-drop-cap has-large-font-size has-serif-font-family has-border-color has-background has-text-color has-gradient has-global-padding has-global-margin has-global-color has-global-font-size" style="color:red;background-color:blue;">Your paragraph content here.</p> <!-- /wp:paragraph --> ```
titleYesPost title less than 70 characters

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "content": { "description": "Post content in WordPress block format.\nHere is an example of the format:\nIf you given following blocks documentation:\n```\n\n Name: core/paragraph\n Title: Paragraph\n Description: Start with the basic building block of all narrative.\n Category: text\n ##Attributes\n ###align\n type: string\n\n ###content\n type: rich-text\n source: rich-text\n selector: p\n role: content\n\n ###dropCap\n type: boolean\n default: false\n\n ###placeholder\n type: string\n\n ###direction\n type: string\n enum: ltr,rtl\n\n ###lock\n type: object\n\n ###metadata\n type: object\n\n ###className\n type: string\n\n ###style\n type: object\n\n ###backgroundColor\n type: string\n\n ###textColor\n type: string\n\n ###gradient\n type: string\n\n ###fontSize\n type: string\n\n ###fontFamily\n type: string\n\n ###borderColor\n type: string\n ```\nYou can use the following format:\n```\n\n <!-- wp:paragraph {\"align\":\"center\", \"dropCap\":true, \"direction\":\"ltr\", \"fontSize\":\"large\", \"fontFamily\":\"serif\", \"borderColor\":\"red\", \"backgroundColor\":\"blue\", \"textColor\":\"green\", \"gradient\":\"linear-gradient(to right, #000000, #ffffff)\", \"style\":{\"color\":\"red\", \"background-color\":\"blue\"}} -->\n <p class=\"has-text-align-center has-drop-cap has-large-font-size has-serif-font-family has-border-color has-background has-text-color has-gradient has-global-padding has-global-margin has-global-color has-global-font-size\" style=\"color:red;background-color:blue;\">Your paragraph content here.</p>\n <!-- /wp:paragraph -->\n ```\n", "minLength": 1, "type": "string" }, "title": { "description": "Post title less than 70 characters", "maxLength": 70, "minLength": 1, "type": "string" } }, "required": [ "title", "content" ], "type": "object" }
Install Server

Other Tools from WordPress MCP

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Automattic/wordpress-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server