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-only

Description

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

Claude Desktop — MCP Connection
👤
Show me the full content of my 'Homepage CTA' reusable block.
🤖
Tool called 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

  1. Reviewing a block’s content
    • Prompt: “Show me the full content of the ‘Homepage CTA’ reusable block.”
  2. Pre-edit review
    • Prompt: “Get the current markup of block ID 42 so I can see what needs to change.”
  3. Copying a pattern
    • Prompt: “Retrieve the ‘Newsletter Signup’ block — I want to base a new pattern on it.”
  4. Debugging a block
    • Prompt: “Show me the raw block markup for the ‘Testimonials’ synced pattern.”
  5. 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.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_get_block and all 74 tools instantly.

Download Free Plugin

Step 2

Connect Your AI Client

Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.

View Setup Guides →

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.