Memberstack MCP by usefulapi

v1.2.1
io.usefulapi/memberstack Checked 3 days ago Published 1 day ago

Manage members, their plan links and data table records; verify member tokens in Memberstack.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

memberstack_list_members List members

List members of the app, one page at a time (newest or oldest first). Page with endCursor as after while hasNextPage is true. Admin REST API: GET /members.

ParameterTypeDescription
afterintegerendCursor from the previous page.
include_jsonbooleanInclude each member's json data (larger replies).
limitintegerMembers per page (default 50, max 100).
orderstringSort order (default ASC).

memberstack_get_member Get a member

Get one member by member id (mem_...) or by email address, with plan connections and custom fields. Admin REST API: GET /members/{id_or_email}.

ParameterTypeDescription
id_or_email *A member id (mem_...) or the member's email address.
include_teamsbooleanAlso return the member's team memberships.

memberstack_verify_token Verify a member token

Check a member's JWT (from the browser) is valid and not expired, and return its payload. An invalid token returns valid: false. Admin REST API: POST /members/verify-token.

ParameterTypeDescription
token *stringThe member's JWT as received from the browser.

memberstack_create_member Create a member

Create a member. Password is required unless the app uses passwordless sign-in. Plans must be free plans; paid plans need the browser checkout. Admin REST API: POST /members.

ParameterTypeDescription
email *stringThe member's email address.
custom_fieldsobjectCustom field values keyed by the field key shown in the dashboard.
free_plan_idsarrayFree plan ids (pln_...) to connect at creation.
jsonobjectFree-form JSON data for the member.
login_redirectstringPath to redirect to after sign-in, for example /dashboard.
meta_dataobjectMetadata for the member.
passwordstringAt least 8 characters. Omit only for passwordless apps.

memberstack_update_member Update a member

Change a member's email, custom fields, metadata, JSON data, login redirect, verified flag or profile image. Only the fields you pass change. Admin REST API: PATCH /members/{id}.

ParameterTypeDescription
member_id *string
custom_fieldsobjectCustom field values keyed by the field key shown in the dashboard.
emailstring
jsonobjectFree-form JSON data for the member.
login_redirectstring
meta_dataobjectMetadata for the member.
profile_imagestringURL of the member's profile image.
verifiedbooleanSet the email-verified status.

memberstack_add_free_plan Add a free plan to a member

Connect a free plan (no prices) to a member. Paid plans are rejected (plan-not-free). Admin REST API: POST /members/{id}/add-plan.

ParameterTypeDescription
member_id *string
plan_id *string

memberstack_remove_free_plan Remove a free plan from a member

Disconnect a free plan from a member, which removes the access that plan grants. Only free plans can be removed this way. Admin REST API: POST /members/{id}/remove-plan.

ParameterTypeDescription
member_id *string
plan_id *string

memberstack_list_data_tables List data tables

List the app's data tables with their fields and access rules. Admin REST API: GET /v2/data-tables.

memberstack_get_data_table Get a data table

Get one data table with its fields (key, type, required). Admin REST API: GET /v2/data-tables/{tableKey}.

ParameterTypeDescription
table_key *stringThe data table key (for example products) or table id (tbl_...).

memberstack_query_records Query data table records

Find records in a data table with filters, sorting and cursor pages (take up to 100). Pass findMany for a list or findUnique for one record. A query that only reads does not change data. Admin REST API: POST /v2/data-tables/{tableKey}/records/query.

ParameterTypeDescription
query *object
table_key *stringThe data table key (for example products) or table id (tbl_...).

memberstack_create_record Create a data table record

Add a record to a data table. Pass member_id to link the record to a member. Admin REST API: POST /v2/data-tables/{tableKey}/records.

ParameterTypeDescription
data *objectField key → value pairs, keyed by each field's key in the table.
table_key *stringThe data table key (for example products) or table id (tbl_...).
member_idstringMember to link the record to (mem_...).

memberstack_update_record Update a data table record

Change the listed fields of one data table record. Other fields stay as they are. Admin REST API: PUT /v2/data-tables/{tableKey}/records/{recordId}.

ParameterTypeDescription
data *objectField key → value pairs, keyed by each field's key in the table.
record_id *stringThe record id from a query or create reply.
table_key *stringThe data table key (for example products) or table id (tbl_...).