Set up WordPress in Metorial for Claude, ChatGPT and Cursor
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'll 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 with at least one access group
- An account with WordPress for each person who connects
- For the CLI steps: the Metorial 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 usernameapplicationPassword: 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.
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.
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.
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
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
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.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from WordPress.
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:
Employee: connect WordPress
In the portal
Open WordPress in the catalog
Sign in to your portal and open WordPress. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A WordPress sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
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.
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.
Check it worked
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. NeedspostId.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. NeedsmediaId.list_categories: Retrieve all categories on the site.search_content: Search across posts and pages on the site by keyword. Needsquery.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. NeedstagId.get_category: Retrieve a single post category by ID. NeedscategoryId.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. NeedspostId.create_page: Create a new page on the WordPress site. Needstitle.update_media: Update metadata of an existing media item including title, caption, alt text, and description. NeedsmediaId.moderate_comment: Moderate a comment by updating its status (approve, hold for moderation, spam, or trash) or editing its content. NeedscommentId.update_page: Update an existing page. NeedspageId.create_post: Create a new blog post on the WordPress site. Needstitle.create_category: Create a new post category. Needsname.create_tag: Create a new post tag for organizing and labeling content. Needsname.create_comment: Add a new comment to a post. NeedspostIdandcontent.update_category: Update a post category name, description, parent, or slug. NeedscategoryId.upload_media: Upload an image, document, or other supported file to the WordPress media library from a publicly accessible URL. NeedsfileUrlandfileName.update_tag: Update a post tag name, description, or slug. NeedstagId.update_site_settings: Update common editable WordPress site settings.
Destructive tools (6)
delete_page: Permanently delete a page by its ID. NeedspageId.delete_post: Permanently delete a blog post by its ID. NeedspostId.delete_media: Permanently delete a media item from the library. NeedsmediaId.delete_tag: Delete a tag. NeedstagId.delete_comment: Permanently delete a comment by its ID. NeedscommentId.delete_category: Delete a category. NeedscategoryId.
Triggers
WordPress has 4 triggers, which fire on events in WordPress:
new_comment: Triggers when a new comment is posted on the site.inbound_webhookpage_changes: Triggers when a page is created or updated.post_changes: Triggers when a post is created or updated.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use WordPress there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- WordPress on metorial.com: the integration overview