KosmoKrator

authentication

Memberstack MCP Integration for Vercel AI SDK

Connect Memberstack to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 4 read 3 write Bearer token auth

Connect Memberstack to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Memberstack MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "mcpServers": {
    "kosmokrator-memberstack": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=memberstack",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=memberstack --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Memberstack instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Memberstack Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Memberstack integration catalog.

MCP toolSource functionTypeDescription
integration__memberstack__memberstack_list_members memberstack.memberstack_list_members Read List members from Memberstack with pagination. Returns member IDs, emails, plan assignments, and metadata.
integration__memberstack__memberstack_get_member memberstack.memberstack_get_member Read Get detailed information about a single Memberstack member by their ID, including email, plan, and custom metadata.
integration__memberstack__memberstack_create_member memberstack.memberstack_create_member Write Create a new member in Memberstack. Requires an email address. Optionally set a password, assign a plan, and attach custom metadata.
integration__memberstack__memberstack_update_member memberstack.memberstack_update_member Write Update an existing Memberstack member. Provide the member ID and any fields to change (email, plan assignment, or custom metadata).
integration__memberstack__memberstack_delete_member memberstack.memberstack_delete_member Write Permanently delete a member from Memberstack. This action is irreversible and removes all associated data.
integration__memberstack__memberstack_list_plans memberstack.memberstack_list_plans Read List all membership plans configured in Memberstack. Returns plan IDs, names, pricing, and billing details.
integration__memberstack__memberstack_get_current_user memberstack.memberstack_get_current_user Read Get the currently authenticated user from Memberstack. Useful for verifying API credentials and checking account details.

Related Memberstack Pages