KosmoKrator

finance

Splitwise MCP Integration for Vercel AI SDK

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

7 functions 6 read 1 write Bearer token auth

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

Splitwise MCP Config for Vercel AI SDK

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

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only Splitwise 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.

Splitwise Tools Visible to Vercel AI SDK

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

MCP toolSource functionTypeDescription
integration__splitwise__splitwise_list_expenses splitwise.splitwise_list_expenses Read List shared expenses from Splitwise. Optionally filter by group, friend, or date range. Returns expense details including cost, description, category, and split information.
integration__splitwise__splitwise_get_expense splitwise.splitwise_get_expense Read Get detailed information about a specific expense in Splitwise, including cost, description, category, date, and how it was split among users.
integration__splitwise__splitwise_create_expense splitwise.splitwise_create_expense Write Create a new shared expense in Splitwise. Specify the total cost, description, and users involved. The expense will be split equally unless custom owed_share amounts are provided per user.
integration__splitwise__splitwise_list_groups splitwise.splitwise_list_groups Read List all groups the current user belongs to in Splitwise. Returns group names, member information, and balance summaries.
integration__splitwise__splitwise_get_group splitwise.splitwise_get_group Read Get detailed information about a specific group in Splitwise, including all members and their current balances.
integration__splitwise__splitwise_list_friends splitwise.splitwise_list_friends Read List all friends on Splitwise with their current balance information. Shows how much you owe or are owed by each friend.
integration__splitwise__splitwise_get_current_user splitwise.splitwise_get_current_user Read Get the authenticated Splitwise user's profile, including name, email, default currency, and account settings.

Related Splitwise Pages