Connect your AIClaude Code
Connect Claude Code to your MemberPress site.
One command adds your membership tools to Claude Code, in your terminal or your editor, for every site you build and run.
Before you start
- A MemberPress site you can log in to as an administrator
- Claude Code installed and signed in (it comes with Claude Pro, Max, Team and Enterprise plans, or an Anthropic Console account)
- About two minutes
Your site also needs a public https address and any permalink setting other than “Plain”.
Step 1. Install the Membership MCP plugin
Enter your site on the start page and we send you to your own MemberPress add-ons screen. There, type “MCP” in the Search add-ons box, then click Install Add-on on Membership MCP. It installs and activates in one step. Can't see it in Add-ons? That screen needs an active paid MemberPress license. Download the plugin zip, then upload it under Plugins > Add New > Upload Plugin.
After activation, open the Membership MCP screen in WordPress and click Connect. Sign in, or create your free account, when it opens, and approve the connection.
Step 2. Add Membership MCP in Claude Code
- Open a terminal. To have Membership MCP in every project, run the command below with
--scope useradded. Run it as shown to keep it to the project you are in. - Paste the command and press Enter. Claude Code saves the server; it doesn’t check the sign-in yet.
- Run
claude mcp listto see membership-mcp in the list.
claude mcp add --transport http membership-mcp https://mcp.membershipmcp.ai
One URL for every site: when you sign in, you pick your site. Connecting more than one site to the same AI app? Use each site’s own address from its card in your account, and name each connection after its site. On that card, open Connect this site on its own.
Step 3. Sign in with your email
Start Claude Code, type /mcp, pick membership-mcp and choose Authenticate. Your browser opens the Membership MCP sign-in. Sign in with Google, or with your email and password. The first time, choose Continue with Google, or Sign up with your email and a password, to create your free account. Then pick your site.
Step 4. Try it
Ask in Claude Code as you normally would. It picks Membership MCP’s tools when they fit, and asks before it runs one unless you have changed its permission settings.
Start with a question or two, then a change. Use your own plans and dates.
- “Who signed up this week, and which plan did each person pick?”
- “Which members had a failed payment in the last 7 days?”
- “Set up a Studio Monthly plan at $39 with a 7-day free trial, as a draft.”
For a change like the last one, Membership MCP prepares a preview by default. A draft plan is not for sale until you publish it, and putting a plan on sale always waits for your approval in your AI app. More tested asks are in the playbooks.
One project, every project, or the whole team
Claude Code keeps a server in one of three places. The default, --scope local, is just you, in the current project. --scope user is just you, in every project. --scope project writes it to .mcp.json in the project, so everyone who opens that project gets it and signs in with their own email.
Agencies with a project per client site can add a separate server per site, named after the site, so the right one loads with the right code.
To remove it, run claude mcp remove membership-mcp. To sign out first, choose Clear authentication in /mcp.
What Claude Code can do once connected
Find and update members, spot failed payments and upcoming renewals, set up plans and coupons, protect content with access rules, enroll, cancel or refund when you ask, and pull revenue and churn reports. Everything you can do · Tools reference.
Safe by default
Reads never change anything. Changes show a preview by default, and riskier ones, like refunds and anything that goes live, always wait for your approval in your AI app. Every action is logged on your own site, and a pause switch in the plugin stops all changes. How you stay in charge.
Common questions
Does Claude Code need a paid plan for this?
Claude Code comes with Claude Pro, Max, Team and Enterprise plans, and with Anthropic Console accounts. Adding an MCP server costs nothing extra. Anthropic sets these rules and can change them.
Can I connect more than one site?
Yes. Install and connect the plugin on each site and sign in with the same email. Client sites covers the details.
What if the connection fails?
Most problems are a site that isn’t public, “Plain” permalinks, or a security plugin blocking the WordPress REST API. Connection errors walks through each one.
How do I remove it?
Disconnect on your site from the Membership MCP screen; that cuts off every AI at once. Then remove Membership MCP from Claude Code. Remove a site.
Talk to your membership site from Claude Code.
The MCP for WordPress memberships. Free with MemberPress, 50 actions a day.
Connect once, on your own site. Then just ask.