Skip to main content
Glama
Docker-Deployment-Guide.mdโ€ข8.94 kB
# WordPress MCP Server - Complete Docker Deployment ## ๐ŸŽฏ Overview This deployment uses the professional Bedrock WordPress distribution with the WordPress MCP Server, providing a modern, secure, and scalable blogging platform with AI integration. ## ๐Ÿ“ Complete File Structure ``` wordpress-mcp-server/ โ”œโ”€โ”€ ๐Ÿ“„ Dockerfile # MCP Server container build โ”œโ”€โ”€ ๐Ÿ“„ docker-compose.yml # Complete service orchestration โ”œโ”€โ”€ ๐Ÿ“„ .env.example # Environment template โ”œโ”€โ”€ ๐Ÿ“„ .dockerignore # Docker build optimization โ”œโ”€โ”€ ๐Ÿ“„ requirements.txt # Python dependencies โ”œโ”€โ”€ ๐Ÿ“ scripts/ โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ setup.sh # Initial setup automation โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ start.sh # Service startup โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ stop.sh # Service shutdown โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ status.sh # Health monitoring โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ logs.sh # Log viewing โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ backup.sh # Data backup โ”‚ โ”œโ”€โ”€ ๐Ÿ“„ reset.sh # Full reset โ”‚ โ””โ”€โ”€ ๐Ÿ“„ test.sh # Connectivity testing โ”œโ”€โ”€ ๐Ÿ“ src/ # MCP Server source code โ”œโ”€โ”€ ๐Ÿ“ nginx/ # Reverse proxy config (optional) โ”œโ”€โ”€ ๐Ÿ“ logs/ # Application logs โ””โ”€โ”€ ๐Ÿ“ backups/ # Automated backups ``` ## ๐Ÿš€ Services Architecture ### Service Stack | Service | Image | Port | Purpose | | ----------------------------- | ----------------------------------------- | -------- | --------------------------- | | **bedrock-db** | `ghcr.io/mister-weeden/bedrock-db:v0.0.3` | Internal | MySQL database | | **bedrock** | `ghcr.io/mister-weeden/bedrock:v0.0.3` | 8888 | WordPress (Bedrock) | | **wordpress-mcp-server** | Built locally | stdio | MCP Server (Claude Desktop) | | **wordpress-mcp-server-http** | Built locally | 9001 | MCP Server (HTTP mode) | | **nginx** | `nginx:alpine` | 80/443 | Reverse proxy (production) | ### Network Configuration - **Custom network**: `wordpress-mcp-network` (172.20.0.0/16) - **Port separation**: WordPress (8888), MCP Server (9001+) - **Internal communication**: Services communicate via Docker network - **External access**: Only necessary ports exposed ## ๐Ÿ”ง Deployment Modes ### 1. Default Mode (Claude Desktop Integration) ```bash ./setup.sh ./start.sh default ``` **Services**: Database + WordPress + MCP Server (stdio) **Use case**: Local development with Claude Desktop ### 2. HTTP Mode (Remote MCP Access) ```bash ./setup.sh ./start.sh http ``` **Services**: Default + MCP Server HTTP endpoint **Use case**: Remote MCP server access, API testing ### 3. Production Mode (Full Stack) ```bash ./setup.sh ./start.sh production ``` **Services**: All + Nginx reverse proxy **Use case**: Production deployment with SSL termination ## ๐Ÿ“‹ Quick Start Guide ### Step 1: Initial Setup ```bash # Clone repository git clone https://github.com/your-username/wordpress-mcp-server.git cd wordpress-mcp-server # Run automated setup ./scripts/setup.sh # Review and customize environment nano .env ``` ### Step 2: Start Services ```bash # Start default stack ./scripts/start.sh # Check status ./scripts/status.sh # View logs ./scripts/logs.sh ``` ### Step 3: Configure WordPress 1. Visit **http://localhost:8888** 2. Complete WordPress installation 3. Login with credentials from `.env` 4. Enable REST API (usually enabled by default) ### Step 4: Configure Claude Desktop ```json { "mcpServers": { "wordpress-blog": { "command": "docker", "args": [ "exec", "wordpress-mcp-server", "wordpress-mcp-server", "--mode", "stdio" ], "env": { "WORDPRESS_URL": "http://localhost:8888", "WORDPRESS_USERNAME": "admin", "WORDPRESS_PASSWORD": "admin123" } } } } ``` ### Step 5: Test Integration ```bash # Test MCP connectivity ./scripts/test.sh # Should output: โœ… All tests passed! ``` ## ๐Ÿ”’ Security Features ### Built-in Security - โœ… **Non-root containers**: All services run as non-root users - โœ… **Network isolation**: Custom Docker network with controlled access - โœ… **Environment separation**: Sensitive data in environment variables - โœ… **Health checks**: Automated service monitoring - โœ… **Secure defaults**: Strong passwords and unique security keys ### Production Security - ๐Ÿ” **SSL/TLS**: Nginx with SSL certificate support - ๐Ÿ›ก๏ธ **Firewall**: Only necessary ports exposed - ๐Ÿ”‘ **Secrets management**: External secret stores supported - ๐Ÿ“Š **Monitoring**: Health checks and logging - ๐Ÿ’พ **Backups**: Automated backup system ## ๐Ÿ“Š Monitoring and Maintenance ### Health Monitoring ```bash # Service status ./scripts/status.sh # Real-time logs ./scripts/logs.sh [service] # Resource usage docker stats ``` ### Backup System ```bash # Create backup ./scripts/backup.sh # Automatic backups (via cron) 0 2 * * * /path/to/wordpress-mcp-server/scripts/backup.sh ``` ### Updates ```bash # Update Docker images docker-compose pull # Restart with new images ./scripts/stop.sh ./scripts/start.sh # Update MCP server code git pull docker-compose build wordpress-mcp-server ./scripts/start.sh ``` ## ๐ŸŽ“ Perfect for Academic Use ### Thesis Documentation - ๐Ÿ“ **Research progress tracking** with built-in prompts - ๐Ÿงฎ **Algorithm analysis** post templates - ๐Ÿ“Š **Data visualization** support - ๐Ÿ”— **Citation management** integration ready ### Blog Categories - **Thesis Progress** - Weekly/monthly research updates - **Algorithm Analysis** - Technical deep-dives - **Implementation** - Code showcases and tutorials - **Literature Review** - Paper summaries and analysis - **Problem Solving** - Debugging and solution documentation ### AI-Powered Features - ๐Ÿค– **Claude integration** for content creation - ๐Ÿ“š **Academic prompt templates** for structured writing - ๐Ÿ”„ **Automated posting** workflows - ๐Ÿ“ˆ **Content organization** and categorization ## ๐ŸŒ Production Deployment ### Domain Configuration ```bash # Update .env for your domain WP_HOME=https://yourdomain.com WP_SITEURL=https://yourdomain.com/wp # SSL certificates mkdir -p nginx/ssl # Copy SSL certificates to nginx/ssl/ ``` ### Performance Optimization - ๐Ÿš€ **CDN integration** ready - โšก **Caching** with Redis (easily added) - ๐Ÿ“ˆ **Auto-scaling** with Docker Swarm/Kubernetes - ๐Ÿ”„ **Load balancing** with Nginx ### Backup Strategy - ๐Ÿ’พ **Database backups**: Automated MySQL dumps - ๐Ÿ“ **File backups**: WordPress uploads and themes - โ˜๏ธ **Cloud storage**: S3/Google Cloud integration ready - ๐Ÿ”„ **Restore procedures**: Documented and tested ## ๐Ÿ›Ÿ Troubleshooting ### Common Issues **WordPress not accessible**: ```bash ./scripts/logs.sh wordpress docker-compose exec bedrock wp core verify-checksums ``` **MCP Server connection failed**: ```bash ./scripts/test.sh ./scripts/logs.sh mcp ``` **Database issues**: ```bash ./scripts/logs.sh db docker-compose exec bedrock-db mysql -u root -p ``` **Port conflicts**: ```bash netstat -tulpn | grep :8888 # Change ports in docker-compose.yml if needed ``` ### Recovery Procedures 1. **Soft reset**: `./scripts/stop.sh && ./scripts/start.sh` 2. **Hard reset**: `docker-compose down && docker-compose up -d` 3. **Nuclear reset**: `./scripts/reset.sh` (โš ๏ธ destroys data) ## ๐ŸŽ‰ Benefits ### For Researchers - ๐Ÿ“ **Streamlined documentation** of research progress - ๐Ÿค– **AI-assisted writing** for technical content - ๐Ÿ“Š **Professional presentation** of findings - ๐Ÿ”— **Easy sharing** and collaboration ### For Students - ๐ŸŽ“ **Thesis documentation** from day one - ๐Ÿ“š **Learning reinforcement** through writing - ๐Ÿ’ผ **Portfolio building** for career development - ๐Ÿค **Community engagement** through blogging ### For Developers - โšก **Modern stack** with Bedrock WordPress - ๐Ÿณ **Containerized deployment** for consistency - ๐Ÿ”ง **Easy maintenance** with automation scripts - ๐Ÿ“ˆ **Scalable architecture** for growth ## ๐Ÿš€ Next Steps 1. **Deploy the stack** using the provided scripts 2. **Configure WordPress** for your needs 3. **Integrate with Claude Desktop** for AI assistance 4. **Start documenting** your research journey 5. **Share your insights** with the world! This complete Docker deployment provides a professional, secure, and scalable platform for academic blogging with AI assistance. Perfect for documenting your Master's thesis journey and beyond! ๐ŸŽ“๐Ÿš€

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mister-weeden/wordpress-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server