WordPress Code Review MCP Server
Offers validation and security checking for PHP code, with the ability to detect issues like prefix violations and apply custom coding standards to PHP files.
Provides code review tools for WordPress development, including fetching coding guidelines, validating code against WordPress standards, and checking for security vulnerabilities in WordPress code.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@WordPress Code Review MCP Server validate this PHP function against our security rules"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WordPress Code Review MCP Server v2.0
A lightweight, configurable MCP (Model Context Protocol) server for development teams. Fetches coding guidelines, security rules, and validation patterns from external sources or URL where you have hosted your custom guidelines.
π Key Features
β No hardcoded rules - Fetch guidelines from any URL
β Dynamic configuration - Specify source via environment variables
β Custom validation - Add your own coding standards and security rules
β Lightweight - External guidelines, minimal codebase
Related MCP server: mcp-rules-server
π Available Tools
get_guidelines- Fetch development guidelines by categoryvalidate_code- Validate code against configured standardssecurity_check- Security vulnerability scanning
π Prerequisites
Node.js installed (v18+)
π Installation & Setup
Step 1: Clone Repository
git clone https://github.com/miniOrangeDev/wp-code-review-mcp-server.git
cd wp-code-review-mcpStep 2: Install Dependencies & Build
npm install
npm run buildStep 3: Host Your Guidelines
Host the files from sample-guidelines/html/ on your web server and configure your base URL, for example: https://yourdomain.com/guidelines/
The MCP server will fetch:
https://yourdomain.com/guidelines/guidelines.mdhttps://yourdomain.com/guidelines/validation-rules.mdhttps://yourdomain.com/guidelines/security-rules.md
Step 4: Configure Cursor
Add to your Cursor settings (Ctrl+Shift+P β "Preferences: Open User Settings (JSON)"):
{
"mcpServers": {
"wp-code-review-mcp": {
"command": "node",
"args": ["/path/to/wp-code-review-mcp-server/build/index.js"],
"env": {
"GUIDELINES_URL": "https://yourdomain.com/guidelines"
}
}
}
}Replace /path/to/wp-code-review-mcp-server with your actual path (e.g., /home/wp-code-review-mcp-server)
Why the path? Unlike published npm packages, this is a local MCP server. The path tells Cursor exactly where to find your built server file.
If you don't see MCP server connected, restart Cursor and the MCP server will be available.
Guidelines Format
Your guidelines server should serve these files:
/guidelines.md- Main development guidelines/validation-rules.md- Code validation rules/security-rules.md- Security scanning rules
Step 5: Test in Cursor
Open any PHP file in Cursor
Ask the AI: "Check this code for security issues:
class mo_Test {}"The AI should detect the short prefix violation!
π§ Troubleshooting
Having configuration issues? See the Configuration Troubleshooting Guide for common mistakes and solutions.
π Customizing Guidelines
Edit the files in sample-guidelines/html/ to add your own:
Coding standards
Validation rules
Security patterns
Company-specific guidelines
The MCP server automatically uses updated rules without restart.
π License
MIT License
Built for Dynamic, Maintainable Development Guidelines π‘οΈ
Available Tools
3 toolsget_guidelinesB
Get development guidelines from the configured source
Inputs: category.
security_checkB
Perform security analysis on code using configured security rules
Inputs: code (required).
validate_codeB
Validate code against configured coding standards
Inputs: code (required), language (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 3 tools
Each tool targets a distinct aspect of code review: fetching guidelines, performing security analysis, and validating coding standards. There is no overlap in their purposes, making them easily distinguishable for an agent.
All tool names follow a consistent verb_noun pattern in snake_case (get_guidelines, security_check, validate_code). The naming is clear and predictable, aiding in tool selection.
Three tools is appropriate for a simple code review server, covering essential tasks without overwhelming the user. The count is well-scoped for the domain.
The tools cover core code review operations: retrieving guidelines, security checking, and validation. Minor gaps exist (e.g., no tool for submitting code for full review), but the surface is sufficient for basic automation.
Related MCP Connectors
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
Security audits for WordPress plugins and themes β 62 verification layers, fix plans and SBOMs.
Scan, fix and justify your application code until it is approved to ship.
The OpenZeppelin Solidity Contracts MCP server integrates OpenZeppelin's security and style rules into AI-driven development workflows, enabling AI assistants to generate safe, correct, and production-ready smart contracts. It automatically validates generated code against OpenZeppelin standards (including imports, modifiers, naming conventions, and security checks) and supports various contract types including ERC-20, ERC-721, ERC-1155, Stablecoins, RWA, Governor, and Account contracts through prompt-driven workflows.
Related MCP Servers
- AlicenseAqualityDmaintenanceA server providing programming guidelines and coding standards for multiple languages, enabling access and search of best practices for C#, Go, JavaScript, Python, and TypeScript.34 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides code validation rules and analysis for various stacks/frameworks, enabling automated code reviews and reporting directly from VS Code and other editors.-
- FlicenseNot gradedqualityDmaintenanceAutomatically enforces team coding standards in AI-assisted development by providing an MCP server that AI assistants can query for language-specific standards, style guides, and best practices.-
- AlicenseNot gradedqualityDmaintenanceA code quality MCP server with 22 tools for deterministic linting, formatting, security scanning, and AI-assisted improvements, designed to reduce cloud LLM costs and enforce best practices.1MIT