> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up WordPress in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/wordpress
Last updated: 2026-11-24

Share WordPress with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or application password sign-in, 37 tools (18 read-only).

---

To give your team WordPress in Claude, ChatGPT, Cursor and other AI clients, an admin shares the WordPress integration in a Metorial portal, and each person signs in to WordPress with their own account. Agents can create, read, update, and delete WordPress posts and pages. The integration has 37 tools, 18 read-only, 13 write and 6 destructive, plus 4 triggers.

**What you will learn**

- How an admin shares WordPress in a portal and how each person connects
- The 15 OAuth scopes WordPress can request, and what each one allows
- How to keep the 18 read-only tools and reject the other 19

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with WordPress for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Application Password** | Custom credentials | `username` and `applicationPassword` |
| **WordPress.com OAuth** (default) | OAuth | Signs in to WordPress |

The portal and `metorial setup` use **WordPress.com OAuth** unless someone picks another method.

### Application Password

To connect, a person enters these values:

- `username`: WordPress username
- `applicationPassword`: Application password generated from WordPress admin (Users → Edit User → Application Passwords)

### WordPress.com OAuth

People sign in to WordPress and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `users` | Users | Access to user information |
| `sites` | Sites | Access to site information and settings |
| `posts` | Posts | Read and write posts |
| `comments` | Comments | Read and manage comments |
| `taxonomy` | Taxonomy | Manage categories, tags, and taxonomies |
| `follow` | Follow | Manage blog following and subscriptions |
| `sharing` | Sharing | Manage social sharing settings |
| `notifications` | Notifications | Access notifications |
| `insights` | Insights | Access site insights |
| `read` | Read | Read access to the WordPress.com Reader |
| `stats` | Stats | Access site statistics |
| `media` | Media | Upload and manage media files |
| `menus` | Menus | Manage navigation menus |
| `videos` | Videos | Manage video uploads |
| `global` | Global | Comprehensive access across all sites |

### Setup settings

Whichever method you pick, setup also asks for:

- `siteUrl`: The WordPress site URL (e.g. "https://mysite.wordpress.com" for WordPress.com or "https://example.com" for self-hosted). Used as the base for API requests.
- `apiType` (optional): Whether this is a WordPress.com site ("wpcom") or a self-hosted WordPress.org site ("selfhosted"). One of "wpcom", "selfhosted".

## Use your own WordPress OAuth app

With your own OAuth app, people see your company's name on the WordPress consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose WordPress and copy the **Redirect URI**.

2. **Register the app with WordPress**

   Create an OAuth app or client in WordPress and add the redirect URI from Metorial as its redirect or callback URL.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the WordPress integration.

## Admin: share WordPress in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose WordPress. Under **Auth Method**, keep **WordPress.com OAuth** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to WordPress as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from WordPress.

4. **Choose who gets it**

   Add the access groups that should see WordPress. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user WordPress integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search wordpress
```

## Employee: connect WordPress

### In the portal

1. **Open WordPress in the catalog**

   Sign in to your portal and open WordPress. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A WordPress sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search wordpress
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **WordPress.com OAuth**. To connect with **Application Password** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your WordPress connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list wordpress
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 18 read-only tools, such as `get_tag` and `get_page`, and lose the 13 write tools, such as `create_tag` or `update_tag`, and the 6 destructive tools, such as `delete_tag` or `delete_page`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list wordpress
metorial tools <integration-id>
metorial call <integration-id> get_current_user -d '{}'
```

`metorial tools` lists the 37 tools, minus any you rejected. `get_current_user` takes no input. It retrieves the profile of the currently authenticated user, including display name, email, avatar, and roles.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (18)

- `list_users`: Retrieve a list of users on the WordPress site.
- `list_pages`: Retrieve a list of pages with optional filtering by status, search term, and sorting.
- `get_site_stats`: Retrieve site traffic statistics including page views, visitors, and top posts. **Requires a WordPress.com OAuth connection to a WordPress.com or Jetpack-connected site.**.
- `get_post`: Retrieve a single blog post by its ID, including full content, metadata, and comment count. Needs `postId`.
- `list_media`: Browse the site's media library.
- `list_tags`: Retrieve all tags on the site.
- `get_media`: Retrieve details of a single media item by its ID, including URL, dimensions, caption, and alt text. Needs `mediaId`.
- `list_categories`: Retrieve all categories on the site.
- `search_content`: Search across posts and pages on the site by keyword. Needs `query`.
- `list_posts`: Retrieve a list of blog posts with filtering options.
- `get_site_info`: Retrieve general site information including title, description, URL, and other metadata.
- `list_comments`: Retrieve comments from the site.
- `get_current_user`: Retrieve the profile of the currently authenticated user, including display name, email, avatar, and roles.
- `get_site_settings`: Retrieve editable WordPress site settings such as title, description, timezone, date format, time format, and default content settings.
- `get_tag`: Retrieve a single post tag by ID. Needs `tagId`.
- `get_category`: Retrieve a single post category by ID. Needs `categoryId`.
- `get_page`: Retrieve a single page by its ID, including its full content, status, parent page, and URL.
- `get_comment`: Retrieve a single comment by its ID, including its post, author, content, status, and parent comment.

### Write tools (13)

- `update_post`: Update an existing blog post. Needs `postId`.
- `create_page`: Create a new page on the WordPress site. Needs `title`.
- `update_media`: Update metadata of an existing media item including title, caption, alt text, and description. Needs `mediaId`.
- `moderate_comment`: Moderate a comment by updating its status (approve, hold for moderation, spam, or trash) or editing its content. Needs `commentId`.
- `update_page`: Update an existing page. Needs `pageId`.
- `create_post`: Create a new blog post on the WordPress site. Needs `title`.
- `create_category`: Create a new post category. Needs `name`.
- `create_tag`: Create a new post tag for organizing and labeling content. Needs `name`.
- `create_comment`: Add a new comment to a post. Needs `postId` and `content`.
- `update_category`: Update a post category name, description, parent, or slug. Needs `categoryId`.
- `upload_media`: Upload an image, document, or other supported file to the WordPress media library from a publicly accessible URL. Needs `fileUrl` and `fileName`.
- `update_tag`: Update a post tag name, description, or slug. Needs `tagId`.
- `update_site_settings`: Update common editable WordPress site settings.

### Destructive tools (6)

- `delete_page`: Permanently delete a page by its ID. Needs `pageId`.
- `delete_post`: Permanently delete a blog post by its ID. Needs `postId`.
- `delete_media`: Permanently delete a media item from the library. Needs `mediaId`.
- `delete_tag`: Delete a tag. Needs `tagId`.
- `delete_comment`: Permanently delete a comment by its ID. Needs `commentId`.
- `delete_category`: Delete a category. Needs `categoryId`.

## Triggers

WordPress has 4 triggers, which fire on events in WordPress:

- `new_comment`: Triggers when a new comment is posted on the site.
- `inbound_webhook`
- `page_changes`: Triggers when a page is created or updated.
- `post_changes`: Triggers when a post is created or updated.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use WordPress there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [WordPress on metorial.com](https://metorial.com/integrations/wordpress): the integration overview