KosmoKrator

payments

Stripe Connect MCP Integration for LangChain

Connect Stripe Connect to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write Bearer token auth

Connect Stripe Connect 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.

Stripe Connect MCP Config for LangChain

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

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

Run the Gateway Manually

kosmokrator mcp:serve --integration=stripe-connect --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Stripe Connect 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.

Stripe Connect Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Stripe Connect integration catalog.

MCP toolSource functionTypeDescription
integration__stripe_connect__stripe_connect_list_accounts stripe-connect.stripe_connect_list_accounts Read List Stripe Connect accounts. Returns a paginated list of connected accounts with ID, business type, display name, and email.
integration__stripe_connect__stripe_connect_get_account stripe-connect.stripe_connect_get_account Read Retrieve a Stripe Connect account by ID. Returns full account details including business profile, capabilities, and metadata.
integration__stripe_connect__stripe_connect_list_payouts stripe-connect.stripe_connect_list_payouts Read List Stripe Connect payouts with optional filtering. Supports filtering by status (paid, pending, in_transit, canceled, failed) and arrival date, and pagination with limit.
integration__stripe_connect__stripe_connect_get_payout stripe-connect.stripe_connect_get_payout Read Retrieve a Stripe Connect payout by ID. Returns full payout details including amount, status, arrival date, and destination.
integration__stripe_connect__stripe_connect_list_balances stripe-connect.stripe_connect_list_balances Read List Stripe Connect balance transactions. Returns a paginated list of balance transactions with type, amount, currency, and description.
integration__stripe_connect__stripe_connect_list_capabilities stripe-connect.stripe_connect_list_capabilities Read List Stripe Connect account capabilities. Returns capabilities for a specified connected account, including activation status (active, inactive, pending).
integration__stripe_connect__stripe_connect_get_current_user stripe-connect.stripe_connect_get_current_user Read Get the currently authenticated Stripe Connect user. Returns user profile information including ID, name, and email.

Related Stripe Connect Pages