Logo vun WordPress

WordPress

Communautéit
RaheesAhmed

A WordPress MCP server that provides 190+ tools for complete WordPress site management through AI.

EditeurRaheesAhmed
Repositorywordpress-mcp-server
SproochTypeScript
Forks
25
Stären
56
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    WordPress stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    56 Stären an 25 Forks aus dem verlinkte Repository.

WordPress MCP Server

Also Available on glama.ai | Cursor.store

npm version License: MIT WordPress


Video Demo : https://youtu.be/6hwMqXQFKN0

💝 Support This Project

If this project helps you, consider supporting its development:

Cryptocurrency Donation

Select CoinSelect NetworkContractDeposit Address
🪙 USDT (TetherUS)🔗 TRX (Tron TRC20)Ending in jLj6tTBJBb7fKyRdhqmWETyZoNP4X98mPk2Jxrt

Your support helps maintain and improve this project! 🙏

WPMCP server gives AI agents complete control over WordPress sites. Connect it to Claude, Cline, or any MCP-compatible AI, and manage WordPress through natural language.

Key Capabilities:

  • ✅ Content Management - Posts, pages, media, users, comments
  • ✅ File System Access - Read and write theme/plugin files
  • ✅ Theme Customization - Create child themes, modify styles, customize block themes
  • ✅ Plugin Control - Activate, deactivate, and modify plugins
  • ✅ Menu Management - Create menus, add items, assign to locations
  • ✅ Custom Content Types - Manage post types and taxonomies
  • ✅ Shortcodes & Cron - Execute shortcodes, schedule tasks
  • ✅ Widget System - Manage sidebars and widgets
  • ✅ Database Operations - Execute queries, manage options, inspect tables
  • ✅ WooCommerce Integration - Products, orders, customers, inventory, reports
  • ✅ Gutenberg Blocks - Block types, patterns, reusable blocks, templates
  • ✅ Advanced SEO - Sitemaps, redirects, schema markup, Open Graph, analysis
  • ✅ Security Monitoring - Site health, updates, integrity checks, debug logs
  • ✅ Performance Optimization - Cache management, database optimization, image processing
  • ✅ Backup & Migration - Full/partial backups, restore, export/import, cloning
  • ✅ User Roles - Custom roles, capabilities, permissions, role management
  • ✅ Complete Security - Multi-layer validation and automatic backups

Quick Start

1. Install

bash
npm i -g wpmcp@3.0.0

2. Configure

Add to your MCP client (Claude Desktop, Cline, etc.):

json
{
  "mcpServers": {
    "wordpress": {
      "command": "npx",
      "args": ["-y", "wpmcp@3.0.0"],
      "env": {
        "WORDPRESS_URL": "https://your-site.com",
        "WORDPRESS_USERNAME": "admin",
        "WORDPRESS_PASSWORD": "your-app-password"
      }
    }
  }
}

3. Install WordPress Plugin (Required)

  1. Install wpmcp-plugin/wpmcp.zip to /wp-content/plugins/wpmcp-plugin/
  2. Activate via WordPress Admin → Plugins → "WordPress MCP Server Plugin"
  3. Ensure you have edit_themes and edit_plugins capabilities

What the plugin enables:

  • File system operations (read, write, delete, copy, move)
  • Shortcode execution
  • Cron job management
  • All advanced WordPress features

See wpmcp-plugin/README.md for detailed setup guide.

4. Use

"Create a child theme called 'My Custom Theme'"
"Activate Akismet plugin"
"Read the style.css file from my theme"
"Create a blog post about WordPress and publish it"

Available Tools (130+)

👉 See WPMCP_TOOLS.MD for complete detailed list of all 130 tools.

CategoryToolsWhat You Can Do
Posts (15)create, update, delete, search, schedule, publish, duplicate, bulkManage all blog content
Pages (4)create, update, delete, hierarchyBuild site structure
Media (5)upload, update, delete, featured imagesManage images and files
Users (4)create, update, delete, rolesUser management
Categories (4)create, update, delete, hierarchyOrganize content
Tags (2)create, getTag content
Comments (4)create, update, delete, moderateManage discussions
Settings (4)get, update site settingsConfigure WordPress
SEO (2)meta description, focus keywordsOptimize for search
File System (8)read, write, delete, copy, moveEdit any file
Theme Manager (13)activate, child themes, theme.json, templatesComplete theme control
Plugin Manager (10)activate, deactivate, read/write filesFull plugin control
Menu Manager (8)create, add items, assign locationsFull navigation control
Custom Types (7)get post types, taxonomies, manage termsAdvanced content types
Shortcodes (3)list, execute, check existenceShortcode system
Cron Jobs (5)list, schedule, unschedule, run manuallyTask scheduling
Widgets (6)get sidebars, widgets, types, updateWidget management
Database (6)execute queries, manage options, list tablesDatabase operations
WooCommerce (15)products, orders, customers, inventory, couponsE-commerce management
Gutenberg Blocks (12)block types, patterns, reusable blocks, templatesModern block editor
Security (7)site health, updates, integrity, debug logsSecurity monitoring
Performance (8)cache, optimization, cleanup, image processingPerformance tuning

What You Can Do

Content Management

"Create a blog post about AI and publish it"
"Upload an image and set it as featured image for post 5"
"Get all draft posts"
"Create a new page called 'About Us'"

Theme Customization

