MetorialDocs

Set up Memberstack in Metorial for Claude, ChatGPT and Cursor

Share Memberstack with your team in Claude, ChatGPT and Cursor through Metorial: API secret key sign-in, 12 tools (6 read-only).

To give your team Memberstack in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Memberstack integration in a Metorial portal, and each person connects with an API secret key. Agents can manage Memberstack members, authentication tokens, free membership plans, and data table records. The integration has 12 tools, 6 read-only, 4 write and 2 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Memberstack in a portal and how each person connects
  • What Memberstack asks for when you connect, and where to find it
  • How to keep the 6 read-only tools and reject the other 6

Before you start

Sign-in method

MethodTypeWhat a person provides
API Secret KeyAPI tokentoken

API Secret Key

To connect, a person enters:

  • token: Your Memberstack secret API key (starts with sk_sb_ for sandbox or sk_ for live)

Admin: share Memberstack in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Memberstack. For how members connect, choose Each person connects so everyone enters their own API secret key, or Shared connection to enter one API secret key for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Memberstack.

Choose who gets it

Add the access groups that should see Memberstack. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Memberstack integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search memberstack

Employee: connect Memberstack

In the portal

Open Memberstack in the catalog

Sign in to your portal and open Memberstack. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API secret key (token).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search memberstack
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Memberstack connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list memberstack
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as get_member and list_members, and lose the 4 write tools, such as create_member or update_member, and the 2 destructive tools, such as delete_member or manage_data_record.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list memberstack
metorial tools <integration-id>
metorial call <integration-id> list_members -d '{}'

metorial tools lists the 12 tools, minus any you rejected. list_members takes no input. It lists members in your Memberstack app with cursor-based pagination.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (6)

  • verify_member_token: Verify a member's JWT authentication token server-side. Needs memberToken.
  • get_member: Retrieve a single member's full details by their member ID or email address. Needs memberIdOrEmail.
  • list_members: List members in your Memberstack app with cursor-based pagination.
  • query_data_records: Query, retrieve, or count records from a table discovered with list_data_tables.
  • list_data_tables: Discover data table IDs, keys, names, field definitions, and access rules.
  • get_data_table: Inspect a data table by a key or ID discovered with list_data_tables.

Write tools (4)

  • manage_member_plan: Add or remove a free plan from a member. Needs memberId, planId and action.
  • create_member: Create a new member in your Memberstack app. Needs email and password.
  • update_member: Update an existing member's email, verification status, profile image, custom fields, metadata, JSON data, or login redirect. Needs memberId.
  • create_passwordless_member: Create a member without a password in an app with email/OTP authentication enabled.

Destructive tools (2)

  • delete_member: Permanently delete a member from your Memberstack app. Needs memberId.
  • manage_data_record: Create, partially update, or permanently delete a data table record.

Triggers

Memberstack has 2 triggers, which fire on events in Memberstack:

  • plan_connection_events: Triggers when a member's plan connection is created, updated, or canceled.
  • member_events: Triggers when a member is created, updated, or deleted.

Next steps