Reference
Kosh API MCP
You can connect an AI agent to your Household. The agent acts as you: every change it makes shows your name and the source "mcp". It uses the same code, rules and limits as the app.
- Endpoint:
https://api.ourkosh.com/mcp(Streamable HTTP, no session state) - Auth: the header
Authorization: Bearer kmcp_…on every request - Plan: Kosh API MCP needs Kosh Solo or Kosh Household. During private testing every Household has it. See Plans and limits.
Make a token
- In the app, open Home, then MCP tokens.
- Type a name (1 to 40 characters) and pick how many days the token stays valid: 1 to 90.
- Copy the secret. Kosh shows it only once and keeps only a hash of it.
Rules for tokens:
- A token belongs to one Member and acts as that Member.
- You can revoke your own tokens at any time. The Koshadhyaksha can revoke any token in the Household.
- When a Member is removed, all their tokens stop working.
- A request without a valid token gets
401and changes nothing. The401points tohttps://api.ourkosh.com/.well-known/oauth-protected-resource.
Connect an agent
Add a remote MCP server to your agent with the endpoint and the header above. Then ask the agent to call get_today to check the connection.
The tools
Every tool returns a short text summary in content and the full JSON in structuredContent. Money is an integer in minor units with an ISO 4217 currency code. Dates are YYYY-MM-DD.
Plan Items and Today
list_plan_items(read): Lists the Plan Items.- Inputs:
state?(active,paused,stopped)
- Inputs:
get_plan_item(read): One Plan Item.- Inputs:
planItemId
- Inputs:
create_plan_item(write): Creates a Plan Item and its Occurrences.- Inputs: The Plan Item fields:
name,amountMinor,currency,direction,memberId,schedule, and optionalaccountId,startDate,endDate,linkedHoldingId
- Inputs: The Plan Item fields:
update_plan_item(write): Changes a Plan Item. Future pending Occurrences are made again.- Inputs:
planItemIdand any Plan Item field
- Inputs:
set_plan_item_state(write): Resumes, pauses or stops. Pause and stop remove future pending Occurrences.- Inputs:
planItemId,state(active,paused,stopped)
- Inputs:
list_occurrences(read): Occurrences between two dates.- Inputs:
from?,to?,status?(pending,done,overdue)
- Inputs:
mark_occurrence_done(write): Marks an Occurrence done, as the token's Member.- Inputs:
occurrenceId
- Inputs:
undo_occurrence_done(write): Back to pending, or overdue when past.- Inputs:
occurrenceId
- Inputs:
get_today(read): Next Occurrence, overdue, due today, and the month's progress.- Inputs: none
The schedule field is one of the schedules in Plan Items and schedules, as JSON with a kind of monthly, yearly, once, weekly or dates.
Goals and Holdings
list_goals(read): Goals with links, saved today, amount to go and months left.- Inputs: none
list_holdings(read): Holdings with their newest Snapshot.- Inputs:
memberId?,includeArchived?
- Inputs:
get_holding(read): One Holding with its newest Snapshot.- Inputs:
holdingId
- Inputs:
create_holding(write): Creates a Holding. Liquidity comes from the kind if left out.- Inputs: The Holding fields:
name,memberId,kind,currency, and optionalliquidity,fundHouse,isin,categoryId,assetClassId,tags,unitsMilli,unitsOnDate
- Inputs: The Holding fields:
update_holding(write): Changes a Holding.- Inputs:
holdingIdand any Holding field exceptcurrency
- Inputs:
list_snapshots(read): Snapshots of one Holding, oldest first.- Inputs:
holdingId,from?,to?
- Inputs:
put_snapshot(write): Sets the value on a date. A second call for the same date replaces it.- Inputs:
holdingId,onDate,valueMinor
- Inputs:
Ask
ask_catalog(read): The Ask catalog: measures, groups, query types, Base currency, Categories, Accounts and the active Members (id,firstName). Read it first.- Inputs: none
run_ask_plan(read): Runs typed Ask queries. A query may havememberIdfromask_catalogto count one Member only. Returns the answer text, the parts with their figures, the steps, andmemberId.- Inputs:
plan:{ queries, outOfScope }, at most 4 queries
- Inputs:
The query types of run_ask_plan are afford, where, have, coming, compare, trend, goal and rules. See Ask. run_ask_plan is not counted against the monthly question limit, because your agent's own model reads the question.
Example plan:
{
"outOfScope": false,
"queries": [{ "type": "have", "measure": "net_worth" }]
}
What the MCP does not do
- There are no tools for Accounts, Entries, Statements, Transfers, Imports, Rules, Members, invites, tokens or Household settings, and no delete tool. Use the app or the REST API for those.
- No tool output carries a full account, card or folio number. Holdings carry only a masked folio label.
- No tool names a fund or a stock to pick. With
outOfScope: true,run_ask_planreturns the fixed line "Kosh shows your numbers. It does not advise on investments."