All integrations

WordPress

Manage posts, pages, media, users, and taxonomies on self-hosted WordPress sites via the REST API.

Manual setup 39 tools

Overview

Manage posts, pages, media, users, and taxonomies on self-hosted WordPress sites via the REST API.

Prerequisites

  • One or more self-hosted WordPress sites (WordPress.com is not supported)
  • WordPress 5.6+ with Application Passwords enabled
  • A stackgate.ai account

Getting credentials

For each WordPress site:

  1. In WordPress admin, go to Users → Profile (or the target user).
  2. Scroll to Application Passwords, enter a label (e.g. "stackgate.ai"), and click Add New Application Password.
  3. Copy the generated password immediately — it is shown only once.
  4. In stackgate.ai, open Integrations → WordPress.
  5. Click Activate and add the site URL, username, and application password.
  6. stackgate.ai verifies the connection before saving.

You can add multiple sites after the initial connect.

Using with AI clients

  • Dedicated endpoint: POST /mcp/wordpress
  • Private gateway: wordpress__* tools (pass site slug to target a connected site)

Troubleshooting

  • REST API disabled — ensure permalinks are not "plain" and security plugins allow /wp-json/.
  • 401 on connect — regenerate the application password; usernames are case-sensitive.
  • Wrong site — use the site slug from list-sites-tool when calling other tools.

Available tools

  • list-sites-tool

    List configured WordPress sites for this account (id, label, site_url).

  • list-posts-tool

    List WordPress posts with optional search and filters.

  • get-post-tool

    Get a single WordPress post by ID.

  • create-post-tool

    Create a new WordPress post.

  • update-post-tool

    Update an existing WordPress post.

  • delete-post-tool

    Delete a WordPress post (moves to trash unless force is true).

  • search-content-tool

    Search WordPress content across post types using the global search endpoint.

  • list-users-tool

    List WordPress users. Requires appropriate permissions on the connected account.

  • get-current-user-tool

    Get the currently authenticated WordPress user for a site.

  • get-user-tool

    Get a WordPress user by ID.

  • create-user-tool

    Create a WordPress user. Requires Administrator role on the connected account.

  • update-user-tool

    Update a WordPress user.

  • delete-user-tool

    Delete a WordPress user. Requires Administrator role.

  • list-pages-tool

    List WordPress pages.

  • get-page-tool

    Get a WordPress page by ID.

  • create-page-tool

    Create a WordPress page.

  • update-page-tool

    Update a WordPress page.

  • delete-page-tool

    Delete a WordPress page.

  • list-media-tool

    List WordPress media items.

  • get-media-tool

    Get a WordPress media item by ID.

  • upload-media-tool

    Upload media to WordPress via source URL or base64 file content.

  • update-media-tool

    Update WordPress media metadata.

  • delete-media-tool

    Delete a WordPress media item.

  • list-comments-tool

    List WordPress comments.

  • get-comment-tool

    Get a WordPress comment by ID.

  • create-comment-tool

    Create a WordPress comment.

  • update-comment-tool

    Update a WordPress comment.

  • delete-comment-tool

    Delete a WordPress comment.

  • list-categories-tool

    List WordPress categories.

  • get-category-tool

    Get a WordPress category by ID.

  • create-category-tool

    Create a WordPress category.

  • update-category-tool

    Update a WordPress category.

  • delete-category-tool

    Delete a WordPress category.

  • list-tags-tool

    List WordPress tags.

  • get-tag-tool

    Get a WordPress tag by ID.

  • create-tag-tool

    Create a WordPress tag.

  • update-tag-tool

    Update a WordPress tag.

  • delete-tag-tool

    Delete a WordPress tag.

  • list-post-types-tool

    List available WordPress post types on a site.

MCP endpoint: https://stackgate.ai/mcp/wordpress (HTTP) or via the private gateway.