The Memberstack MCP (Model Context Protocol) server connects AI tools like Claude Code, Codex, Cursor and Claude Desktop to your Memberstack apps. Ask in plain language and your AI assistant manages members, plans, data tables and gated content for you.
1) What Can You Do with the MCP Server?
- Manage members: create, update, search and export members in LIVE or SANDBOX.
- Work with data tables: build tables, define fields and manage records.
- Configure plans: set up plans, prices and plan logic.
- Control gated content: choose which pages are protected and which plans get access.
- Search the developer docs: look up how to write Memberstack code while you build.
- Switch contexts: move between your apps, and choose whether member operations use SANDBOX or LIVE data.
The server has 72 tools that understand the Memberstack data model, work across multiple apps, and respect environment boundaries. The always-current list is in the developer docs.
2) Installation & Setup
Prerequisites
- An MCP-compatible AI client, for example Claude Code, Codex, Cursor or Claude Desktop.
- A Memberstack account with dashboard access.
Fastest: Install the Plugin
The Memberstack plugin installs the MCP server together with a set of skills. The skills teach your AI assistant how to add logins, paid plans and gated content to a site with Memberstack, and how to use the server safely. With the plugin you can skip Step 1.
Claude Code:
claude plugin marketplace add Memberstack/memberstack-skills claude plugin install memberstack@memberstack-skills
Codex:
codex plugin marketplace add Memberstack/memberstack-skills codex plugin add memberstack@memberstack
Skills only (any AI assistant without a plugin system):
npx skills add Memberstack/memberstack-skills
Tips: Claude Code already open? Run
/reload-pluginsthere, or restart Claude Code, before you sign in. Running the two Claude Code commands again is harmless; they work from Claude Code 2.1.76. "Skills only" installs the skills without the MCP server, so add the server with Step 1.
Step 1: Add the Server to Your Client
To add only the MCP server, find your AI client below. The server lives at https://mcp.memberstack.com/mcp, and most clients connect to it directly: nothing to install, and no API key to paste.
Claude Code:
claude mcp add --transport http memberstack https://mcp.memberstack.com/mcp
This adds the server for the folder you run it in. Add --scope user to make it available in all your projects.
Codex:
codex mcp add memberstack --url https://mcp.memberstack.com/mcp
Cursor: add this to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"memberstack": {
"url": "https://mcp.memberstack.com/mcp"
}
}
}Claude Desktop and claude.ai: open Customize, then Connectors, choose Add custom connector and paste https://mcp.memberstack.com/mcp.
Other clients: use the same URL in your client's MCP settings. Some clients need a "type" next to the URL, such as "http" or "streamable-http"; check your client's MCP docs. If your client uses YAML:
mcpServers:
memberstack:
url: https://mcp.memberstack.com/mcpOlder clients that can't connect to a remote server: use the mcp-remote proxy instead. It needs Node.js installed.
{
"mcpServers": {
"memberstack": {
"command": "npx",
"args": [ "mcp-remote", "https://mcp.memberstack.com/mcp" ]
}
}
}Step 2: Sign In to Memberstack
Adding the server does not sign you in. Start the sign-in from your client:
-
Claude Code: start Claude Code, type
/mcp, pickmemberstackand choose to authenticate. -
Codex: run
codex mcp login memberstack. - Cursor and other clients: open the client's MCP settings or start a new conversation, and follow the sign-in prompt.
A browser window opens. Log in with your Memberstack dashboard credentials, choose the app to connect, and click Allow.
Security note: the server uses OAuth 2.1 with PKCE. Your password is never shared with the AI client; you sign in directly with Memberstack.
Step 3: Check the Connection
Ask your AI assistant: "List my Memberstack apps". It should use the listApps tool and show the apps you have access to.
3) Core Concepts
Apps
An app is a complete Memberstack project with its own members, plans, data tables and settings. The app you choose when signing in is active when a session starts; ask your assistant to switch apps to work on a different one (listApps, switchApp, currentApp).
Environments (LIVE vs. SANDBOX)
Only members, teams and data table records are separate in SANDBOX and LIVE. Plans, prices, gated content, custom fields and data table structure are shared by both, so changing or deleting them affects your live site even when the session is in SANDBOX.
- SANDBOX: a free test environment with Stripe test data. Member, team and data record changes don't touch your live members.
- LIVE: your real members and payments. Most features need a paid Memberstack plan.
Important: check your environment before making changes. Ask "What is my current Memberstack environment?" Bulk member import (
importMembers) only works in LIVE.
Signing Out and Switching Accounts
Your client remembers your sign-in. The active app and environment last only for the current connection, so check both at the start of a session. To sign out or switch Memberstack accounts:
-
Claude Code: run
/mcp, pickmemberstackand clear the authentication (or runclaude mcp logout memberstack), then sign in again from the same menu. -
Codex: run
codex mcp logout memberstack, thencodex mcp login memberstack. - Other clients: use the client's own sign-out for the server, or remove the server and add it again.
-
Using the
mcp-remoteproxy: delete its saved login withrm -rf ~/.mcp-auth, then restart your client.
Read-Only Connections
When your client signs in, it asks for the read scope, the write scope, or both. Most clients get full access. A client that asks for read without write gets a read-only connection: tools that change data are hidden, and if one is called anyway it returns an INSUFFICIENT_SCOPE error and nothing changes. Reading data, switching apps and switching environments still work. To make changes, sign in again with write access.
4) Key Tool Groups
App & Environment
List your apps, switch between them, create a new app, and choose SANDBOX or LIVE. Example tools: listApps, switchApp, switchMemberstackEnvironment
Members
Create, update and delete members, manage their plans, update metadata and notes, and import or export members in bulk. Example tools: createMemberEmailPassword, getMembers, updateMember, addFreePlan, exportMembers
Plans & Pricing
Create and manage plans and prices, import existing Stripe products, and set up plan logic. Stripe tools such as createPrice need a connected Stripe account and always act on your live setup. Example tools: createPlan, getPlans, createPrice, importStripeProduct
Data Tables
Create tables, define fields, and manage records: member profiles, directories or any custom content. Example tools: createDataTable, createDataTableField, createDataRecord, getDataRecords
Gated Content
Create content groups, protect pages by exact path or by path prefix (for example every page under pro/), and link plans to grant access. Wildcards like * are not supported. Example tools: createRestrictedUrlGroup, createRestrictedUrl, linkPlansToRestrictedUrlGroup
Docs Search
Searches the Memberstack developer docs, so your assistant can look up how to write Memberstack code even without web access. It reads nothing from your app. Tool: searchMemberstackDocs
5) Common Workflows
First-time setup
- "List my Memberstack apps"
- "Switch to the 'My Awesome Site' app"
- "What is my current Memberstack environment?"
- "Switch to SANDBOX for testing"
Creating a test member
- "Make sure I am in the SANDBOX environment"
- "Create a test member with the email test@example.com"
- "Find the 'Free Tier' plan and add it to test@example.com"
- "Show me the details for the member with email test@example.com"
Setting up gated content
- "Create a gated content group called 'Pro Articles'"
- "Add every page whose path starts with 'pro/' to the 'Pro Articles' group"
- "Grant access to the 'Pro Articles' group for anyone on the 'Pro Membership' plan"
- "Show me the configuration for the 'Pro Articles' content group"
Gated content groups are shared by SANDBOX and LIVE, so these changes apply to your live site.
6) Troubleshooting
Memberstack tools don't appear in my client
Fully quit and restart your client. Check that your configuration file has no syntax errors and is in the right place. If you used a command, check it with your client's list command (for example claude mcp list). In Claude Code, run /reload-plugins after installing the plugin from another terminal.
"Unauthorized" or "Bearer token required" errors
Your sign-in may have expired. Sign out of the server in your client and sign in again (see Signing Out and Switching Accounts).
"npx: command not found"
You're using the mcp-remote proxy, which needs Node.js. If your client can connect to a remote server itself, use the direct setup in Step 1 instead: it needs no Node.js. Otherwise install the latest LTS version from nodejs.org and restart your terminal and client.
I created a member but can't find them
You're probably in the other environment. Ask "What Memberstack environment am I in?" and switch between LIVE and SANDBOX.
"SUBSCRIPTION_REQUIRED" or "Stripe operations require LIVE mode" errors
Stripe tools like createPrice and importStripeProduct need a connected Stripe account. These messages appear when a Stripe tool fails while your session is in SANDBOX. The tools always act on your live setup, so switching environments won't fix it: check that Stripe is connected and that your Memberstack plan allows live mode.
"INSUFFICIENT_SCOPE" error
Your connection is read-only, so tools that change data are refused and nothing was changed. Sign in again with write access (see Read-Only Connections).
"No app is selected" error
Ask your assistant to list your apps (listApps), then switch to the one you want (switchApp).
7) Complete Tool Reference
All 72 tools, by group. The developer docs keep the always-current list.
| App & Environment (5) |
listApps, switchApp, createApp, getMemberstackEnvironment, switchMemberstackEnvironment
|
| Context (2) |
currentUser, currentApp
|
| Members (17) |
getMember, getMembers, getMembersCount, getMemberEvents, getSentEmails, createMemberEmailPassword, updateMember, updateMemberAuth, deleteMember, addFreePlan, removeFreePlan, removeOneTimePlan, createStripeCustomer, generateMemberPassword, importMembers, exportMembers, updateMemberNote
|
| Plans & Pricing (9) |
getPlans, getPlan, createPlan, updatePlan, deletePlan, createPrice, updatePrice, importStripeProduct, updatePlanLogic
|
| Data Tables (14) |
getDataTable, getDataTables, getDataTableField, getDataRecord, getDataRecords, createDataTable, updateDataTable, deleteDataTable, createDataTableField, updateDataTableField, deleteDataTableField, createDataRecord, updateDataRecord, deleteDataRecord
|
| Gated Content (15) |
getContentGroups, getContentGroup, createRestrictedUrl, updateRestrictedUrl, deleteRestrictedUrl, createRestrictedUrlGroup, updateRestrictedUrlGroup, deleteRestrictedUrlGroup, linkRestrictedUrlsToRestrictedUrlGroup, detachRestrictedUrlsFromRestrictedUrlGroup, linkPlansToRestrictedUrlGroup, detachPlansFromRestrictedUrlGroup, createCustomContent, updateCustomContent, deleteCustomContent
|
| Teams (4) |
getTeam, getTeamMembers, removeTeamMember, regenerateTeamInviteToken
|
| Custom Fields (4) |
getCustomFields, createCustomField, updateCustomField, deleteCustomField
|
| Conversion Testing (1) | getExperiments |
| Docs Search (1) | searchMemberstackDocs |
FAQ: How do I connect Memberstack to an MCP server or AI assistant?
Install the Memberstack plugin (Claude Code or Codex), or add https://mcp.memberstack.com/mcp as an MCP server in your AI client (Cursor, Claude Desktop and others), then sign in with your Memberstack dashboard account. Your assistant can then manage members, data tables, plans and gated content, and switch between SANDBOX and LIVE. See Installation & Setup above for the exact steps.
Comments
No comments yet. Start the conversation below.
Article is closed for comments.