AI & WordPress · Guide
How to Connect Claude to WordPress (Step by Step)

Short answer
To connect Claude to a WordPress.com site, open Connectors in Claude's settings, choose the WordPress.com connector and approve access. For a self-hosted site, install an MCP server plugin such as the official MCP Adapter, then add its URL in Claude as a custom connector. Always use a dedicated user with limited permissions.
Key takeaways
- WordPress.com sites can use the official WordPress.com connector in Claude.
- Self-hosted sites connect through an MCP server added as a custom connector.
- Claude Code can work with any site through the REST API and application passwords.
- AI plugins can call Claude inside the editor using an Anthropic API key.
- Give Claude its own low-privilege user and start with read-only tasks.
How do you connect Claude to WordPress?
Connect Claude to a WordPress.com site with the official WordPress.com connector in Claude's connectors directory, or connect a self-hosted site by running an MCP server on it and adding that server to Claude as a custom connector.
There are also lighter options. You can use Claude through an AI plugin that accepts an Anthropic API key, or let Claude Code work with your site through the WordPress REST API.
Which route you take depends on where your site is hosted and what you want Claude to do. Reading stats and drafts is very different from letting an AI agent publish or change settings. This guide covers each option step by step, plus the security basics.
What does connecting Claude to WordPress let you do?
A connection lets Claude read information from your site, such as posts, pages, comments and stats, and, if you allow it, carry out tasks like drafting posts or updating content, all from a normal Claude chat.
Typical uses include:
- Asking which posts got the most traffic last month.
- Reviewing drafts for tone, length or missing headings.
- Finding pending comments that need replies.
- Drafting new posts or updating old ones.
- Checking site details before planning a change.
Without a connection, you have to copy and paste content into Claude. A connector gives Claude direct, permission-based access instead.
What is MCP and why does it matter here?
MCP, the Model Context Protocol, is an open standard that lets AI apps like Claude talk to outside tools and data, and it is the main way Claude connects to WordPress sites today.
The Model Context Protocol site explains the basics. An MCP server offers tools, and an MCP client, such as the Claude app, uses them.
For WordPress, that means your site, or WordPress.com, runs an MCP server, and Claude connects to it. Our explainer on what WordPress MCP is covers how the Abilities API and MCP Adapter fit together.
How do you connect Claude to a WordPress.com site?
In Claude, open the connectors settings, find the WordPress.com connector, click Connect, sign in to your WordPress.com account and approve access, and Claude can then work with the sites on that account.
WordPress.com launched an official Claude connector in early 2026, as reported by TechCrunch. It first focused on read access, such as stats, posts and comments, and WordPress.com has since added more capabilities.
Steps:
- Open Claude on the web or desktop app.
- Go to Settings and open Connectors.
- Browse or search for WordPress.com. The WordPress.com connector page shows its details.
- Click Connect and sign in to WordPress.com.
- Review the permissions and approve.
- Start a new chat and ask Claude about your site.
Connector availability can depend on your Claude plan, and on your WordPress.com plan and settings. If you do not see the option, check both accounts' current help pages.
How do you connect Claude to a self-hosted WordPress site?
For a self-hosted site, install an MCP server plugin, such as the official MCP Adapter, create a secure way for Claude to log in, then add the site's MCP server URL in Claude as a custom connector.
The usual flow looks like this:
- Back up the site and ideally test on staging first. See how to set up a staging site.
- Install an MCP server. The WordPress Developer Blog's MCP Adapter introduction explains the official option, which builds on the Abilities API added in WordPress 6.9.
- Choose which abilities to expose. Only allow the actions you actually want Claude to run.
- Set up authentication. Use a dedicated WordPress user and the login method your MCP plugin requires.
- Add a custom connector in Claude. In Claude's connectors settings, choose to add a custom connector and paste your server URL.
- Test with a harmless request, like listing recent posts.
Anthropic's help article on using remote MCP servers with Claude explains the custom connector screen. Third-party MCP plugins also exist, each with its own setup docs.
How do you connect Claude Desktop or Claude Code?
Claude Desktop and Claude Code can use local MCP servers defined in a config file, and Claude Code can also call the WordPress REST API directly using a user's application password.
For Claude Desktop, some WordPress MCP tools provide a small local proxy. You add it to Claude Desktop's MCP configuration with your site URL and credentials, then restart the app.
For Claude Code, the simplest path is often the REST API. You give it your site URL and an application password, and it can read and update content through standard endpoints.
Our guide on using the WordPress REST API explains the endpoints.
Our guide on application passwords shows how to create and revoke them. Never paste credentials into a public repository or shared file.
How do you use Claude inside WordPress with an API key?
Some WordPress AI plugins let you choose Anthropic's Claude as the model by pasting an Anthropic API key into the plugin settings, so Claude can write or edit content right inside the WordPress editor.
This is the reverse direction. Instead of Claude reaching into WordPress, WordPress calls Claude.
Steps are usually:
- Create an API key in the Anthropic Console.
- Install an AI plugin that supports Anthropic models.
- Paste the key into the plugin's settings.
- Use the plugin's tools in the editor.
API usage is billed separately from a Claude chat subscription. Check the current rates on Anthropic's pricing page before heavy use. Our guide on how to connect an AI model to WordPress covers this approach in more depth.
Which connection method should you choose?
Choose the WordPress.com connector if your site is on WordPress.com, an MCP server for self-hosted sites, the REST API for scripted developer work, and an API-key plugin if you want Claude inside the editor.
| Method | Site type | Setup effort | Best for |
|---|---|---|---|
| WordPress.com connector | WordPress.com | Low | Asking about stats, posts and comments in chat |
| MCP server + custom connector | Self-hosted | Medium | Controlled AI actions on your own site |
| Claude Desktop local MCP | Self-hosted | Medium | Power users on one computer |
| REST API with Claude Code | Any with REST API | Medium to high | Developers and bulk content tasks |
| AI plugin with Anthropic API key | Self-hosted | Low | Writing help inside the editor |
How do you keep the connection secure?
Treat Claude like a new team member: give it its own WordPress user with the lowest role that works, expose only needed actions, use revocable credentials, and review what it does.
Practical rules:
- Least privilege. An Author or Editor role is often enough. Avoid Administrator unless truly needed. See WordPress user roles.
- Separate credentials. Use a dedicated application password or token you can revoke without affecting your own login.
- Limit abilities. Expose read actions first. Add write actions only after testing.
- Keep humans in the loop. Ask Claude to save content as drafts, then review before publishing.
- Log and review. Check post revisions and activity logs after AI-made changes.
Remember that AI can make mistakes. It may misread a request or change the wrong post, so keep backups current.
Why is Claude not connecting to your site?
Claude usually fails to connect because the MCP server URL is wrong, authentication fails, a security plugin or firewall blocks the requests, or the REST API is disabled on your site.
Check these:
- Open the MCP or REST URL in a browser to confirm it responds.
- Confirm the user and password or token are correct and not revoked.
- Look in your security plugin's logs for blocked requests.
- Make sure the site uses HTTPS with a valid certificate.
- Check Site Health for REST API errors.
If the WordPress.com connector fails, disconnect it in Claude, then connect again and approve access. Also check that you are signed in to the right WordPress.com account.
What should you do after connecting?
After connecting, start with read-only questions, then try one small, low-risk task like drafting a post, and check the result in WordPress before giving Claude more responsibility.
Good first prompts include asking for a list of your five newest drafts, or a summary of last week's top posts.
Review your connection settings every few months. Remove access you no longer use, and rotate credentials if anyone leaves your team. For a wider view of AI tools in WordPress, see our overview of WordPress AI features.
Frequently asked questions
Is there an official Claude connector for WordPress?
Yes, for WordPress.com sites. WordPress.com offers an official connector in Claude's connectors directory. Self-hosted WordPress sites connect through MCP server plugins, such as the official MCP Adapter, added to Claude as a custom connector.
Can Claude publish posts on my WordPress site?
It can if the connection exposes write actions and the connected user has permission to publish. Many site owners prefer letting Claude create drafts only, then reviewing and publishing them by hand.
Do I need a paid Claude plan to connect WordPress?
Connector features and limits depend on your Claude plan and can change over time. Check Anthropic's current plan details to see which connectors and custom connector options your plan includes.
Is it safe to connect Claude to WordPress?
It can be safe if you use a dedicated user with the lowest role needed, expose only the actions you want, use revocable credentials and keep backups. Test on a staging site before connecting a live store.
What is the difference between a connector and an API key plugin?
A connector lets Claude reach into your site from a Claude chat. An API key plugin works the other way, letting WordPress send requests to Claude from inside your dashboard and editor.
Sources
- WordPress.com connector Claude
- Get started with custom connectors using remote MCP Claude Help Center
- From Abilities to AI Agents: Introducing the WordPress MCP Adapter WordPress Developer Blog
- It just got easier for Claude to check in on your WordPress site TechCrunch
- Model Context Protocol modelcontextprotocol.io
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


