finance
Splitwise MCP Integration for LangChain
Connect Splitwise to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Splitwise 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.
Splitwise MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"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 LangChain
LangChain 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. |