How to Connect Claude with WordPress in 2026

|
Background Gradient

If you manage WordPress sites and you’re still manually logging into wp-admin to execute what should be repeatable operations, you’re spending time you don’t have to.

In 2026, connecting Claude to WordPress via MCP (Model Context Protocol) means Claude can create posts, manage plugins, clean up taxonomies, and audit your site through natural language commands. Whether you prefer Claude Desktop for visual workflows or Claude Code for terminal-first development, setup takes under five minutes with the right approach.

Key Takeaway

Connect Claude

MCP is the protocol that lets Claude call real WordPress tools instead of just generating text about them

Connect Claude

InstaWP’s managed MCP server requires zero Node.js setup, no proxy configuration, and no Application Password creation; one toggle and you’re connected

Connect Claude

Claude Code users can connect to any InstaWP site with a single terminal command: claude mcp add --transport http mymcp <your-mcp-url>

What is MCP and Why Does It Matter for WordPress?

Model Context Protocol (MCP) is an open protocol developed by Anthropic that standardizes how AI clients communicate with external services. Think of it as a universal API layer between AI assistants and the tools they need to use.

In technical terms, MCP defines:

  • Tool discovery: How Claude learns what actions are available
  • Tool invocation: How Claude calls those actions with parameters
  • Response handling: How results are returned in structured format

For WordPress, this means exposing REST API endpoints as “tools” that Claude can call. Instead of you manually executing POST /wp/v2/posts, Claude interprets your natural language command and makes that API call for you—with proper authentication, parameter formatting, and error handling.

Claude Desktop to WordPress Operation Flow

The WordPress MCP server is the critical middleware. It receives structured requests from Claude, maps them to WordPress REST endpoints, handles authentication via Application Passwords, and returns formatted responses.

Connect Claude with WordPress in 2026: An Overview

When people say “Claude can manage WordPress,” what they really mean is: Claude can call a set of tools that can read/write your site.

Connect Claude with WordPress

In a WordPress context, those tools map to real actions, list posts, update terms, activate/deactivate plugins, manage users, executed through authenticated WordPress REST API calls.

A Claude-connected WordPress stack is less about novelty and more about deleting repetitive ops work.

  • Content ops without friction: “Create drafts for these 12 titles, assign categories/tags, and set featured images from these URLs.”
  • Taxonomy cleanups at scale: “Merge tags A/B, update affected posts, and redirect old tag URLs.”
  • Plugin hygiene: “List active plugins, flag anything suspicious/outdated, and propose a safe update plan.”
  • Client-site ops: Standardize repeatable checklists across many installs—without building one-off scripts every time.

How to Connect Claude With WordPress: Best Methods in 2026

There are several ways to connect Claude to WordPress, and we’ll cover all of them. But for most developers and agencies, InstaWP’s built-in MCP server is the right default because it collapses setup friction to nearly zero and pairs the AI connection with an environment designed for safe iteration.

When you enable MCP on an InstaWP site, the platform automatically installs the MCP plugin on your WordPress site, generates a 64-character secure authentication token, creates your unique connection URL, and activates SSE (Server-Sent Events) transport. You never touch a config file or create an Application Password manually. The entire authentication stack is managed for you.

More importantly, InstaWP’s MCP connection works on sandbox and staging not just live production installs. This means you can connect Claude to a real WordPress environment, run real operations, verify the results, and know that nothing on a live client site is at risk. Once the workflow is confirmed, you apply it to production. That’s the workflow loop that actually makes AI reliable in production settings.

FactorInstaWP Managed MCPManual MCP ServerWordPress MCP Plugin
Setup TimeUnder 2 minutes15-30 minutes10-15 minutes
Technical Skill RequiredNone (dashboard UI)Intermediate (Node.js, npm, config files)Basic (plugin installation)
InfrastructureFully managed by InstaWPSelf-hosted Node.js processRuns inside WordPress
InstallationOne-click enablenpm install + manual configUpload & activate plugin
ConfigurationZero config neededEdit .env and JSON filesPlugin settings page
Token ManagementVisual dashboard UIManual file editingPlugin admin interface
Multi-Site SupportCentralized dashboardSeparate config per sitePer-site plugin install
Staging/TestingBuilt-in sandboxesDIY setup requiredRequires separate staging
Updates & MaintenanceAutomaticManual npm updatesManual plugin updates
Server RequirementsNone (cloud-hosted)Node.js 18+, npmPublic WordPress URL, SSL
Works with LocalhostYes (InstaWP sites)YesNo (needs public URL)
ExtensibilityStandard WordPress toolsFull Node.js ecosystemLimited to PHP
Performance ImpactNone on WordPressSeparate processAdds load to WordPress
CostIncluded with InstaWPFree (self-hosted)Free (open-source)
SupportInstaWP support teamCommunity/GitHubCommunity/GitHub
Best ForAgencies, teams, fast deploymentDevOps-savvy developers, custom needsSimple setups, single sites