"Create a child theme of Twenty Twenty-Five"
"Read my theme's functions.php file"
"Add custom CSS to make headers blue"
"Get the theme.json configuration"
"List all files in my theme"

Menu Management Examples

typescript
// Create menu
{
  "name": "Main Navigation",
  "description": "Primary site menu"
}

// Add menu item
{
  "title": "Home",
  "url": "https://yoursite.com",
  "menus": 3
}

// Get menu locations
// No parameters needed

// Assign menu to location
{
  "location": "primary",
  "menuId": 3
}

Plugin Management

"Show me all installed plugins"
"Activate the Contact Form 7 plugin"
"Read the main WooCommerce plugin file"
"Deactivate Hello Dolly"
"Check if Yoast SEO is installed"

Menu Management

"Create a new menu called 'Main Navigation'"
"Add a Home link to the menu"
"Get all registered menu locations"
"Assign the Main Navigation menu to primary location"
"Show me all menu items in the Main menu"

Custom Post Types & Taxonomies

"Show me all registered post types"
"Get details for the 'page' post type"
"Get all taxonomies"
"Show me all categories"
"Create a new category called 'Technology'"

Shortcodes

"List all registered shortcodes"
"Execute [gallery ids='1,2,3']"
"Check if 'contact-form' shortcode exists"

Cron Jobs & Scheduled Tasks

"Show me all scheduled cron jobs"
"Schedule a daily backup task"
"Run WordPress cron manually"
"Get available cron schedules"

Widgets

"Get all widget areas"
"Show me all available widget types"
"Get widgets in the sidebar"
"List inactive widgets"

File Operations

"Read style.css from my theme"
"Create a new custom.css file in my theme"
"Copy functions.php to functions-backup.php"
"Delete old-template.php with backup"

Security Features

All operations are secure:

  • ✅ Only allowed directories (themes, plugins, uploads)
  • ✅ Only safe file extensions (.php, .css, .js, etc.)
  • ✅ Malware pattern detection
  • ✅ PHP syntax validation
  • ✅ Automatic backups before changes
  • ✅ WordPress permission system
  • ✅ File size limits (10MB)

WordPress Authentication

Self-Hosted WordPress:

  1. Use your WordPress admin username and password
  2. Basic Authentication is built into the plugin

WordPress.com:

  1. Requires Business plan or higher
  2. Generate Application Password in Settings → Security

Project Structure

src/tools/
├── posts.ts          # 15 post management tools
├── pages.ts          # 4 page tools
├── media.ts          # 5 media tools
├── filesystem.ts     # 8 file system tools
├── themes.ts         # 13 theme management tools
├── plugins.ts        # 10 plugin management tools
├── menus.ts          # 8 menu management tools
└── all-features.ts   # Users, categories, tags, comments, settings, SEO

filesystem-plugin/
└── wpmcp-filesystem.php  # Required for file operations

Development

bash
# Clone repository
git clone https://github.com/RaheesAhmed/wordpress-mcp-server.git
cd wordpress-mcp-server

# Install dependencies
npm install

# Build
npm run build

# Run
npm start

Testing

All features tested on live WordPress:

  • ✅ 21/21 tests passed
  • ✅ File operations working
  • ✅ Theme management verified
  • ✅ Plugin control confirmed
  • ✅ Security validated

API Examples

Create Post

typescript
{
  "title": "My Post",
  "content": "<p>Content here</p>",
  "status": "publish"
}

Create Child Theme

typescript
{
  "parentTheme": "twentytwentyfive",
  "childName": "My Custom Theme"
}

Activate Plugin

typescript
{
  "plugin": "akismet/akismet"
}

Read Theme File

typescript
{
  "theme": "mytheme",
  "filePath": "functions.php"
}

Write File

typescript
{
  "path": "wp-content/themes/mytheme/custom.css",
  "content": "/* Custom styles */",
  "createBackup": true
}

Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/name)
  3. Commit changes (git commit -m 'Add feature')
  4. Push to branch (git push origin feature/name)
  5. Open Pull Request

License

MIT License - see LICENSE


💝 Support This Project

If you find this project valuable, consider supporting its continued development:

Cryptocurrency Donation

CoinNetworkContract AddressDeposit Address
🪙 USDT (TetherUS)🔗 TRX (Tron TRC20)Ending in jLj6tTBJBb7fKyRdhqmWETyZoNP4X98mPk2Jxrt

Copy Address:

TBJBb7fKyRdhqmWETyZoNP4X98mPk2Jxrt

Your contributions help keep this project active and growing! Thank you for your support! 🙏


Built for AI-powered WordPress development 🚀

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "wordpress": {
      "command": "npx",
      "args": [
        "-y",
        "wpmcp@3.0.0"
      ],
      "env": {
        "WORDPRESS_URL": "https://your-site.com",
        "WORDPRESS_USERNAME": "admin",
        "WORDPRESS_PASSWORD": "your-app-password"
      }
    }
  }
}

WordPress MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal WordPress verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

WordPress als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu WordPress an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "wordpress": {
      "command": "npx",
      "args": [
        "-y",
        "wpmcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu WordPress. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu WordPress.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat WordPress?
WordPress
Jo. Ech hunn et gelies.
Dat hunn ech mat WordPress fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server WordPress benotzt?

WordPress ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech WordPress MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir WordPress mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat WordPress MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann WordPress verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech WordPress MCP mat TypingMind?

WordPress leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt WordPress MCP an TypingMind zur Verfügung?

WordPress stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir WordPress MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann WordPress eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