mcp-server

v0.1.0
eu.wealthapi/mcp-server Checked 2 hours ago Published 4 months ago

Read-only MCP server for wealthAPI: portfolio, cash-flow, and dividend insights for AI assistants.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_accounts

List all of the user's accounts: depots (where investments live), cash accounts, insurance, etc. Start here when you need to know which accounts exist before drilling in.

get_account_balances

Get balance history for one or more cash accounts over a date range. Works only with cash accounts (type '02_cash'), not depots.

ParameterTypeDescription
id *arrayCash account ID(s)
fromstringStart date (yyyy-MM-dd)
tostringEnd date (yyyy-MM-dd)

get_portfolio_valuation

Get the current total value of one or more depots, and optionally its history when 'from' is given. Use this for 'what is my portfolio worth (today / over time)?'.

ParameterTypeDescription
accountIds *arrayDepot ID(s) to include
fromstringIf set (yyyy-MM-dd), also return the valuation history since this date
includeCashbooleanInclude the cash position
intervalstringHistory interval

get_portfolio_allocation

Break down the portfolio's market value by region, industry sector, or asset type. Use this for 'how diversified am I?' and 'what's my US exposure?'.

ParameterTypeDescription
dimension *stringWhat to group by
accountIdsarrayDepot ID(s) to include, defaults to all

get_cash_flow_summary

Monthly income vs. spending for the user's cash accounts. Answers 'how much did I earn and spend?' over a period. Inflows are positive, outflows positive (spending), net = income − spending.

ParameterTypeDescription
from *stringStart date (yyyy-MM-dd), required
accountIdarrayCash account ID(s) (type '02_cash') to scope to; omit to use all cash accounts
excludeTransfersbooleanExclude inter-account transfers from analytics
tostringEnd date (yyyy-MM-dd), defaults to today

get_savings_rate

Compute the user's savings rate over a period: (income − spending) / income, expressed as a percentage. Uses cash flow analytics. Higher is better; negative means the user spent more than they earned.

ParameterTypeDescription
from *stringStart date (yyyy-MM-dd), required
accountIdarrayCash account ID(s) (type '02_cash') to scope to; omit to use all cash accounts
excludeTransfersbooleanExclude inter-account transfers from analytics
tostringEnd date (yyyy-MM-dd), defaults to today

detect_recurring_transactions

List transactions flagged as regular (salary, rent, subscriptions, standing orders). Grouped by counterpart and direction, with detected payment interval (in months) and average amount. Use this to answer 'what subscriptions do I have?' or 'what are my fixed costs?'.

ParameterTypeDescription
accountIdarrayCash account ID(s) to scope to; omit for all accounts
directionstringFilter by direction: outflow (subscriptions/rent), inflow (salary), or all
maxDatestringEnd date (yyyy-MM-dd)
minDatestringStart date (yyyy-MM-dd)
perPagenumberMax transactions to scan (up to 500). Higher catches more recurrences.

get_dividend_history

Get dividend income per year (gross and net), with a per-month breakdown for the current year. Use this for 'how much dividend income did I get in 2024?'.

ParameterTypeDescription
accountIds *arrayDepot ID(s) to include
cutoffDatestringOnly include dividends paid after this date (yyyy-MM-dd)

get_dividend_calendar

Get this year's dividend calendar for current holdings: expected and received payouts with dates, amounts and yields. Use this for 'when are my next dividend payments?'.

ParameterTypeDescription
accountIds *arrayDepot ID(s) to include

get_portfolio_yield

Get the portfolio's dividend yield per year (on current value and on invested capital) plus the dividend CAGR. Use this for 'what's my dividend yield?'.

ParameterTypeDescription
accountIds *arrayDepot ID(s) to include
cagrYearsnumberWindow for dividend CAGR
calculationTypestring'predicted' includes current-year predictions

list_investments

List the user's investment holdings (stocks, funds, bonds, ETFs). Returns name, ISIN, type, lots, market value and gain/loss. Use this for 'what do I own?' and 'show me my biggest positions'.

ParameterTypeDescription
depotIdarrayFilter by depot ID(s)
includeHistoricbooleanInclude sold (historic) positions

get_gainers_and_losers

Get the top gainers or losers — either by today's change or by total return since purchase. Use this for 'best/worst performers'.

ParameterTypeDescription
mode *string'gainers'/'losers' for today; 'gainersTotal'/'losersTotal' for total return
accountIdarrayFilter by depot ID(s)
maxnumberHow many to return

get_portfolio_performance

Get TWROR (time-weighted rate of return) timeseries for the portfolio over a date range. Use this to answer 'how did my portfolio perform this year / last 5 years?'.

ParameterTypeDescription
accountIds *arrayDepot ID(s) to include
startDate *stringStart date (yyyy-MM-dd)
endDatestringEnd date (yyyy-MM-dd), defaults to today
intervalstring

get_realized_gains

Get realized gains per year, split into trading, dividend, interest and other gains (gross and net, plus tax refunds). Use this for 'what did I realize this year?' and tax questions.

ParameterTypeDescription
accountIds *arrayDepot ID(s) to include

get_risk_metrics

Get annualized risk (volatility) and return metrics — for the whole portfolio, or per investment with breakdown=true. Use this for 'how risky is my portfolio?'.

ParameterTypeDescription
breakdownbooleantrue = metrics per investment, false = portfolio total
depotIdsarrayDepot ID(s) to include
fromstringStart date (yyyy-MM-dd), defaults to 3 years ago, max 10 years back
intervalstring
investmentIdsarrayInvestment ID(s), takes precedence over depotIds

search_symbols

Search securities by name, ISIN or WKN. Returns the security ID and quote provider needed by get_quotes. Use this to resolve 'Apple' or an ISIN to a tradable security.

ParameterTypeDescription
isinOrWknstringExact ISIN or WKN (alternative to search)
maxPerAssetTypenumberMax hits per asset type
searchstringName search (min 3 characters)
typesarrayFilter by asset type, e.g. 11_stock, 22_etf, 21_fund

get_quotes

Get current quotes (last price, daily change) for securities by security ID. Get the IDs from search_symbols first.

ParameterTypeDescription
quoteProvider *stringQuote provider from search_symbols
securityIds *arraySecurity ID(s) from search_symbols
preferredCurrencystringPreferred quote currency

get_security_fundamentals

Get master data and valuation fundamentals (P/E, P/B, P/S, F-Score) for a security by ISIN. Use this for 'tell me about this holding' or 'is this stock expensive?'.

ParameterTypeDescription
isin *stringThe security's ISIN

list_transactions

List cash transactions (deposits, withdrawals, fees, interest, transfers). Results are sorted by amount (largest absolute value first), so the top rows answer 'what did I spend most money on?'.

ParameterTypeDescription
accountIdarrayCash account ID(s) to filter by
maxDatestringEnd date (yyyy-MM-dd)
minDatestringStart date (yyyy-MM-dd)
perPagenumberMax results to return (up to 500)
typearrayTypes: withdrawal, deposit, interest, tax_refund, other_gains

list_bookings

List investment bookings: buys, sells, dividends, splits. Use this to see the trade history for a specific security or depot.

ParameterTypeDescription
accountIdarrayDepot ID(s) to filter by
isinstringFilter by ISIN
maxDatestringEnd date (yyyy-MM-dd)
minDatestringStart date (yyyy-MM-dd)
perPagenumberMax results to return (up to 500)
typearrayFilter by booking type(s)

whoami

Show which wealthAPI user this session is acting as (name, email, member since). Use this to ground yourself or when the user asks 'which account is this?'.