WordPress MCP server
209 operations0 webhooks
Self-hosted WordPress sites (and WordPress.com sites with application passwords): posts, pages, media uploads, revisions and autosaves, categories, tags and custom taxonomies, comments, users and application passwords, site settings, plugins (install, activate, delete), themes, block templates and template parts, global styles, navigation and classic menus, widgets and sidebars, block types, patterns and fonts, search, Site Health checks, the Abilities API, batch requests and any custom post type or plugin route (209 operations).
Try WordPress with your agent
Connect WordPress, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in WordPress on my account, then run one read-only example and show me the result.
WordPress tools and triggers
Tools are what your agent can do in WordPress through Corsair's MCP server. Triggers are the WordPress events a routine can start from.
Users
- Application Passwords.CreateDestructive
Create an application password for a user; the response's `password` is shown once and can act as that user
users.applicationPasswords.create
- Application Passwords.DeleteDestructive
Delete a application password
users.applicationPasswords.delete
- Application Passwords.Delete AllDestructive
Revoke every application password of a user, the one this call uses included
users.applicationPasswords.deleteAll
- Application Passwords.GetRead-only
Get one application password of a user
users.applicationPasswords.get
- Application Passwords.IntrospectRead-only
Get the application password this call is made with (name, uuid, last used)
users.applicationPasswords.introspect
- Application Passwords.ListRead-only
List the application passwords of a user
users.applicationPasswords.list
- Application Passwords.UpdateWrite
Update a application password: only the fields you pass change
users.applicationPasswords.update
- CreateWrite
Create a user
users.create
- DeleteDestructive
Delete a user; WordPress needs force true for this type, which deletes it permanently
users.delete
- Delete MeDestructive
Delete the authenticated user's own account, reassigning their posts to another user (`reassign`, required with `force: true`)
users.deleteMe
- GetRead-only
Get one user
users.get
- ListRead-only
List users, one page at a time, with search and filters
users.list
- MeRead-only
Get the user the application password belongs to: name, roles and (with context edit) email and capabilities
users.me
- UpdateWrite
Update a user: only the fields you pass change
users.update
- Update MeWrite
Update the authenticated user's own profile
users.updateMe
Template Parts
- Autosaves.CreateWrite
Create a autosave for a template part
templateParts.autosaves.create
- Autosaves.GetRead-only
Get one autosave of a template part
templateParts.autosaves.get
- Autosaves.ListRead-only
List the autosaves of a template part
templateParts.autosaves.list
- CreateWrite
Create a template part
templateParts.create
- DeleteDestructive
Delete a template part; without force true it goes to the trash
templateParts.delete
- GetRead-only
Get one template part
templateParts.get
- ListRead-only
List template parts
templateParts.list
- LookupRead-only
Find the fallback template part WordPress would use for a slug
templateParts.lookup
- Revisions.DeleteDestructive
Delete a revision; WordPress needs force true for this type, which deletes it permanently
templateParts.revisions.delete
- Revisions.GetRead-only
Get one revision of a template part
templateParts.revisions.get
- Revisions.ListRead-only
List the revisions of a template part, one page at a time, with search and filters
templateParts.revisions.list
- UpdateWrite
Update a template part: only the fields you pass change
templateParts.update
Templates
- Autosaves.CreateWrite
Create a autosave for a block template
templates.autosaves.create
- Autosaves.GetRead-only
Get one autosave of a block template
templates.autosaves.get
- Autosaves.ListRead-only
List the autosaves of a block template
templates.autosaves.list
- CreateWrite
Create a block template
templates.create
- DeleteDestructive
Delete a block template; without force true it goes to the trash
templates.delete
- GetRead-only
Get one block template
templates.get
- ListRead-only
List block templates
templates.list
- LookupRead-only
Find the fallback template WordPress would use for a slug (for example `single-post`), when the theme has none of its own
templates.lookup
- Revisions.DeleteDestructive
Delete a revision; WordPress needs force true for this type, which deletes it permanently
templates.revisions.delete
- Revisions.GetRead-only
Get one revision of a block template
templates.revisions.get
- Revisions.ListRead-only
List the revisions of a block template, one page at a time, with search and filters
templates.revisions.list
- UpdateWrite
Update a block template: only the fields you pass change
templates.update
Blocks
- Autosaves.CreateWrite
Create a autosave for a synced pattern (reusable block)
blocks.autosaves.create
- Autosaves.GetRead-only
Get one autosave of a synced pattern (reusable block)
blocks.autosaves.get
- Autosaves.ListRead-only
List the autosaves of a synced pattern (reusable block)
blocks.autosaves.list
- CreateWrite
Create a synced pattern (reusable block)
blocks.create
- DeleteDestructive
Delete a synced pattern (reusable block); without force true it goes to the trash
blocks.delete
- GetRead-only
Get one synced pattern (reusable block)
blocks.get
- ListRead-only
List synced patterns (reusable blocks), one page at a time, with search and filters
blocks.list
- Revisions.DeleteDestructive
Delete a revision; WordPress needs force true for this type, which deletes it permanently
blocks.revisions.delete
- Revisions.GetRead-only
Get one revision of a synced pattern (reusable block)
blocks.revisions.get
- Revisions.ListRead-only
List the revisions of a synced pattern (reusable block), one page at a time, with search and filters
blocks.revisions.list
- UpdateWrite
Update a synced pattern (reusable block): only the fields you pass change
blocks.update
Navigation
- Autosaves.CreateWrite
Create a autosave for a navigation menu
navigation.autosaves.create
- Autosaves.GetRead-only
Get one autosave of a navigation menu
navigation.autosaves.get
- Autosaves.ListRead-only
List the autosaves of a navigation menu
navigation.autosaves.list
- CreateWrite
Create a navigation menu
navigation.create
- DeleteDestructive
Delete a navigation menu; without force true it goes to the trash
navigation.delete
- GetRead-only
Get one navigation menu
navigation.get
- ListRead-only
List navigation menus, one page at a time, with search and filters
navigation.list
- Revisions.DeleteDestructive
Delete a revision; WordPress needs force true for this type, which deletes it permanently
navigation.revisions.delete
- Revisions.GetRead-only
Get one revision of a navigation menu
navigation.revisions.get
- Revisions.ListRead-only
List the revisions of a navigation menu, one page at a time, with search and filters
navigation.revisions.list
- UpdateWrite
Update a navigation menu: only the fields you pass change
navigation.update
Pages
- Autosaves.CreateWrite
Create a autosave for a page
pages.autosaves.create
- Autosaves.GetRead-only
Get one autosave of a page
pages.autosaves.get
- Autosaves.ListRead-only
List the autosaves of a page
pages.autosaves.list
- CreateWrite
Create a page
pages.create
- DeleteDestructive
Delete a page; without force true it goes to the trash
pages.delete
- GetRead-only
Get one page
pages.get
- ListRead-only
List pages, one page at a time, with search and filters
pages.list
- Revisions.DeleteDestructive
Delete a revision; WordPress needs force true for this type, which deletes it permanently
pages.revisions.delete
- Revisions.GetRead-only
Get one revision of a page
pages.revisions.get
- Revisions.ListRead-only
List the revisions of a page, one page at a time, with search and filters
pages.revisions.list
- UpdateWrite
Update a page: only the fields you pass change
pages.update
Posts
- Autosaves.CreateWrite
Create a autosave for a post
posts.autosaves.create
- Autosaves.GetRead-only
Get one autosave of a post
posts.autosaves.get
- Autosaves.ListRead-only
List the autosaves of a post
posts.autosaves.list
- CreateWrite
Create a post
posts.create
- DeleteDestructive
Delete a post; without force true it goes to the trash
posts.delete
- GetRead-only
Get one post
posts.get
- ListRead-only
List posts, one page at a time, with search and filters
posts.list
- Revisions.DeleteDestructive
Delete a revision; WordPress needs force true for this type, which deletes it permanently
posts.revisions.delete
- Revisions.GetRead-only
Get one revision of a post
posts.revisions.get
- Revisions.ListRead-only
List the revisions of a post, one page at a time, with search and filters
posts.revisions.list
- UpdateWrite
Update a post: only the fields you pass change
posts.update
Font Families
- CreateWrite
Create a font family
fontFamilies.create
- DeleteDestructive
Delete a font family; WordPress needs force true for this type, which deletes it permanently
fontFamilies.delete
- Font Faces.CreateWrite
Create a font face for a font family
fontFamilies.fontFaces.create
- Font Faces.DeleteDestructive
Delete a font face; WordPress needs force true for this type, which deletes it permanently
fontFamilies.fontFaces.delete
- Font Faces.GetRead-only
Get one font face of a font family
fontFamilies.fontFaces.get
- Font Faces.ListRead-only
List the font faces of a font family, one page at a time
fontFamilies.fontFaces.list
- GetRead-only
Get one font family
fontFamilies.get
- ListRead-only
List font families, one page at a time
fontFamilies.list
- UpdateWrite
Update a font family: only the fields you pass change
fontFamilies.update
Media
- CreateWrite
Upload a file to the media library (image, PDF, audio, video) with optional title, caption, alt text and the post it belongs to
media.create
- DeleteDestructive
Delete a media item; WordPress needs force true for this type, which deletes it permanently
media.delete
- EditWrite
Crop, rotate or flip an image attachment; WordPress saves the result as a new attachment
media.edit
- FinalizeWrite
Finish an attachment after its client-side image processing: WordPress writes the attachment's metadata
media.finalize
- GetRead-only
Get one media item
media.get
- ListRead-only
List media items, one page at a time, with search and filters
media.list
- Post ProcessWrite
Run server-side image processing (sub-size generation) for an uploaded attachment that is waiting for it
media.postProcess
- SideloadWrite
Add a file as an extra image size of an existing attachment (the block editor's client-side image processing)
media.sideload
- UpdateWrite
Update a media item: only the fields you pass change
media.update
Menu Items
- Autosaves.CreateWrite
Create a autosave for a menu item
menuItems.autosaves.create
- Autosaves.GetRead-only
Get one autosave of a menu item
menuItems.autosaves.get
- Autosaves.ListRead-only
List the autosaves of a menu item
menuItems.autosaves.list
- CreateWrite
Create a menu item
menuItems.create
- DeleteDestructive
Delete a menu item; without force true it goes to the trash
menuItems.delete
- GetRead-only
Get one menu item
menuItems.get
- ListRead-only
List menu items, one page at a time, with search and filters
menuItems.list
- UpdateWrite
Update a menu item: only the fields you pass change
menuItems.update
Abilities
- Categories.GetRead-only
Get one ability category
abilities.categories.get
- Categories.ListRead-only
List the ability categories
abilities.categories.list
- GetRead-only
Get one registered ability with its input and output schema
abilities.get
- ListRead-only
List the abilities registered on the site (the Abilities API): name, label, input and output schema and annotations
abilities.list
- RunDestructive
Run an ability that changes something (sent as POST with its input); what it does depends on the ability
abilities.run
- Run DestructiveDestructive
Run an ability marked destructive (sent as DELETE)
abilities.runDestructive
- Run ReadonlyRead-only
Run an ability marked readonly (sent as GET with its input)
abilities.runReadonly
Site Health
- Authorization HeaderRead-only
Run the Site Health test that checks the Authorization header reaches WordPress
siteHealth.authorizationHeader
- Background UpdatesRead-only
Run the Site Health test that checks automatic background updates can work
siteHealth.backgroundUpdates
- Directory SizesRead-only
Get the size of the site's directories (WordPress, themes, plugins, uploads, database); can be slow on big sites
siteHealth.directorySizes
- Dotorg CommunicationRead-only
Run the Site Health test that checks the site can reach WordPress.org
siteHealth.dotorgCommunication
- Https StatusRead-only
Run the Site Health test that checks the site is served over HTTPS
siteHealth.httpsStatus
- Loopback RequestsRead-only
Run the Site Health test that checks the site can make loopback requests to itself
siteHealth.loopbackRequests
- Page CacheRead-only
Run the Site Health test that checks for a page cache and its response times
siteHealth.pageCache
Global Styles
- GetRead-only
Get one global styles record
globalStyles.get
- Revisions.GetRead-only
Get one revision of a global styles record
globalStyles.revisions.get
- Revisions.ListRead-only
List the revisions of a global styles record, one page at a time
globalStyles.revisions.list
- ThemeRead-only
Get the active theme's base global styles (theme.json settings and styles)
globalStyles.theme
- Theme VariationsRead-only
List a theme's style variations
globalStyles.themeVariations
- UpdateWrite
Update a global styles record: only the fields you pass change
globalStyles.update
Categories
- CreateWrite
Create a category
categories.create
- DeleteDestructive
Delete a category; WordPress needs force true for this type, which deletes it permanently
categories.delete
- GetRead-only
Get one category
categories.get
- ListRead-only
List categories, one page at a time, with search and filters
categories.list
- UpdateWrite
Update a category: only the fields you pass change
categories.update
Comments
- CreateWrite
Create a comment
comments.create
- DeleteDestructive
Delete a comment; without force true it goes to the trash
comments.delete
- GetRead-only
Get one comment
comments.get
- ListRead-only
List comments, one page at a time, with search and filters
comments.list
- UpdateWrite
Update a comment: only the fields you pass change
comments.update
Menus
- CreateWrite
Create a classic menu
menus.create
- DeleteDestructive
Delete a classic menu; WordPress needs force true for this type, which deletes it permanently
menus.delete
- GetRead-only
Get one classic menu
menus.get
- ListRead-only
List classic menus, one page at a time, with search and filters
menus.list
- UpdateWrite
Update a classic menu: only the fields you pass change
menus.update
Pattern Categories
- CreateWrite
Create a pattern category
patternCategories.create
- DeleteDestructive
Delete a pattern category; WordPress needs force true for this type, which deletes it permanently
patternCategories.delete
- GetRead-only
Get one pattern category
patternCategories.get
- ListRead-only
List pattern categories, one page at a time, with search and filters
patternCategories.list
- UpdateWrite
Update a pattern category: only the fields you pass change
patternCategories.update
Plugins
- DeleteDestructive
Delete an inactive plugin's files from the site
plugins.delete
- GetRead-only
Get one plugin
plugins.get
- InstallDestructive
Install a plugin from the WordPress.org directory by its slug, optionally activating it (runs third-party code on the site)
plugins.install
- ListRead-only
List plugins
plugins.list
- UpdateDestructive
Activate or deactivate an installed plugin (status active, inactive or network-active)
plugins.update
Tags
- CreateWrite
Create a tag
tags.create
- DeleteDestructive
Delete a tag; WordPress needs force true for this type, which deletes it permanently
tags.delete
- GetRead-only
Get one tag
tags.get
- ListRead-only
List tags, one page at a time, with search and filters
tags.list
- UpdateWrite
Update a tag: only the fields you pass change
tags.update
Widgets
- CreateWrite
Create a widget
widgets.create
- DeleteDestructive
Delete a widget; WordPress needs force true for this type, which deletes it permanently
widgets.delete
- GetRead-only
Get one widget
widgets.get
- ListRead-only
List widgets
widgets.list
- UpdateWrite
Update a widget: only the fields you pass change
widgets.update
Widget Types
- EncodeRead-only
Encode a legacy widget's form data into the instance a widget block stores
widgetTypes.encode
- GetRead-only
Get one widget type
widgetTypes.get
- ListRead-only
List widget types
widgetTypes.list
- RenderRead-only
Render a legacy widget instance to HTML
widgetTypes.render
Block Editor
- ExportRead-only
Export the active block theme with the site's customizations as a zip (returned as a file)
blockEditor.export
- Navigation FallbackWrite
Get (or create) the navigation menu the editor falls back to when a Navigation block has none
blockEditor.navigationFallback
- Url DetailsRead-only
Fetch a URL's title, description, icon and image, as the editor's link previews do
blockEditor.urlDetails
Block Types
- GetRead-only
Get one block type
blockTypes.get
- ListRead-only
List block types
blockTypes.list
- List By NamespaceRead-only
List the registered block types in one namespace (for example `core`)
blockTypes.listByNamespace
Icons
- GetRead-only
Get one icon
icons.get
- ListRead-only
List icons, one page at a time, with search and filters
icons.list
- List By CollectionRead-only
List the icons in one icon collection
icons.listByCollection
Sidebars
- GetRead-only
Get one widget area (sidebar)
sidebars.get
- ListRead-only
List widget areas (sidebars)
sidebars.list
- UpdateWrite
Update a widget area (sidebar): only the fields you pass change
sidebars.update
Block Patterns
- CategoriesRead-only
List the registered block pattern categories
blockPatterns.categories
- ListRead-only
List the block patterns registered on the site (theme, core and plugin patterns)
blockPatterns.list
Font Collections
- GetRead-only
Get one font collection
fontCollections.get
- ListRead-only
List font collections, one page at a time
fontCollections.list
Icon Collections
- GetRead-only
Get one icon collection
iconCollections.get
- ListRead-only
List icon collections, one page at a time, with search and filters
iconCollections.list
Menu Locations
- GetRead-only
Get one menu location
menuLocations.get
- ListRead-only
List menu locations
menuLocations.list
Oembed
- EmbedRead-only
Get the oEmbed data (title, author, HTML embed code) for a URL on this site
oembed.embed
- ProxyRead-only
Get oEmbed data for a URL on another site (YouTube, X, Vimeo ...) through the site, as the block editor does
oembed.proxy
Rest
- GetRead-only
GET any route on the site's REST API, such as a custom post type (`wp/v2/book`) or another plugin's namespace (`yoast/v1/...`, `acf/v3/...`); returns the JSON as is
rest.get
- SendDestructive
POST, PUT, PATCH or DELETE any route on the site's REST API (a custom post type, another plugin's route); returns the JSON as is
rest.send
Settings
- GetRead-only
Get the site's settings: title, tagline, URL, admin email, timezone, date and time formats, language, posts per page, default category, comment settings and more
settings.get
- UpdateWrite
Update site settings: only the settings you pass change
settings.update
Statuses
- GetRead-only
Get one post status
statuses.get
- ListRead-only
List post statuses
statuses.list
Taxonomies
- GetRead-only
Get one taxonomy
taxonomies.get
- ListRead-only
List taxonomies
taxonomies.list
Themes
- GetRead-only
Get one theme
themes.get
- ListRead-only
List themes
themes.list
Types
- GetRead-only
Get one post type
types.get
- ListRead-only
List post types
types.list
Batch
- RunDestructive
Run up to 25 write requests (POST, PUT, PATCH, DELETE on routes that allow batching) in one call; with validation require-all-validate nothing runs unless every request validates
batch.run
Block Directory
- SearchRead-only
Search the WordPress.org block directory for installable block plugins
blockDirectory.search
Block Renderer
- RenderRead-only
Render a dynamic block (a server-side rendered block such as core/latest-posts) with attributes to HTML
blockRenderer.render
Pattern Directory
- SearchRead-only
Search the WordPress.org pattern directory
patternDirectory.search
Search
- QueryRead-only
Search posts, terms or post formats across types, one page at a time: title, URL, type and subtype of each match
search.query
Site
- IndexRead-only
Get the site's REST discovery document: name, description, URL, timezone, the namespaces it serves (wp/v2, plugins' own) and every route with its methods and args
site.index
View Config
- GetRead-only
Get the data views configuration the admin screens use for an entity
viewConfig.get
Connect WordPress to Claude, ChatGPT or Cursor
- 1
Connect WordPress in Corsair
Add your WordPress API key once in Corsair. Corsair stores the credential encrypted and makes the WordPress API calls for your agent, so it never goes into a prompt or a config file. Connect WordPress
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs WordPress. On a ChatGPT personal plan, connect WordPress here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, WordPress's read and write operations run right away and its 34 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/wordpress, add the WordPress plugin, and connect with an API key. Then call methods like corsair.wordpress.api.abilities.categories.get() from your app. Corsair keeps each tenant isolated.
Yes. WordPress requires an API key from your WordPress account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit WordPress, GitHub, Notion, Stripe, and the rest. Trigger WordPress from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for self-hosted WordPress sites (and WordPress.com sites with application passwords): posts, pages, media uploads, revisions and autosaves, categories, tags and custom taxonomies, comments, users and application passwords, site settings, plugins (install, activate, delete), themes, block templates and template parts, global styles, navigation and classic menus, widgets and sidebars, block types, patterns and fonts, search, Site Health checks, the Abilities API, batch requests and any custom post type or plugin route (209 operations). Common builds include sync jobs, admin tooling, and agents that call WordPress APIs from your backend.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per WordPress API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/wordpress in the open repo. When WordPress ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your WordPress data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store WordPress data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put WordPress on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 34 destructive WordPress operations. You can change a link's mode at hub.corsair.dev/me.