mcp-server
v0.1.0Read-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.
| Parameter | Type | Description |
|---|---|---|
id * | array | Cash account ID(s) |
from | string | Start date (yyyy-MM-dd) |
to | string | End 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)?'.
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Depot ID(s) to include |
from | string | If set (yyyy-MM-dd), also return the valuation history since this date |
includeCash | boolean | Include the cash position |
interval | string | History 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?'.
| Parameter | Type | Description |
|---|---|---|
dimension * | string | What to group by |
accountIds | array | Depot 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.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start date (yyyy-MM-dd), required |
accountId | array | Cash account ID(s) (type '02_cash') to scope to; omit to use all cash accounts |
excludeTransfers | boolean | Exclude inter-account transfers from analytics |
to | string | End 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.
| Parameter | Type | Description |
|---|---|---|
from * | string | Start date (yyyy-MM-dd), required |
accountId | array | Cash account ID(s) (type '02_cash') to scope to; omit to use all cash accounts |
excludeTransfers | boolean | Exclude inter-account transfers from analytics |
to | string | End 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?'.
| Parameter | Type | Description |
|---|---|---|
accountId | array | Cash account ID(s) to scope to; omit for all accounts |
direction | string | Filter by direction: outflow (subscriptions/rent), inflow (salary), or all |
maxDate | string | End date (yyyy-MM-dd) |
minDate | string | Start date (yyyy-MM-dd) |
perPage | number | Max 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?'.
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Depot ID(s) to include |
cutoffDate | string | Only 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?'.
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Depot 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?'.
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Depot ID(s) to include |
cagrYears | number | Window for dividend CAGR |
calculationType | string | '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'.
| Parameter | Type | Description |
|---|---|---|
depotId | array | Filter by depot ID(s) |
includeHistoric | boolean | Include 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'.
| Parameter | Type | Description |
|---|---|---|
mode * | string | 'gainers'/'losers' for today; 'gainersTotal'/'losersTotal' for total return |
accountId | array | Filter by depot ID(s) |
max | number | How 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?'.
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Depot ID(s) to include |
startDate * | string | Start date (yyyy-MM-dd) |
endDate | string | End date (yyyy-MM-dd), defaults to today |
interval | string |
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.
| Parameter | Type | Description |
|---|---|---|
accountIds * | array | Depot 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?'.
| Parameter | Type | Description |
|---|---|---|
breakdown | boolean | true = metrics per investment, false = portfolio total |
depotIds | array | Depot ID(s) to include |
from | string | Start date (yyyy-MM-dd), defaults to 3 years ago, max 10 years back |
interval | string | |
investmentIds | array | Investment 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.
| Parameter | Type | Description |
|---|---|---|
isinOrWkn | string | Exact ISIN or WKN (alternative to search) |
maxPerAssetType | number | Max hits per asset type |
search | string | Name search (min 3 characters) |
types | array | Filter 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.
| Parameter | Type | Description |
|---|---|---|
quoteProvider * | string | Quote provider from search_symbols |
securityIds * | array | Security ID(s) from search_symbols |
preferredCurrency | string | Preferred 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?'.
| Parameter | Type | Description |
|---|---|---|
isin * | string | The 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?'.
| Parameter | Type | Description |
|---|---|---|
accountId | array | Cash account ID(s) to filter by |
maxDate | string | End date (yyyy-MM-dd) |
minDate | string | Start date (yyyy-MM-dd) |
perPage | number | Max results to return (up to 500) |
type | array | Types: 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.
| Parameter | Type | Description |
|---|---|---|
accountId | array | Depot ID(s) to filter by |
isin | string | Filter by ISIN |
maxDate | string | End date (yyyy-MM-dd) |
minDate | string | Start date (yyyy-MM-dd) |
perPage | number | Max results to return (up to 500) |
type | array | Filter 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?'.