To connect an AI agent to WordPress with MCP, you need a compatible agent client, a WordPress-side integration that exposes tools, and an authorized connection between them. MCP standardizes communication; it does not automatically grant access or expose every part of a website.
Treat setup as an integration project. Confirm each layer before asking the agent to create or change content.
Understand abilities, tools, and clients
An ability describes a WordPress operation with structured input, output, and permission checks. An MCP adapter can expose supported abilities to a compatible client.
The client is the application where you interact with the agent. It must support the transport and authentication method used by the WordPress integration.
WordPress’s MCP Adapter repository documents the adapter’s current installation and configuration. Follow its version requirements and examples, because the ecosystem continues to change.

Choose the integration for your actual task
List the operations you need: read posts, inspect media, create drafts, or update a particular content type. Then verify that the chosen integration exposes those operations.
Do not assume that an adapter gives immediate access to page-builder layouts, SEO settings, or WooCommerce actions. Those features depend on registered abilities or connector-specific tools.
If a required capability is unavailable, report that gap before proceeding. An agent that can read a page’s rendered text may still be unable to edit its underlying layout safely.
Use the correct MCP server address
For the official adapter’s default HTTP server, the currently documented path is /wp-json/mcp/mcp-adapter-default-server on the WordPress site. A custom MCP plugin or custom server can expose a different address, so use the integration’s own instructions.
The adapter also supports a WP-CLI-based STDIO route. That is a different connection arrangement from pointing a remote HTTP client at your website. Do not combine configuration examples from the two transports without understanding the client requirements.
Installing an adapter and registering useful abilities are separate tasks. Check which abilities are exposed and which permission checks apply. A successful connection with no relevant tools does not mean that the agent can publish posts.
For a nondeveloper, a maintained connector with the specific content operations you need may be simpler than building custom abilities. For a developer, keep the registration code, schema, and permission checks under review as part of the integration.
Configure authentication and permissions
Use HTTPS and the authentication method documented for the chosen connector. Create a dedicated integration identity with limited capabilities rather than reusing an unrestricted personal administrator account.
Keep credentials in the client’s supported secret storage. Do not paste them into prompts, articles, screenshots, or shared configuration files.
WordPress permissions still matter behind the connection. A tool should verify that the authenticated user may act on the specific object, not just that someone supplied a valid credential.
Create a credential when the connector supports application passwords
For a self-hosted site using this authentication method, open Users → Profile for the dedicated integration account. In Application Passwords, enter a recognizable connection name and generate the password. Store the one-time value in the client’s secret configuration with the WordPress username.
Use HTTPS and the connector’s documented credential fields. An application password authenticates API requests as that user; it is not an interactive wp-admin login and does not narrow the user’s role by itself. Revoke it from the same profile when the connection is retired. See the WordPress application-password guide.
Do not impose this method on a connector that requires OAuth or another supported flow. For the official MCP Adapter, an ability marked public for MCP exposure still needs its permission checks; exposure is not anonymous authorization.
Map a content task to explicit capabilities
For an agent that creates drafts, list the necessary steps: identify a post type, read existing taxonomy terms, inspect available blocks, save a draft, assign its image and taxonomy, and read the saved result.
Check which operations your connector provides directly and which require separate tools. Do not assume a rendered-page reader can edit a page-builder layout or set an SEO plugin’s private metadata.
Use a dedicated test category or a clearly named draft so the first write is easy to find. Supply a unique title and record the returned post ID.
A create operation should not silently become an update to an existing page with a similar title. If you want an update, identify the intended object and confirm the current content before writing.
Begin with a read-only connection test
Ask the client to list the available tools and inspect basic site information. Confirm that the returned hostname is the intended website.
Next, read one known draft by ID. Compare the title and content with WordPress. This proves more than a generic connection-success message.
Check how errors appear. An expired credential or permission refusal should be visible as a failure, not silently converted into invented page content.
Troubleshoot the connection by layer
If authentication fails, confirm the hostname, credential type, HTTPS, account state, and connector requirements. Do not weaken site security simply to make the client stop reporting an error.
If the server is reachable but the tool list is empty, inspect ability exposure and server configuration. If a tool is listed but refuses an action, check the authenticated user’s permission for that specific object.
If a request returns a valid response but the content looks wrong, inspect the input schema and saved data. Unsupported blocks, sanitized markup, or ignored metadata are different problems from transport failure.
For timeouts during writes, read the current state before retrying. A timeout can occur after the server has saved the post but before the client receives the response. A blind retry may create duplicates.
Keep diagnostics limited to what is needed. Redact credentials and private content before sharing logs. Record the adapter version, client, transport, endpoint, and exact failing operation so the integration maintainer can reproduce the issue.
Test one controlled write
Create a clearly named test draft using supported blocks and a known category. Read it back and verify the status, content, and site address.
Then test an update to that same draft and inspect its revision or change record. Avoid public content until you understand how the integration handles conflicts, retries, and unsupported fields.
Remove the temporary test content only through your normal review process. Record the connector version, enabled tools, account, and revocation method.
For ongoing use, keep tool access matched to the workflow. A content assistant may need draft creation without user administration, plugin installation, or deletion. Verify those limits outside the prompt wherever the integration supports them.

Leave a Reply