finance
Splitwise MCP Integration for Claude Agent SDK
Connect Splitwise to Claude Agent SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Splitwise to Claude Agent SDK
Give Claude Agent SDK workflows access to KosmoKrator integrations through a local MCP server.
Add a KosmoKrator stdio MCP server to the Claude Agent SDK options. The gateway is local, scoped to this integration, and starts with
--write=deny so Claude Agent SDK can inspect read-capable tools without receiving write access by default.
Splitwise MCP Config for Claude Agent SDK
Use a narrow integration list so the agent does not load unrelated tools.
{
"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
Expose only Splitwise instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Splitwise Tools Visible to Claude Agent SDK
Claude Agent SDK sees stable MCP tool names generated from the Splitwise integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
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. |