Let’s discuss all these methods in detail.

Method 1: Connect Claude Desktop to WordPress via InstaWP MCP

Claude Desktop is the visual interface for Claude; the app you install on Mac or Windows. This method is the right choice if you want a conversational interface for WordPress management without writing terminal commands.

What you need:

  • Claude Desktop installed (download here)
  • An InstaWP account (Sandbox plan or above)

📺 Watch the setup tutorial: Enable MCP on WordPress sites using InstaWP

Step 1: Create or open a site in InstaWP

Navigate to your Sites page in the InstaWP dashboard. Create a new site or open an existing one. InstaWP provisions WordPress sites in seconds, so if you want to start with a clean staging environment, that’s the fastest path.

Connect Claude

Step 2: Enable MCP

Click the site name to open the Site Details page. In the left sidebar, click the MCP option.

Access MCP on InstaWP

Toggle “Enable MCP” to ON.

Enable WordPress MCP Server feature of InstaWP

As you do so, you will get a unique WordPress MCP server URL as a dedicated WordPress MCP plugin is installed remotely, a secure authentication token is created, and SSE (Server-Sent Events) transport is activated.

WordPress MCP Server is Now Enabled

Step 3: Add the connector in Claude Desktop

Open Claude Desktop and go to Settings.

On Mac, that’s Cmd+,; on Windows, Ctrl+,.

Navigate to the Connectors section (sometimes labeled Integrations depending on your version). Click “Add Custom Connector,” give it a descriptive name like “Client Site – Acme Corp,” and paste your MCP URL. Click Add..

Connect Claude

Step 4: Verify the connection

Start a new conversation in Claude Desktop and ask something like: “What posts are on my WordPress site?” Claude will call the MCP server, query your posts via the REST API, and return a formatted list. If that works, the connection is live.

You now have Claude with authenticated read and write access to your WordPress site, operating through natural language in a visual chat interface.

List all posts on my WordPress site

Claude will call the MCP server, query your posts via REST API, and return a formatted list. If this works, your MCP server WordPress integration is live.

Connect Claude

Now, Claude desktop is fully connected with WordPress, and you can do remote management of your site.

If you prefer using Claude Code, a terminal-based tool for developers who prefer working in the command line, the steps are little different.

Using Claude Code for WordPress is particularly useful for agencies and developers who want to script, automate, or chain WordPress operations as part of a larger development workflow without leaving the terminal.

What you need:

  • Claude Code CLI installed (see Claude Code docs)
  • MCP enabled on your InstaWP site (same steps as Method 1, Steps 1 and 2)
  • Your MCP connection URL copied from the InstaWP dashboard

Step 1: Run the connection command

Open your terminal and run:

claude mcp add --transport http mymcp <mcp_url>

Replace <your-mcp-url> with the actual connection URL from your InstaWP dashboard. A real command looks like this:

claude mcp add --transport http mymcp https://yoursite.instawp.io/insta-mcp?t=your-auth-token-here

The label mymcp is just an identifier you choose. For agencies managing multiple client sites, use descriptive names like client-acme or staging-projectx.

Step 2: Start a Claude session

Run claude to start an interactive session.

You can now interact with your WordPress site directly from the terminal:

  • “Show me the latest 10 posts from my WordPress site”
  • “List all active plugins and flag any not updated in over a year”
  • “What categories have fewer than 3 posts assigned to them?”

Method 2: Manual WordPress MCP Server Setup

For developers who need full control over the infrastructure or are working outside of InstaWP, you can run the MCP server manually using the open-source Node.js package maintained by InstaWP.

This approach gives you complete control over the server environment and lets you extend the toolset with custom Node.js logic. The tradeoff is that you’re responsible for setup, maintenance, credential management, and ensuring your WordPress site is publicly accessible.

Prerequisites:

  • Node.js 18+ and npm or yarn
  • A WordPress site with REST API enabled and a publicly accessible URL
  • An Application Password generated for the WordPress user you want Claude to authenticate as

To generate an Application Password, go to Users > Profile in wp-admin, scroll to the Application Passwords section, enter a name (e.g., “MCP Integration”), click Add New, and copy the password including spaces.

Connect Claude

Scroll to Application Passwords and enter a name: “MCP Integration”. Click Add New Application Password. Copy the generated password (spaces are normal)

Connect Claude

Now, you need to install the WordPress MCP server. You’ve two options for this:

Option A: Run directly via npx (no installation)

For this, simply run this command.

npx -y @instawp/mcp-wp

Option B: Clone and build from source:

git clone https://github.com/InstaWP/mcp-wp.git
cd mcp-wp
npm install
npm run build

Now, create a .env file in the project root:

