KosmoKrator

authentication

Memberstack MCP Integration for LangChain

Connect Memberstack to LangChain 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 LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Memberstack MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "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 LangChain

LangChain 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