wp_get_block is one of 162 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_get_block
Read-onlyDescription
Raw block markup tells the real story — and Easy MCP AI surfaces it directly in your AI conversation. Fetch a single synced pattern by ID to inspect its full block structure before deciding what to change, copy a pattern as a starting point for a new one, or compare markup across two patterns side by side. Easy MCP AI routes the request from your AI client straight to WordPress with no intermediate proxy or Node.js server.
See it in action
wp_get_block {
"block_id": 101,
"title": "Newsletter CTA",
"status": "publish",
"content": "<!-- wp:heading --><h2>Subscribe to our newsletter</h2><!-- /wp:heading --><!-- wp:paragraph --><p>Get the latest posts in your inbox.</p><!-- /wp:paragraph -->"
} Here are the full details and content for that reusable block.
Example Use Cases & Sample Prompts
- Reviewing a block’s content
- Prompt: “Show me the full content of the ‘Homepage CTA’ reusable block.”
- Pre-edit review
- Prompt: “Get the current markup of block ID 42 so I can see what needs to change.”
- Copying a pattern
- Prompt: “Retrieve the ‘Newsletter Signup’ block — I want to base a new pattern on it.”
- Debugging a block
- Prompt: “Show me the raw block markup for the ‘Testimonials’ synced pattern.”
- Content audit
- Prompt: “Get the ‘Footer CTA’ block content so I can check it matches our latest branding.”
Frequently Asked Questions
What does wp_get_block do?
Raw block markup tells the real story — and Easy MCP AI surfaces it directly in your AI conversation. Fetch a single synced pattern by ID to inspect its full block structure before deciding what to change, copy a pattern as a starting point for a new one, or compare markup across two patterns side by side. Easy MCP AI routes the request from your AI client straight to WordPress with no intermediate proxy or Node.js server.
How do I use wp_get_block with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Show me the full content of my 'Homepage CTA' reusable block."
Do I need Easy MCP AI to use wp_get_block?
Yes. wp_get_block is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.
Related Tools
BlocksCreate a new reusable block (synced pattern) with a title and block content
Delete a reusable block (trash or force-delete)
List all reusable blocks (synced patterns) with filtering and pagination
Update an existing reusable block's title or content — syncs everywhere it's embedded
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_get_block and all 74 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.