WORDPRESS_API_URL=https://your-wordpress-site.com
WORDPRESS_USERNAME=your_username
WORDPRESS_PASSWORD=xxxx_xxxx_xxxx_xxxx_xxxx_xxxx

⚠️ Security: Never commit .env files to version control. Add .env to your .gitignore.

Next step is to configure Claude desktop. For this, you need to edit your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the MCP server configuration:

{
  "mcpServers": {
    "wordpress": {
      "command": "npx",
      "args": ["-y", "@instawp/mcp-wp"],
      "env": {
        "WORDPRESS_API_URL": "https://your-site.com",
        "WORDPRESS_USERNAME": "your_username",
        "WORDPRESS_PASSWORD": "xxxx_xxxx_xxxx_xxxx"
      }
    }
  }
}

For local builds, use the absolute path:

{
  "mcpServers": {
    "wordpress": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-wp/build/index.js"],
      "env": {
        "WORDPRESS_API_URL": "https://your-site.com",
        "WORDPRESS_USERNAME": "your_username",
        "WORDPRESS_PASSWORD": "xxxx_xxxx_xxxx_xxxx"
      }
    }
  }
}
```

### 

Close and reopen Claude Desktop. The MCP server starts automatically when Claude launches. Test with a simple query:

What tools do you have available for WordPress?

Claude should list available MCP tools like list_content, create_content, discover_taxonomies, etc.

Method 3: WordPress MCP Plugin Approach

Some developers prefer a plugin-based approach where the MCP WordPress plugin runs entirely within WordPress, exposing an MCP endpoint without external server processes.

The WordPress AI team maintains an MCP Adapter that implements the protocol as a WordPress plugin:

  1. Download from <a href=”https://github.com/Automattic/wordpress-mcp”>GitHub – Automattic/wordpress-mcp
  2. Install via Plugins → Add New → Upload Plugin
  3. Activate the plugin
  4. Configure authentication in Settings → MCP

This approach keeps everything within WordPress but requires:

  • Your WordPress site to be publicly accessible
  • Proper SSL configuration
  • Application Password or OAuth setup

WordPress MCP Tools: What Claude Can Actually Do

Once connected, Claude gains access to these WordPress operations:

Content Operations:

Create a draft post titled "10 WordPress Performance Tips" with an 
introduction paragraph and 10 H2 subheadings as an outline.

Bulk Taxonomy Work:

List all tags with zero posts, then delete them.

Plugin Management:

Search for security plugins in the WordPress repository and show me 
the top 5 by rating.

Site Audit:

List all plugins, flag any that haven't been updated in over a year, 
and check if any have known vulnerabilities.

Conclusion: Choosing Your WordPress MCP Approach

For most developers and agencies, InstaWP’s managed WordPress MCP server offers the fastest path to productivity:

  • Zero infrastructure setup
  • Built-in staging for safe testing
  • Visual token management
  • Multi-site dashboard
  • Automatic updates

For teams with specific requirements, self-hosted infrastructure, custom tool development, or air-gapped environments, the manual MCP server setup provides full control at the cost of additional maintenance.

Either way, connecting Claude to WordPress via MCP eliminates the copy-paste workflow and transforms AI from a content generator into a genuine site management assistant.

Ready to start?

Create an InstaWP account and enable MCP with one click.

Frequently Asked Questions

Can I connect Claude to a WordPress.com site?

WordPress.com has its own MCP implementation. For self-hosted WordPress (WordPress.org), use the methods in this guide. WordPress.com sites use a different authentication flow—check WordPress.com’s MCP documentation for their specific setup.

Can my whole team use the same MCP connection?

Each team member needs Claude Desktop installed on their machine. You can share the same MCP URL (same permissions for everyone), generate individual tokens per team member (trackable, revocable), and create role-specific tokens (developers get Admin, content team gets Editor). Individual tokens are recommended for accountability and security.

Can I use MCP with WordPress Multisite?

Yes, but each subsite in the network needs its own MCP configuration. Each subsite gets a unique MCP URL and independent token management. The main site and subsites are treated as separate WordPress installations from MCP’s perspective.

What WordPress version is required to connect Claude with WordPress?

WordPress 4.7+ is required (when REST API was introduced). For best compatibility and security, use WordPress 6.0 or later. The MCP server uses standard REST API endpoints that have been stable for years.

Vikas Singhal

Founder, InstaWP

Vikas is an Engineer turned entrepreneur. He loves the WordPress ecosystem and wants to help WP developers work faster by improving their workflows. InstaWP, the WordPress developer’s all-in-one toolset, is his brainchild.
Like the read? Then spread it…
Facebook
Pinterest
LinkedIn
Twitter
You might also like

Get $25 in free credits — start building today.

Create your first site and unlock all premium features today.

Request demo

Wondering how to integrate InstaWP with your current workflow? Ask us for a demo.

Contact Sales

Reach out to us to explore how InstaWP can benefit your business.