Treasury Risk Analyzer

v0.1.2
io.github.christianmatumona/treasury-risk-mcp Checked 1 day ago Published 1 month ago

Treasury risk, FX exposure, liquidity & payment decisions for AI CFO agents.

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

describe_service

Free. Describes the Treasury Risk Analyzer (deterministic treasury risk, FX exposure, liquidity and payment-decision analytics for AI Treasury/CFO agents), lists the paid tools with their USDC prices, and reports whether this server is configured to pay.

get_example_input

Free. Returns a valid example input for one of the paid tools — a quick way to learn the expected shape before paying.

ParameterTypeDescription
tool *string

run_demo

Free. Runs one of the paid tools on fixed sample data and returns its real, full output, so you can see exactly what the paid tool returns before paying. Default: treasury_decision on a EUR 750,000 supplier invoice ("can we pay it today?"). Does not accept your own data — use the paid tool for that. Limited to about 20 calls per hour.

ParameterTypeDescription
toolstring

treasury_risk

PAID: $0.10 USDC per call on Base (x402), charged only for valid input. Deterministic treasury/portfolio risk analysis. Computes volatility, Sharpe/Sortino/Calmar, VaR/Expected Shortfall, multi-dimensional concentration, per-asset risk contribution, and correlated multi-factor stress scenarios (shocks propagate to unshocked symbols via covariance-based beta mapping, not treated as zero) from historical per-period returns and portfolio weights. Requires USDC payment via the x402 protocol (Circle Gateway) — see the 402 response below for the payment flow. Also available at the legacy path POST…

ParameterTypeDescription
returns *objectPer-period historical return series by symbol. All series must be the same length (≥2 observations).
weights *objectPortfolio weights by symbol. Must cover exactly the same symbols as `returns` and sum to 1.
baseCurrencystring
benchmarkReturnsarrayOptional per-period benchmark series (same length as each `returns` series) to compute beta and correlation.
confidenceLevelsarrayConfidence levels for VaR/Expected Shortfall. Supported: 0.9, 0.95, 0.975, 0.99, 0.995.
currencyExposureobjectOptional weight distribution by currency, for concentration analysis.
geographyExposureobjectOptional weight distribution by geography, for concentration analysis.
minimumAcceptableReturnnumberPer-period MAR used for downside deviation / Sortino ratio.
periodsPerYearnumberPeriods per year in the return series (252 for daily equities, 365 for daily crypto).
riskFreeRatenumberAnnualized risk-free rate, e.g. 0.04 for 4%.
sectorExposureobjectOptional weight distribution by sector, for concentration analysis.
stressScenariosarrayOptional stress scenarios. Shocks on the listed symbols propagate to unshocked symbols via covariance-based beta mapping (correlated impact), alongside the direct-only impact.

fx_exposure

PAID: $0.25 USDC per call on Base (x402), charged only for valid input. Deterministic FX exposure analysis. Computes gross/net exposure, currency concentration, natural hedges, stress scenarios, and hedge priority from a list of receivable/ payable/cash positions by currency. Requires USDC payment via the x402 protocol (Circle Gateway) — see the 402 response for the payment flow. All figures are computed deterministically (no LLM). Call get_example_input first if unsure of the shape.

ParameterTypeDescription
fxRates *objectUnits of baseCurrency per 1 unit of each foreign currency present in `positions`.
positions *array
baseCurrencystring
stressShockPctnumberFractional depreciation applied to each foreign currency in the stress scenario.
totalTreasuryValueBasenumberOptional total treasury value (in baseCurrency) used to normalize the risk score. Defaults to total gross FX exposure if omitted.

liquidity_forecast

PAID: $0.50 USDC per call on Base (x402), charged only for valid input. Deterministic liquidity forecast. Projects daily cash balance from opening cash and a list of scheduled cash flow events over a forecast horizon, flags minimum-buffer breaches, and classifies liquidity status. Optionally also computes standard working-capital ratios (DSO/DPO/DIO/cash conversion cycle) from a supplied balance snapshot. Requires USDC payment via the x402 protocol (Circle Gateway) — see the 402 response for the payment flow. All figures are computed deterministically (no LLM). Call get_example_input first i…

ParameterTypeDescription
horizonDays *integer
minimumCashBuffer *number
openingCash *number
baseCurrencystring
cashFlowsarrayEach date must be on or after startDate; dates beyond the horizon are excluded from the projection (and flagged in warnings/data_quality) rather than rejected.
startDatestringDefaults to today (UTC) if omitted.
workingCapitalobjectOptional standard accounting ratios (DSO/DPO/DIO/cash conversion cycle) computed from a balance snapshot and period flow — independent of the cashFlows-based daily projection above.

treasury_decision

PAID: $2.00 USDC per call on Base (x402), charged only for valid input. Composite payment decision ("can we safely execute this payment today?"). Orchestrates the liquidity, FX exposure, and (optionally) treasury risk capabilities to produce a PAY/REVIEW/DO_NOT_PAY decision with a confidence score. The payment is injected as an outflow into the liquidity forecast and as a new unhedged payable position in the FX exposure analysis. Requires USDC payment via the x402 protocol (Circle Gateway) — see the 402 response for the payment flow. This is decision-support output, not an instruction to exe…

ParameterTypeDescription
fxExposure *objectSame shape as the /fx-exposure request body minus baseCurrency; positions is optional (the payment is auto-injected as a new unhedged payable position). fxRates must include the payment currency's rat…
liquidity *objectSame shape as LiquidityRequest, minus baseCurrency (the payment is auto-injected as an additional cash flow outflow).
payment *object
baseCurrencystring
treasuryRiskobject