Rectus Content Access for MCP
Connect MCP clients to WordPress posts, pages, custom post types, taxonomies, and media with configurable access.
Install in
Rectus Content Access for MCP lets authenticated MCP clients manage WordPress content, classic navigation menus, and media files.
For a Japanese overview and setup guide, visit the Rectus Content Access for MCP introduction page.
The plugin provides:
- Listing, creation, and updating of posts, pages, and selected custom post types, including exact slug lookup and conflict-checked slug changes.
- Targeted string edits with full-field SHA-256 conflict detection, so small corrections do not require resending an entire title, excerpt, or content field.
- Confirmation-protected movement of posts to the WordPress trash with post type and modified-time conflict checks.
- Listing, reading, and conflict-checked restoring of post revisions, with the text a post had before each change through MCP kept as a revision.
- Preview links for unpublished posts in post lists, reads, and write results.
- Exact text search across the posts the user can edit, and batch edits and updates of up to 50 posts in one call, so an old URL or a category can be changed across many posts after the list has been checked.
- Page order on creation and update, and duplication of a post into a new draft.
- An optional publication date on creation and update, so back-dated entries such as a release history can be filed under the day they happened.
- Reading of a single post’s stored title, content, excerpt, and assigned terms, available to any account WordPress allows to read the post.
- Listing of enabled post types with labels, supported fields, and taxonomies.
- Searching, creation, conflict-checked updating, and confirmation-protected permanent deletion of categories, tags, and custom taxonomy terms.
- Paginated content lists with status, search, taxonomy term, and ordering filters.
- Featured image assignment from uploaded media when creating or updating posts.
- Classic navigation menu, menu item, hierarchy, order, and theme-location management with checksum conflict protection, including batch edits of up to 100 menu items in one call.
- Media library listing, physical filename changes, and confirmation-protected permanent attachment deletion.
- Conflict-checked updates of the title, alternative text, caption, and description of up to 100 media items in one call.
- A settings screen where administrators choose which post types MCP clients may access, and which protected custom fields, such as SEO plugin fields, MCP may read and write.
- An activity log of successful changes and partially completed batches under Tools > MCP Activity.
- Site information, including the front page, permalink structure, and whether the active theme is a block theme.
- Listing of classic widget areas and conflict-checked changes to a widget’s settings.
- Comment listing without email or IP addresses, and approving, holding, spamming, or trashing up to 100 comments in one call.
- Support for standard content fields, public custom fields, and taxonomies assigned to the selected post type.
- Listing, reading, creation, update, and confirmation-protected deletion of managed fixed-page templates in the active theme.
- Reading, replacing, partly editing, and clearing Additional CSS with checksum conflict protection, and restoring it from its revisions.
- Fixed-page template assignment through post creation and update operations.
- Direct multipart image uploads for Codex and Claude Code using short-lived, one-time tickets.
- Base64-encoded image uploads as a fallback for MCP clients that cannot perform direct uploads.
- Browser-based OAuth 2.1 authorization with PKCE and automatic token refresh.
- Copy-ready setup commands for Codex and Claude Code.
- Site-specific MCP server names derived from the WordPress domain and path to prevent client configuration collisions.
- Support for MCP protocol revisions 2025-11-25, 2025-06-18, and 2024-11-05, negotiated with the connecting client.
- Server identity reported on connection, including the site title, description, website URL, and icons, so a client registered against several sites can tell them apart.
- Reading and conflict-checked changing of block theme templates, template parts, global styles, and Navigation block navigations through the same WordPress endpoints the Site Editor uses, and reverting a template to the theme file.
- A change history for terms, classic menus and menu locations, widgets, media details, page template files, and block theme data, so a change made through MCP can be listed, compared, and undone.
- Automatic clearing of the page cache of supported cache plugins after a change made through MCP, and clearing on request.
- Permanent redirects from the old address when MCP changes the slug or parent of a published post or page, including its child pages, or renames a media file, with the posts still linking to a renamed file listed.
- Site Health results as plain text, and optional reading of the PHP error log with the database password and secret keys masked.
- A button that clears the server’s APCu cache when a setting does not take effect for MCP clients.
- Translation-ready administration, OAuth, MCP ability, and error strings.
Posts and pages are enabled by default. Custom post types must be enabled by an administrator before MCP clients can use them.
Rectus Content Access for MCP checks the authorized WordPress user’s native capabilities for every operation, including each post type’s create, edit, publish, and taxonomy permissions.
Reading follows the read capability rather than the edit capability. An account that may read but not edit, a subscriber by default, can therefore list and read published content, its public custom fields, and the terms assigned to it, while every write operation stays refused. Drafts and private posts remain limited to the users WordPress already allows to see them.
Saved content is filtered by the same capability WordPress itself uses, so an edit made through an MCP client is stored exactly as the block or classic editor would have stored it. Markup that the editors keep, such as JSON-LD structured data and schema.org microdata, survives the round trip instead of being silently rewritten.
For targeted corrections, post-get returns SHA-256 checksums of the exact stored title, content, and excerpt. Post-edit requires the selected field checksum, re-reads the database immediately before saving, and returns a conflict without saving if the field changed. WordPress save filters still run normally, and the stored value is verified before success is reported.
OAuth access tokens, refresh tokens, authorization codes, and direct media upload tickets are stored only as SHA-256 hashes. Access tokens expire after one hour, refresh tokens are rotated automatically, and connections can be revoked from the settings screen. Uninstalling Rectus Content Access for MCP removes its settings and OAuth data.
A client that shares one credential between several processes can present a refresh token that another process already rotated away. For supported retry behavior, Rectus Content Access for MCP can replay the already-issued token pair instead of issuing a parallel credential, so the client converges on the single active credential. Replay material is encrypted with a key derived from the presented refresh token itself, so it is never recoverable from the database alone. Replay requests are bounded by the rotation history and a time safety limit; requests outside those bounds are treated as reuse of an invalid credential and revoke the connection family.
The official WordPress MCP Adapter library is bundled with Rectus Content Access for MCP. A separate MCP Adapter plugin or Node.js process is not required on the WordPress server.
Third-Party Libraries
Rectus Content Access for MCP includes the following GPL-compatible Composer packages:
- WordPress MCP Adapter, copyright WordPress.org Contributors, GPL-2.0-or-later.
- WordPress PHP MCP Schema, copyright WordPress.org Contributors, GPL-2.0-or-later.
- Jetpack Autoloader, copyright Automattic, GPL-2.0-or-later.
License files are included with each package under the vendor directory.
Written by Joobi from the project's own listing. See the source page
1.7.2
- Fixed ChatGPT OAuth connections using Client ID Metadata Documents that list multiple supported token endpoint authentication methods. The plugin selects the supported public-client method while preserving existing dynamic client registration behavior.
1.7.1
- Supported the standard OAuth authorization server discovery URL for subdirectory installations when forwarded to WordPress, and added an OpenID configuration URL below the subdirectory for clients that follow the MCP discovery fallback while preserving the existing discovery URL.
- Updated the discovery check to verify the standard URL and explain when domain-root server routing is needed. When only the OpenID configuration URL responds, Site Health reports a recommended improvement instead of a critical issue.
- Answered the standard discovery URL of each subsite from the main site in subdirectory multisite networks, so subsites need no server rule.
1.7.0
- Added block-template-list, block-template-get, block-template-update, and block-template-revert for block theme templates and template parts, global-styles-get and global-styles-update, and block-navigation-list, block-navigation-get, and block-navigation-update, through the WordPress REST endpoints the Site Editor uses.
- Added a change history of terms, classic menus and menu locations, widgets, media details, page template files, and block theme data changed through MCP, with change-list, change-get, and conflict-checked change-restore. Deleted terms and menus are created again, and partial batch failures are recorded too.
- Added automatic page cache clearing after changes made through MCP for eleven cache plugins, and cache-purge for clearing on request.
- Added 301 redirects from the old address of published posts, their child pages, and renamed media files, with redirect-list and redirect-delete. media-rename now returns the number of redirects and the posts that still link to the old file.
- Added site-health-get and the optional error-log-get, which masks the database password, secret keys, and Bearer tokens.
- Added settings to turn cache clearing, redirects, and error log reading on or off, and a button that clears the APCu cache.
- Uninstalling the plugin also removes the change history, the redirect records, and the new settings.
1.6.1
- Fixed MCP connection failures when another plugin resolves the current user before WordPress initializes its rewrite component.
- Prevented recursive Bearer authentication when URL, input, or user filters resolve the current user.
- Limited Bearer authentication to the advertised MCP endpoint on the WordPress front controller, following WordPress’s handling of the rest_route variable in the POST body and query string, including rejection of conflicting values.
- Supported MCP authentication, OAuth discovery, and session-cache handling with plain permalinks, while rejecting ambiguous or unrelated resource queries. Discovery requires the web server to pass
/.well-known/requests to WordPress. - Preserved the canonical MCP resource URL and Bearer token audience checks during early authentication, including subdirectory installations, index permalinks, HTTPS, and REST URL filters.
1.6.0
- Added post-block-list and post-block-edit for SHA-256-guarded block text replacement, whole-block replacement, insertion before or after a block, and deletion through WordPress’s native block parser.
- Refused block edits that would cross freeform, unregistered, synchronized, non-canonical, or locked content, and verified that nested and unrelated blocks were preserved before reporting a save as successful.
- Added navigation-menu-item-batch, which preflight-checks and then sequentially creates, updates, and deletes up to 100 classic navigation menu items. A later write or reorder failure returns the already applied results and new checksum, and items created in the batch can be parents of later ones through ref and parent_ref.
- Limited the batch response to the menu summary, the new checksum, and one result per operation, returning every item only on request, so building a large menu no longer repeats the whole menu after each item.
- Pointed navigation-menu-item-create to the batch ability for adding or changing several items.
- Added custom-css-get, custom-css-update, custom-css-edit, and custom-css-delete for the Additional CSS of the active theme. Every change requires the checksum from the latest read, CSS containing a closing style tag is refused, and theme files are never changed.
- Added custom-css-revision-list, custom-css-revision-get, and custom-css-revision-restore, so CSS replaced or cleared through MCP can be brought back from the WordPress revisions.
- Required both edit_theme_options and edit_css for every CSS operation, as Appearance > Customize does, so on a single site only administrators can use them.
- Added post-revision-list, post-revision-get, and post-revision-restore. A restore requires the current field checksums, refuses a revision whose markup the user may not save or whose revisioned custom fields, such as footnotes, differ from the post, and verifies the stored post afterwards.
- Saved the current text of a post as a revision before post-update, post-edit, or a restore replaces it, so the text a post was created with is no longer lost to its first change.
- Added media-update for the title, alternative text, caption, and description of up to 100 media items in one call, checked against the meta_sha256 now returned by media-list. media-list also returns the description and whether the user can edit each item.
- Added a Protected custom fields setting that opens listed protected meta keys, such as SEO plugin fields, to users who can edit a post. Keys WordPress uses itself are never opened.
- Added Tools > MCP Activity, a 90-day log of successful changes and partially completed batches with their time, user, client, operation, target, and the names of the fields given.
- Added preview_link to post-list, post-get, post-create, post-update, post-edit, and post-revision-restore results for unpublished posts.
- Added post-text-search, post-edit-batch, and post-update-batch, so text such as an old URL can be found across the posts the user can edit, shown for confirmation, and changed sequentially in up to 50 posts with conflict checks and explicit partial-failure results.
- Added post-duplicate, which verifies a new draft’s terms, featured image, page template, and readable custom fields and removes an incomplete copy instead of reporting it as successful.
- Added menu_order to post-create, post-update, post-get, and post-list for post types with page attributes.
- Added site-info-get for the site title, tagline, front page, permalink structure, and active theme, including whether it is a block theme.
- Added widget-list and widget-update for the classic widget areas of the active theme.
- Added comment-list and comment-moderate for approving, holding, spamming, and trashing comments without returning email or IP addresses.
- Noted in custom-css-get, which now returns is_block_theme, that the Site Editor does not show Additional CSS saved through MCP on a block theme.
1.5.0
- Widened the connection readiness table and gave its label column a fixed width, so a long value beside a label no longer breaks that label across two lines.
- Named the MCP endpoint as the MCP server URL as well, since a client set up through a settings screen rather than a command asks for the address under that name.
- Described the setup commands as the same on macOS and Windows, and as commands that run on a computer where the client is already installed. Only the way the client itself is installed differs.
- Linked separately from the settings screen to the plugin overview and the MCP client installation guide.
- Added a section for clients that have no command line, offering the MCP server URL on its own with a button to copy it.
- Added a parent post ID to post-create, post-update, and post-get, accepted only for a hierarchical post type and rejected when the parent is negative, missing, of another post type, unreadable, the post itself, or one of its descendants. A move that would silently suffix the current slug is rejected before saving.
1.4.1
- Fixed Claude OAuth connections being rejected when its client metadata also advertises the JWT bearer grant. Only authorization_code and refresh_token are enabled by the plugin.
- Accepted additional response types in client metadata while enabling only code responses. Malformed metadata and clients without authorization_code or code support remain rejected.
1.4.0
- Checked the read abilities against the WordPress read capability instead of the edit capability, so an account that may read but not edit can list and read content through MCP.
- Returned public custom fields to any user allowed to read the post, matching what WordPress exposes through the REST API and the_meta().
- Required only the read capability to list taxonomy terms, which previously asked for the capability to assign them.
- Listed a post status only when the authorized user may see posts in it, so post-list no longer reports a total it will not return and no longer leaves short pages.
- Reported that a status cannot be listed instead of returning an empty list for it.
- Hid the abilities the authorized user could not use whatever the input from ability discovery, so an MCP client is offered what it may call instead of learning the difference one refusal at a time. WordPress 7.1 or later is needed for this; on 6.9 and 7.0 every ability stays listed and each call is refused as before.
- Described post-list and post-get as reading what the user may read rather than what the user may edit.
1.3.0
- Added searchable category, tag, and custom taxonomy term creation, update, and permanent deletion abilities.
- Added editable-state SHA-256 values to term-list and required a matching value for term updates and deletions.
- Required explicit confirmation for permanent term deletion and verified that WordPress removed the selected term before reporting success.
- Added parent-term validation for hierarchical taxonomies, including missing-parent and ancestry-cycle protection.
1.2.0
- Added exact post slug lookup to post-list.
- Added conflict-checked post slug updates to post-update. The current slug returned by post-get must be supplied, so a changed slug is never overwritten silently.
- Made post-create and post-update return the stored slug, and reject a requested slug that WordPress would otherwise silently suffix for a conflict.
- Defined an empty slug update as resetting a manual slug: published content regenerates it from the current title, while drafts may remain empty until publication.
- Added the slug before and after post-delete moves an entry to the WordPress trash.
1.1.1
- Hardened refresh-token retry handling so incomplete or out-of-bounds replay data cannot create a parallel token family.
- Made normal refresh-token rotation atomic and kept replay responses bounded for compatible retrying clients.
- Replayed the rotation that already happened when a client presents a refresh token another of its processes rotated away, instead of revoking the connection or issuing a parallel credential.
- Measured how far behind such a token is in rotations rather than in elapsed time, so that the allowance follows the client’s own refresh interval instead of a fixed clock.
- Encrypted rotation replay material with a key derived from the presented refresh token so that it cannot be recovered from the database alone.
- Fixed a revoked connection being resurrected by a refresh token presented within a minute of the revocation.
- Restored the presented refresh token when the pair it was exchanged for could not be issued, instead of leaving the connection unusable.
1.1.0
- Added confirmation-protected post trashing with post type and modified-time conflict checks.
- Added classic navigation menu, item hierarchy and order, and theme-location management with SHA-256 conflict protection.
- Added physical media filename changes for local uploads, including generated image sizes and edit backups, with rollback and verification.
- Added file-state SHA-256 values to media listing and stricter schemas for media rename and deletion.
1.0.1
- Added an optional date to post-create and post-update, read in the site time zone, so an entry can carry a past date instead of the time of the request.
- Scheduled the post when that date is in the future, reporting the resulting future status instead of the requested publish.
- Verified the stored date after saving, like the other post fields.
1.0.0
- Reported the plugin and site identity to MCP clients instead of the bundled adapter’s default server name, version, and instructions.
- Added the server title, description, website URL, and icons defined by MCP 2025-11-25, sent only to clients that negotiated a protocol version which defines them.
- Added openWorldHint to every ability annotation, stating that operations stay within this WordPress site.
- Fixed the OAuth discovery metadata check reporting a failure with the message “1” on sites without a persistent object cache, which made the settings screen and Site Health report broken discovery while authorization worked normally.
- Brought the plugin source to a clean WordPress Coding Standards run.
- Removed unused parameters from the internal taxonomy helpers.
0.6.0
- Added post-edit, which replaces exact strings inside a stored post title, excerpt, or content instead of resending the whole field.
- Added field_sha256 checksums to post-get and required the selected checksum as expected_field_sha256 when calling post-edit.
- Required each edit to match exactly once unless replace_all is set, and rejected the whole request without saving when an edit does not match or is ambiguous.
- Re-read the database immediately before saving, rejected stale field checksums, refreshed the post cache, and verified the stored value before reporting success.
- Kept WordPress save filters active and returned an explicit re-read error when a filter stored a different value.
0.5.5
- Added permission-checked fixed-page template listing, reading, creation, update, and deletion for active-theme root-level page-*.php files with Template Name headers.
- Added SHA-256 concurrency checks, explicit deletion confirmation, and an assigned-page safeguard for template deletion.
- Added fixed-page template reporting and assignment through post-get, post-create, and post-update.
0.5.4
- Made post updates determine the post type from the post ID; an optional post_type input now acts only as a checked assertion.
- Verified submitted post fields directly against the database and refreshed the post cache before reporting success.
- Added permission-checked reading, writing, and deletion of public custom fields for posts, pages, and enabled custom post types.
- Added per-field definitions to post reads for stored custom fields, including registered WordPress meta and ACF metadata when available.
- Rejected protected custom field keys and returned explicit errors for mismatched post types, empty updates, or values that were not preserved.
0.5.3
- Fixed MCP sessions being rejected as invalid on sites with a persistent object cache, which stopped Claude Code and other clients from loading the tool list right after connecting.
0.5.2
- Verified post content after create and update operations so silently changed content is no longer reported as a successful save.
- Preserved backslashes and escaped JSON values when creating posts, pages, and custom post type entries.
- Allowed a short refresh-token rotation overlap for concurrent processes using the same MCP client credentials without revoking the active connection family.
- Stored MCP HTTP sessions independently so Codex, Claude Code, and other clients can connect concurrently as the same WordPress user without overwriting one another.
- Added media listing and permission-checked permanent deletion with exact ID, filename, and confirmation safeguards.
0.5.1
- Stopped running post content through wp_kses_post() for users who hold unfiltered_html, so an edit made through MCP keeps the markup that the block and classic editors would have stored.
- Fixed JSON-LD structured data being dropped, and its raw JSON left behind as visible body text, when those users saved content through the create and update tools.
0.5.0
- Added a preferred direct multipart image upload flow for Codex and Claude Code.
- Added short-lived, one-time media upload tickets exposed through an MCP ability.
- Added a plugin REST endpoint that validates the ticket, WordPress user permissions, filename, byte size, MIME type, and image contents.
- Added idempotent retry behavior that returns an existing attachment instead of creating a duplicate.
- Kept Base64 media upload and server-side inbox import as compatible fallbacks.
- Renamed PHP symbols, internal hooks, settings, OAuth storage, and credential prefixes to match Rectus Content Access for MCP.
0.4.1
- Preserved schema.org microdata attributes in post content saved through the create and update tools.
0.4.0
- Renamed the plugin to Rectus Content Access for MCP and updated its pre-approval slug.
- Internationalized MCP ability names, descriptions, and error messages.
- Standardized English source strings for WordPress.org translation workflows.
- Removed bundled translation files in favor of WordPress.org language packs.
- Generated site-specific MCP client server names from the WordPress domain and path.
- Documented URL-based OAuth client metadata retrieval and the data it sends.
- Separated Codex server setup from the fallback login command to prevent duplicate OAuth authorization flows.
- Updated Claude Code setup to open browser authorization directly via
claude mcp login. - Added a Site Health test and a settings screen check for OAuth discovery metadata reachability.
- Added a post read tool that returns the stored content and terms for AI editing workflows.
- Added a taxonomy term listing tool so clients assign existing terms instead of creating variants.
- Added featured image support to the post create, update, and read tools.
- Added taxonomy term filtering to the post list tool.
- Allowed RFC 8252 ephemeral ports for native client loopback OAuth redirects.
0.3.0
- Added read-only paginated listing for posts, pages, and enabled custom post types.
- Added read-only discovery of enabled post types, supported fields, and taxonomies.
0.2.0
Follow this listing's changes (Atom feed)