whatisgithub

What is wp-blockmarkup-mcp-server?

zaherg/wp-blockmarkup-mcp-server — explained in plain English

Analysis updated 2026-05-18

1JavaScriptAudience · developerLicenseSetup · moderate

In one sentence

An MCP server that indexes real WordPress Gutenberg block source code so AI assistants generate valid block markup instead of guessing.

Mindmap

mindmap
  root((wp-blockmarkup MCP))
    What it does
      Indexes real block source
      Validates Gutenberg markup
      Serves via MCP protocol
    Tech stack
      Node.js
      SQLite
      Docker
    Use cases
      AI assisted WordPress dev
      Block schema lookup
      Team hosted MCP server
    Audience
      WordPress developers
      Plugin teams

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Let an AI coding assistant look up real Gutenberg block schemas before generating markup.

USE CASE 2

Index WordPress core, WooCommerce, or a custom plugin's blocks for search and validation.

USE CASE 3

Validate existing block markup against real attribute and nesting rules.

USE CASE 4

Host a shared, authenticated MCP instance so a whole team can query indexed blocks.

What is it built with?

JavaScriptNode.jsMCPSQLiteDocker

How does it compare?

zaherg/wp-blockmarkup-mcp-server0xmukesh/docusaurus-tutorial1tsmejp/palworld-docker-wine
Stars111
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-12-27
MaintenanceDormant
Setup difficultymoderateeasymoderate
Complexity2/54/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

So what is it?

wp-blockmarkup-mcp-server is a tool that helps AI coding assistants generate correct WordPress content blocks, known as Gutenberg blocks, instead of guessing at them. It is an experimental fork and refactor of an earlier project, and its author is upfront that it is early stage and that anything generated with it should be checked in a real WordPress environment before being trusted in production. The core problem it solves is that AI assistants often try to write Gutenberg block markup from memory, which can be wrong or outdated. They might invent attributes that do not exist, use incorrect styling conventions, ignore how blocks are supposed to nest inside each other, or produce plain static HTML for blocks that are actually meant to be dynamic. WordPress then rejects this content as invalid. This project fixes that by actually indexing the real source code of WordPress itself, WooCommerce, or any other block based plugin, so an AI assistant can look up how a block is truly defined, including its attributes, supported features, variations, and how it should be saved, before generating any markup. It works using the Model Context Protocol, or MCP, which lets compatible AI tools like Claude Code connect to it as a server. You run it locally by cloning the code and using Node.js, and you can add different sources to index, such as a public GitHub repository, a private one using an access token, or a local plugin folder you are actively developing. Once a source is indexed, you can search for blocks, look up a block's structure, and validate markup you already have against real rules, all from a simple command line interface. Compared to the original project it is based on, this fork adds a way to run it as a shared online service using Docker, with authentication, safety checks around which GitHub repositories and paths it is allowed to touch, and persistent storage using SQLite, so a whole team can use one hosted instance instead of everyone running their own local copy. This tool is aimed at developers building WordPress sites or plugins with the help of AI coding assistants, especially teams who want their AI tools to generate Gutenberg blocks that actually work the first time.

Copy-paste prompts

Prompt 1
Help me set up this MCP server and connect it to my Claude Code configuration.
Prompt 2
Show me how to index my own custom WordPress plugin's blocks with this tool.
Prompt 3
Explain how to validate a piece of Gutenberg markup using the CLI.
Prompt 4
Help me deploy this server with Docker Compose and set up authentication for my team.

Frequently asked questions

What is wp-blockmarkup-mcp-server?

An MCP server that indexes real WordPress Gutenberg block source code so AI assistants generate valid block markup instead of guessing.

What language is wp-blockmarkup-mcp-server written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, MCP.

How hard is wp-blockmarkup-mcp-server to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is wp-blockmarkup-mcp-server for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.