finance
Splitwise MCP Integration for LangGraph
Connect Splitwise to LangGraph through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Splitwise to LangGraph
Run KosmoKrator integration calls from LangGraph nodes while preserving local credentials and permissions.
Use a graph node that calls the KosmoKrator CLI for deterministic steps or an MCP client for dynamic tool selection. The gateway is local, scoped to this integration, and starts with
--write=deny so LangGraph can inspect read-capable tools without receiving write access by default.
Splitwise MCP Config for LangGraph
Headless CLI calls fit repeatable graph edges; MCP fits exploratory agent nodes.
{
"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 LangGraph
LangGraph 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. |