Skip to main content
Glama

WordPress MCP Server

by RaheesAhmed

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
WORDPRESS_URLYesThe URL of your WordPress site
WORDPRESS_PASSWORDYesYour WordPress application password
WORDPRESS_USERNAMEYesYour WordPress admin username

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
wordpress_create_post

Create a new WordPress post with full control over all post properties

wordpress_update_post

Update an existing post - can modify any post property

wordpress_delete_post

Delete a post. Set force=true to permanently delete, otherwise moves to trash

wordpress_get_posts

Get posts with advanced filtering: search, author, categories, tags, status, ordering

wordpress_get_post

Get detailed information about a specific post by ID

wordpress_search_posts

Search posts by keyword - searches title, content, and excerpt

wordpress_schedule_post

Schedule a post for future publication. Date format: YYYY-MM-DDTHH:MM:SS

wordpress_publish_post

Publish a draft or pending post immediately

wordpress_duplicate_post

Duplicate an existing post with optional new title

wordpress_get_post_revisions

Get all revisions/edit history for a post

wordpress_bulk_create_posts

Create multiple posts in one operation - efficient for batch content generation

wordpress_bulk_update_posts

Update multiple posts in one operation - efficient for batch modifications

wordpress_bulk_delete_posts

Delete multiple posts in one operation

wordpress_create_page

Create a new WordPress page with hierarchy support

wordpress_update_page

Update an existing page

wordpress_get_pages

Get pages with hierarchy and ordering

wordpress_delete_page

Delete a page

wordpress_upload_media

Upload image or file to WordPress media library (provide base64 encoded file)

wordpress_get_media

Get media library files with filtering by type

wordpress_update_media

Update media file metadata (alt text, caption, title)

wordpress_delete_media

Delete a media file from library

wordpress_set_featured_image

Set featured image (thumbnail) for a post

wordpress_bulk_optimize_images

Bulk optimize images (compress all images)

wordpress_convert_to_webp

Convert image to WebP format

wordpress_get_unused_media

Find unused media files in library

wordpress_bulk_delete_media

Delete multiple media files

wordpress_get_media_analytics

Get media library storage usage statistics

wordpress_create_user

Create a new WordPress user with roles

wordpress_get_users

Get WordPress users with role filtering

wordpress_update_user

Update user information (name, email, roles, password)

wordpress_delete_user

Delete a user (reassign their content to another user)

wordpress_create_category

Create a new category with hierarchical support

wordpress_get_categories

Get all categories with hierarchy

wordpress_update_category

Update category name, description, or parent

wordpress_delete_category

Delete a category

wordpress_create_tag

Create a new tag

wordpress_get_tags

Get all tags

wordpress_create_comment

Create a comment on a post

wordpress_get_comments

Get comments with filtering by post and status

wordpress_update_comment

Update comment (approve, spam, trash, edit content)

wordpress_delete_comment

Delete a comment

wordpress_get_site_info

Get complete WordPress site information including available API routes

wordpress_test_connection

Test WordPress connection and authentication

wordpress_get_settings

Get WordPress site settings

wordpress_update_settings

Update site settings (title, description, timezone, etc)

wordpress_get_plugins

Get all installed WordPress plugins

wordpress_get_themes

Get all installed WordPress themes

wordpress_set_seo_meta

Set SEO metadata (Yoast SEO, Rank Math, All-in-One SEO compatible)

wordpress_set_custom_meta

Set custom post metadata field - useful for custom fields and plugins

wordpress_read_file

Read file contents from WordPress (themes, plugins, etc.)

wordpress_list_files

List files in a WordPress directory

wordpress_file_info

Get file information (size, modified date, permissions)

wordpress_write_file

Write or create file with security validation and optional backup

wordpress_delete_file

Delete file with optional backup

wordpress_copy_file

Copy file to another location within WordPress

wordpress_move_file

Move or rename file within WordPress

wordpress_get_themes_detailed

Get detailed information about all installed themes

wordpress_activate_theme

Activate a theme (switch to it as the active theme)

wordpress_get_active_theme

Get the currently active theme

wordpress_create_child_theme

Create a child theme from a parent theme

wordpress_get_theme_mods

Get theme customizer settings (Appearance → Customize data)

wordpress_delete_theme

Delete a theme (cannot delete active theme)

wordpress_get_theme_json

Get theme.json configuration for block themes (FSE)

wordpress_update_theme_json

Update theme.json configuration for block themes (FSE)

wordpress_read_theme_file

Read a specific file from a theme

wordpress_write_theme_file

Write or modify a file in a theme (automatically creates backup)

wordpress_list_theme_files

List all files in a theme directory

wordpress_get_theme_templates

Get theme templates (block theme templates from WordPress API)

wordpress_get_template_parts

Get theme template parts (block theme components like header, footer)

wordpress_get_global_styles

Get theme global styles (Site Editor styles)

wordpress_theme_exists

Check if a theme is installed

wordpress_get_plugins_detailed

Get detailed information about all installed plugins

wordpress_activate_plugin

Activate a plugin

wordpress_deactivate_plugin

Deactivate a plugin

wordpress_delete_plugin

Delete a plugin (must be deactivated first)

wordpress_read_plugin_file

Read a specific file from a plugin

wordpress_write_plugin_file

Write or modify a file in a plugin (automatically creates backup)

wordpress_list_plugin_files

List all files in a plugin directory

wordpress_get_active_plugins

Get all currently active plugins

wordpress_plugin_exists

Check if a plugin is installed

wordpress_get_plugin_status

Get status and details of a specific plugin

wordpress_get_menus

Get all navigation menus

wordpress_create_menu

Create a new navigation menu

wordpress_delete_menu

Delete a navigation menu

wordpress_get_menu_items

Get menu items from a specific menu or all menus

wordpress_create_menu_item

Add an item to a navigation menu

wordpress_update_menu_item

Update a menu item (title, URL, order, etc.)

wordpress_delete_menu_item

Delete a menu item

wordpress_get_menu_locations

Get all registered menu locations in the active theme

wordpress_assign_menu_to_location

Assign a menu to a theme location

wordpress_get_post_types

Get all registered post types

wordpress_get_post_type

Get details for a specific post type

wordpress_get_taxonomies

Get all registered taxonomies

wordpress_get_taxonomy

Get details for a specific taxonomy

wordpress_get_terms

Get terms from a taxonomy (categories, tags, or custom)

wordpress_create_term

Create a new term in a taxonomy

wordpress_update_term

Update a term in a taxonomy

wordpress_delete_term

Delete a term from a taxonomy

wordpress_list_shortcodes

Get all registered WordPress shortcodes

wordpress_execute_shortcode

Process and execute a shortcode string

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/RaheesAhmed/wordpress-mcp-server'

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