Mguelon/mcpwp
If you are the rightful owner of mcpwp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
MCPWP is a production-ready MCP server designed for WordPress development, optimized for Linux environments.
MCPWP - MCP Server for WordPress Development (Linux Only)
🚀 Production-Ready MCP Server providing intelligent WordPress development context and documentation for Claude AI
✨ Features
MCPWP v1.3.1 is a fully operational MCP (Model Context Protocol) server that provides WordPress development context directly within Claude conversations. Built with advanced caching and optimized for Linux production use.
🛠️ Available Tools (6/6 Production Ready)
resolve-wp-component✅ - Search for functions, hooks, plugins, and themesget-wp-docs✅ - Detailed component documentationget-wp-function✅ - Specific WordPress function informationget-wp-hook✅ - Hook documentation (actions/filters)get-plugin-pattern✅ - Plugin development patternsget-theme-pattern✅ - Theme development patterns
🚀 Advanced Caching System
- Multi-layer cache with LRU memory cache and persistent storage
- 95%+ performance improvement for repeated requests
- Intelligent TTL: 48h for patterns, 2h for functions
- Priority-based caching with automatic eviction
🐧 Linux Installation
Prerequisites
# Ubuntu/Debian
sudo apt update && sudo apt install nodejs npm git
# Fedora
sudo dnf install nodejs npm git
# Arch Linux
sudo pacman -S nodejs npm git
Quick Installation
# Clone the repository
git clone https://github.com/Mguelon/mcpwp.git
cd mcpwp
# Run automatic installation
chmod +x install.sh
./install.sh
Manual Installation
# Install dependencies
npm install
# Build the project
npm run build
# Verify installation
./verify-installation.js
Claude Desktop Configuration (Linux)
Config file location: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"mcpwp": {
"command": "node",
"args": [
"/full/path/to/mcpwp/dist/main.js",
"--cache"
],
"env": {
"MCPWP_WP_VERSION": "6.6"
}
}
}
}
Important: Replace /full/path/to/mcpwp/ with your actual installation path.
💻 Usage Examples
Once configured, you can ask Claude questions like:
"How do I use wp_enqueue_script with dependencies?"
"Show me a plugin pattern for creating a modular structure"
"Find hooks related to user authentication"
"Explain the wp_enqueue_scripts hook"
🔧 Linux Troubleshooting
Node.js Issues
# Check Node.js version (must be 18+)
node --version
# If too old, update:
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
Permission Issues
# Make scripts executable
chmod +x install.sh verify-installation.js
# Or run with node directly
node verify-installation.js
Build Issues
# Clean rebuild
rm -rf node_modules dist package-lock.json
npm install
npm run build
Claude Desktop Config
# Create config directory if missing
mkdir -p ~/.config/Claude
# Copy example config
cp claude-desktop-config-example.json ~/.config/Claude/claude_desktop_config.json
# Edit with your actual path
nano ~/.config/Claude/claude_desktop_config.json
📁 Project Structure
MCPWP v1.3.1 (Linux)
├── src/
│ ├── main.ts # CLI entry point
│ ├── server/ # MCP server core
│ ├── cache/ # Cache management
│ ├── tools/ # 6 MCP tools
│ ├── data/ # WordPress functions DB
│ └── utils/ # Utilities
├── dist/ # Built files (after npm run build)
├── install.sh # Linux installation script
├── verify-installation.js # Verification tool
└── README.md # This file
⚙️ CLI Options
# Basic usage
node dist/main.js
# With caching (recommended)
node dist/main.js --cache
# Help
node dist/main.js --help
# Version
node dist/main.js --version
🧪 Testing
# Verify installation
./verify-installation.js
# Test functionality
node dist/main.js --help
# Check cache system
node dist/main.js --cache --help
📊 Performance
- Cache Hit Ratio: 95%+ for repeated queries
- Response Time: Sub-second for cached results
- Memory Usage: Optimized for Linux environments
- Disk Storage:
/tmp/mcpwp-cache/for persistent cache
🌟 Why MCPWP?
For WordPress Developers on Linux
- 3-5x faster development vs traditional documentation lookup
- Reduced errors from incorrect or outdated documentation
- Seamless Claude integration in Linux development environments
- Local caching for offline-capable development
Linux-Optimized Features
- ✅ Native Linux paths and permissions
- ✅ Systemd integration ready
- ✅ Shell script installation
- ✅ POSIX compliance throughout
🔍 System Requirements
| Requirement | Minimum | Recommended |
|---|---|---|
| Linux Distribution | Ubuntu 20.04+ / Fedora 35+ | Latest LTS |
| Node.js | 18.0+ | 20.0+ |
| RAM | 512MB | 1GB+ |
| Disk Space | 100MB | 500MB |
| Claude Desktop | Latest | Latest |
🚀 Production Ready
MCPWP v1.3.1 has been successfully deployed and tested on:
- ✅ Fedora Linux (Primary development environment)
- ✅ Ubuntu 22.04 LTS
- ✅ Debian 12
- ✅ Arch Linux (latest)
- ✅ CentOS Stream 9
📚 Available WordPress Data
- 600+ WordPress functions with complete documentation
- 40+ hooks (actions and filters) with examples
- 15+ plugin patterns for professional development
- 6 theme patterns for modern WordPress themes
- Complete parameter documentation and usage examples
🤝 Contributing
We welcome contributions! This project focuses on Linux environments.
📄 License
MIT License - see file for details.
🙏 Acknowledgments
- Built with Model Context Protocol SDK
- WordPress documentation and community
- Claude AI for conversational context integration
- Linux development community
Made with ❤️ for Linux WordPress developers
📊 Project Status
- ✅ Phase 1: Core MCP server with real data (100%)
- ✅ Phase 2: Advanced caching and optimization (100%)
- ✅ Linux Optimization: Production ready for Linux environments (100%)
Current Version: v1.3.1 | Status: Production Ready (Linux) | Test Coverage: 95%+
Platform Support: Linux Only (Ubuntu, Fedora, Debian, Arch, CentOS)