Treasury Risk Analyzer

io.github.christianmatumona由 GitHub 账号 christianmatumona 发布v0.1.2更新于 Nov 3, 2026

面向AI CFO智能体的资金风险、外汇敞口、流动性与支付决策。按次以USDC付费。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Treasury risk, FX exposure, liquidity & payment decisions for AI CFO agents. Pay per call in USDC.

已验证STDIO仅桌面金融数据与分析

概览

Treasury Risk Analyzer 的本地 MCP 服务;无需登录;STDIO。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Treasury Risk Analyzer,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

treasury-risk-mcp

MCP server for the Treasury Risk Analyzer: deterministic financial decision services for AI Treasury and CFO agents. It covers treasury risk, FX exposure, the liquidity forecast, and one question: "Can we safely execute this payment today?"

Each call is paid in USDC on Base via x402. There is no account, no API key and no subscription. Your agent pays per call from its own wallet, and only when the input is valid.

Tools

ToolPriceWhat it answers
describe_servicefreeWhat the service does, its prices, and whether payments are configured
get_example_inputfreeA valid example input for any paid tool
run_demofreeRuns a paid tool on fixed sample data and returns its real, full output (default: can we pay a EUR 750,000 invoice today?)
treasury_risk$0.10Volatility, Sharpe/Sortino/Calmar, VaR/CVaR, HHI concentration, risk contribution, correlated stress tests
fx_exposure$0.25Gross/net exposure by currency, natural hedges, FX stress scenarios, hedge priority
liquidity_forecast$0.50Daily cash projection, minimum cash and its date, buffer breach, liquidity status, optional DSO/DPO/DIO
treasury_decision$2.00PAY / REVIEW / DO_NOT_PAY for a payment, combining liquidity, FX and risk, with a confidence score

No LLM computes any figure: every metric is deterministic and documented in the response's methodology.

Install

Claude Desktop (claude_desktop_config.json), Cursor, or any MCP client:

json
{  "mcpServers": {    "treasury-risk": {      "command": "npx",      "args": ["-y", "treasury-risk-mcp"],      "env": {        "X402_PRIVATE_KEY": "0x…",        "MAX_PAYMENT_USD": "2.00"      }    }  }}

Claude Code:

bash
claude mcp add treasury-risk -e X402_PRIVATE_KEY=0x… -e MAX_PAYMENT_USD=2.00 -- npx -y treasury-risk-mcp
VariableDefaultMeaning
X402_PRIVATE_KEY(none)Private key of a Base wallet that holds USDC. Without it, paid tools only validate your input and return the price.
MAX_PAYMENT_USD2.00Hard per-call cap. A tool priced above it is refused before anything is signed.
TREASURY_API_URLproduction URLOverride the service URL.

Wallet safety: use a dedicated wallet that holds only a few USDC. The key stays in the MCP process on your machine. It is only used to sign an EIP-3009 USDC transfer for the exact price the service asks for, never more than MAX_PAYMENT_USD. No ETH is needed for gas, because the facilitator submits the transfer.

How payment works

  1. The tool sends your input to the API. Invalid input gets a free 400 and you are never charged.
  2. Valid input gets 402 Payment Required with the price.
  3. The server signs a USDC authorization for that price and retries.
  4. The payment settles on Base, and the analysis comes back with a _payment receipt (transaction hash, payer, network).

Limits

  • The output is analytics and decision support, not investment advice. It does not execute any payment.
  • It only analyses the data you supply. It does not fetch market data.
  • The HTTP API is also callable directly. Its OpenAPI spec is at /openapi.yaml and /openapi.json.

来源:README.md,提交 eadde81

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

3
  1. v0.1.2最新Nov 3, 2026
  2. v0.1.1Nov 1, 2026
  3. v0.1.0Nov 1, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分