WordPress development tools, code generation, and framework guides.
BOIM WordPress Stack MCP
A Model Context Protocol (MCP) server that acts as a coding standards and framework guide for LLM connectors (like Claude Desktop or Cursor). It provides WordPress development knowledge, code generation tools, and best practices focused on Gutenberg blocks, GeneratePress theme, GenerateBlocks plugin, and WPCodebox code snippet formatting.
Overview
This MCP server does NOT directly access WordPress websites. Instead, it provides:
- Code Generation Tools: Generate WordPress code following best practices
- Coding Standards: WordPress coding standards validation and formatting
- Framework Guides: Knowledge base for Gutenberg, GeneratePress, GenerateBlocks, and WPCodebox
- Best Practices: Security, performance, and compatibility guidelines
Features
Code Generation
- Gutenberg block code (block.json, PHP registration, React components)
- GenerateBlocks-compatible block code
- WordPress functions, hooks, shortcodes, and REST API endpoints
- WPCodebox-formatted code snippets
Coding Standards
- PHP coding standards validation
- JavaScript coding standards validation
- CSS coding standards validation
- Security best practices (sanitization, escaping, nonces)
- Performance optimization guidelines
Knowledge Base
- WordPress coding standards reference
- Gutenberg block development patterns
- GenerateBlocks development guide
- WPCodebox snippet format specifications
- GeneratePress theme best practices
Quick Start: Connecting the MCP Server
Prerequisites
- Node.js 18.0.0 or higher
- npm or yarn
- Claude Desktop or Cursor installed
Follow these simple steps to connect this MCP server to Claude Desktop or Cursor.
Step 1: Install and Build
Clone the repository:
git clone https://github.com/JTruax/BOIM-WP-MCP.git cd BOIM-WP-MCPInstall dependencies:
npm installBuild the project:
npm run buildVerify the build succeeded: You should see a
dist/directory created withindex.jsinside it. If the build fails, check that all dependencies installed correctly.Note the full path to the
dist/index.jsfile. You'll need this in the next step.To get the full path:
- macOS/Linux: Run
pwdin the terminal aftercd BOIM-WP-MCP, then append/dist/index.js - Windows: Run
cdin Command Prompt aftercd BOIM-WP-MCP, then append\dist\index.js
Example paths:
- macOS/Linux:
/Users/yourname/BOIM-WP-MCP/dist/index.js - Windows:
C:\\Users\\yourname\\BOIM-WP-MCP\\dist\\index.js(use double backslashes\\in JSON, or forward slashes/)
- macOS/Linux: Run
Step 2: Configure Claude Desktop
Locate your Claude Desktop config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.config/Claude/claude_desktop_config.json
- macOS:
Open the config file in a text editor. If it doesn't exist, create it.
Add the MCP server configuration:
If the file is empty or doesn't have
mcpServers, use this:{ "mcpServers": { "wordpress-gutenberg": { "command": "node", "args": ["/full/path/to/BOIM-WP-MCP/dist/index.js"] } } }If the file already has
mcpServers, add to the existing object:{ "mcpServers": { "existing-server": { ... }, "wordpress-gutenberg": { "command": "node", "args": ["/full/path/to/BOIM-WP-MCP/dist/index.js"] } } }Replace
/full/path/to/BOIM-WP-MCP/dist/index.jswith your actual path from Step 1.Save the file and restart Claude Desktop.
Step 3: Configure Cursor
Open Cursor Settings:
- Press
Cmd/Ctrl + Shift + Pto open the command palette - Type "Preferences: Open User Settings (JSON)" and select it
- Or go to Settings → Extensions → MCP (if available)
- Press
Add the MCP server configuration:
Add this to your Cursor settings JSON:
{ "mcp.servers": { "wordpress-gutenberg": { "command": "node", "args": ["/full/path/to/BOIM-WP-MCP/dist/index.js"] } } }Replace
/full/path/to/BOIM-WP-MCP/dist/index.jswith your actual path from Step 1.Save the settings and restart Cursor.
Step 4: Verify Connection
Restart your application (Claude Desktop or Cursor).
Check for the MCP server:
- In Claude Desktop: The server should appear in the MCP servers list
- In Cursor: Check the MCP status indicator
Test a tool:
- Try asking: "Generate a Gutenberg block called 'custom-card'"
- Or: "Format this PHP code for WPCodebox: [your code]"
Troubleshooting
MCP server not appearing?
- Verify the path to
dist/index.jsis correct and absolute (not relative) - Make sure you ra
Tools (2)
generate-gutenberg-blockGenerate Gutenberg block code including block.json, PHP registration, and React components.format-wpcodebox-snippetFormat code snippets specifically for WPCodebox specifications.Configuration
{
"mcpServers": {
"wordpress-gutenberg": {
"command": "node",
"args": ["/full/path/to/BOIM-WP-MCP/dist/index.js"]
}
}
}