Connect Claude Code to WordPress
One command adds MoraWP to Claude Code. Approve the websites it can reach, then work on WordPress from your terminal or editor.
Set up in three steps.
Works in the terminal, IDE extensions, and the Code tab in Claude Desktop. First, connect your WordPress website in MoraWP; it takes a minute.
- 01
Add the server
From your project, run this command. Add --scope user to use MoraWP in every project.
claude mcp add --transport http morawp https://mcp.morawp.com/mcp - 02
Sign in and approve
Open /mcp in Claude Code and authenticate MoraWP. Sign in in your browser, pick the workspace and the websites, and approve.
- 03
Ask for real work
Ask Claude Code to list your websites, then to read a page before it changes anything.
What you can ask Claude Code.
Plain requests, on any WordPress website you connected, with any plugin it runs.
Read the homepage blocks and fix the heading order.
Add a custom field for the event date to the events post type.
Check why the contact form stopped sending, then tell me what you found.
Update the plugins on staging and tell me what changed.
Safe by default.
Claude Code works only where you allow it. How MoraWP keeps you in control
- Only the websites you choose
You pick the workspace and the websites when you approve. Everything else stays out of reach.
- Big changes ask first
Updates, deleting, and code wait for your yes. See exactly what will run, then approve it once or for 30 minutes.
- Every action on record
Each request lands in your activity with the agent, the website, and how it went. Remove the agent any time.
Claude Code and WordPress, answered.
The full guide is in the MoraWP docs.
Yes. Claude Code works through MoraWP and the MoraWP Plugin, so it never needs your server login. File edits and WordPress commands ask you first.
Yes. In the Code tab, add MoraWP from Claude's connector directory under + → Connectors.
No. Claude Code signs in to MoraWP and you approve the connection in your browser. There is no key to copy and no WordPress password to share.
Claude Code can only do what you allow on each website. Big changes, like updating plugins, deleting content, or running code, ask you first: you see exactly what will run and approve it once or for 30 minutes. Every action is in your activity.
Any WordPress plugin. WooCommerce, Elementor, Rank Math, Yoast, Advanced Custom Fields and dozens more have abilities of their own, and every other plugin works through WordPress itself.
Yes. MoraWP is a remote MCP server for WordPress at https://mcp.morawp.com/mcp, with OAuth sign-in. The MoraWP Plugin on your website is what it talks to.