4 Tools for Gutenberg Blocks
Read, write, and list Gutenberg blocks and patterns. Full structured access to WordPress’s block editor data.
Part of 121 MCP tools in mumcp · Free tier available · Works with Claude, Cursor, Windsurf
What You Can Do
The Gutenberg toolset gives your AI structured access to WordPress’s block editor. Read the block tree of any post or page as structured JSON, write blocks back with full fidelity, list all registered block types and patterns, and build content using the native WordPress block format.
Key Tools
| Tool | Description |
|---|---|
wp_get_blocks | Read the Gutenberg block tree of any post or page as structured JSON data. |
wp_set_blocks | Write Gutenberg blocks to a post or page. Supports all core and custom block types. |
wp_list_block_types | List all registered block types — core blocks, plugin blocks, and custom blocks. |
wp_list_block_patterns | List all available block patterns — reusable layouts registered by themes and plugins. |
Example Workflow
"Add a pricing table and FAQ section to my services page
using Gutenberg blocks."
→ wp_get_blocks(id=15) → read current block structure
→ Build new blocks: table block + heading + list blocks
→ wp_set_blocks(id=15, blocks=[...existing..., ...new...])
→ Page updated with native Gutenberg blocks.
Block Format
WordPress Gutenberg blocks use a structured JSON format with block names, attributes, and inner blocks. mumcp preserves this structure perfectly — your AI can read a page’s blocks, modify specific sections, and write them back without losing formatting, custom classes, or block-level settings. This is the most reliable way to manage WordPress content programmatically.
Ready to Try These Tools?
Install mumcp and start managing WordPress with AI in under 5 minutes.