astrocyte/PSMCP
If you are the rightful owner of PSMCP 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.
A Model Context Protocol (MCP) server designed for managing WordPress sites with specialized tools for SEO optimization and site administration.
Mercado - SST.NYC Comprehensive Admin System
A complete WordPress management system combining MCP server tools, LearnDash LMS automation, WooCommerce integration, and affiliate program management for SST.NYC.
Features
- wp-cli Integration: Execute WordPress CLI commands remotely via SSH
- REST API Access: Query WordPress data in real-time
- SEO Tools: Analyze pages, audit metadata, validate schema
- Elementor Support: Parse and analyze Elementor page builder content
- LearnDash LMS: Course, lesson, quiz, and student management
- WooCommerce: Product, order, and sales management
- Mailchimp: Email marketing automation
- Affiliate Program: Complete management system with Zapier automation
- Multi-Environment: Support for production, staging, and local environments
Prerequisites
- Python 3.10+
- SSH access to WordPress server with wp-cli installed
- WordPress Application Password for REST API access
Installation
# Install dependencies
pip install -e .
# Copy environment configuration
cp .env.example .env
# Edit .env with your WordPress credentials
Configuration
Edit .env with your WordPress site details:
WP_SITE_URL: Your WordPress site URLWP_SSH_HOST: SSH hostname (from Hostinger)WP_SSH_USER: SSH usernameWP_SSH_KEY_PATH: Path to SSH private keyWP_API_USER: WordPress admin usernameWP_API_PASSWORD: Application Password (generated in WordPress)
Generate WordPress Application Password
- Log into WordPress admin
- Go to Users → Profile
- Scroll to "Application Passwords"
- Create new password with name "MCP Server"
- Copy the generated password to
.env
Usage
Run the MCP server:
python src/server.py
The server will be available via stdio for MCP clients (Claude Desktop, etc.)
System Status
✅ All modules tested and working ✅ 33 MCP tools ready ✅ SSH support with custom port (65002) ✅ Password & SSH key authentication ✅ Complete documentation (12 guides)
See DEPLOYMENT_GUIDE.md to get started!
Available Tools (33 Total!)
Site Management (3 tools)
wp_get_info: Get WordPress version, theme, plugin infowp_plugin_list: List all installed pluginswp_theme_list: List available themes
Content Operations (3 tools)
wp_post_list: Query posts/pages with filterswp_get_post: Get full post content and metadatawp_search: Search across site content
SEO Analysis (2 tools)
seo_analyze_post: Complete SEO analysis of a pageelementor_extract_content: Parse Elementor JSON for SEO
Image Optimization (3 tools)
image_analyze: Analyze a single WordPress media image for optimizationimage_optimize: Convert to WebP, compress, and resize imagesimage_audit_site: Audit all site images for SEO and performance issues
LearnDash LMS (9 tools)
ld_create_course: Create new coursesld_update_course: Update existing coursesld_list_courses: List all coursesld_create_lesson: Add lessons to coursesld_update_lesson: Update lesson content/orderld_create_quiz: Create quizzesld_add_quiz_question: Add quiz questionsld_enroll_user: Enroll students in coursesld_create_group: Create student groups
WooCommerce (6 tools)
wc_create_product: Create productswc_update_product: Update product details/pricingwc_list_products: List all productswc_list_orders: View orders and saleswc_create_coupon: Create discount couponswc_get_sales_report: Get sales analytics
Mailchimp Email Marketing (6 tools)
mc_list_audiences: List all email listsmc_add_subscriber: Add/update subscribersmc_create_campaign: Create email campaignsmc_send_campaign: Send campaignsmc_get_campaign_report: Campaign analyticsmc_tag_course_student: Auto-tag course enrollments
Monitoring (1 tool)
wp_check_updates: Check for available updates
Affiliate Management Tools
Located in tools/affiliate-management/:
- Google Sheets Integration: Automated affiliate signup tracking
- CSV Template: Quick import template for Google Sheets
- Python Scripts: Automated sheet creation with OAuth
- Zapier Workflows: WPForms → Google Sheets → Email automation
See tools/affiliate-management/AFFILIATE_SHEET_SETUP.md for setup instructions.
Documentation
- AFFILIATE_PROGRAM_DESIGN.md - Complete affiliate program architecture
- ZAPIER_SETUP_INSTRUCTIONS.md - Step-by-step Zapier workflow setup
- ZAPIER_MCP_SETUP.md - Zapier MCP integration guide
- LEARNDASH_BEST_PRACTICES.md - LMS course design guidelines
- DEPLOYMENT_GUIDE.md - System deployment instructions
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/
# Lint
ruff check src/
Architecture
This MCP server uses a hybrid approach:
- wp-cli via SSH: For reliable WordPress operations maintained by core team
- REST API: For real-time data queries and content access
- Custom SEO tools: Built on top of wp-cli and REST API data
This keeps maintenance low while providing powerful WordPress management capabilities.