treasury-risk
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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
Tool | Price | What it answers |
| free | What the service does, its prices, and whether payments are configured |
| free | A valid example input for any paid tool |
| free | Runs a paid tool on fixed sample data and returns its real, full output (default: can we pay a EUR 750,000 invoice today?) |
| $0.10 | Volatility, Sharpe/Sortino/Calmar, VaR/CVaR, HHI concentration, risk contribution, correlated stress tests |
| $0.25 | Gross/net exposure by currency, natural hedges, FX stress scenarios, hedge priority |
| $0.50 | Daily cash projection, minimum cash and its date, buffer breach, liquidity status, optional DSO/DPO/DIO |
| $2.00 | PAY / 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.
Related MCP server: Hermes Plant — Agent Commerce Assurance
Install
Claude Desktop (claude_desktop_config.json), Cursor, or any MCP client:
{
"mcpServers": {
"treasury-risk": {
"command": "npx",
"args": ["-y", "treasury-risk-mcp"],
"env": {
"X402_PRIVATE_KEY": "0x…",
"MAX_PAYMENT_USD": "2.00"
}
}
}
}Claude Code:
claude mcp add treasury-risk -e X402_PRIVATE_KEY=0x… -e MAX_PAYMENT_USD=2.00 -- npx -y treasury-risk-mcpVariable | Default | Meaning |
| (none) | Private key of a Base wallet that holds USDC. Without it, paid tools only validate your input and return the price. |
|
| Hard per-call cap. A tool priced above it is refused before anything is signed. |
| production URL | Override 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
The tool sends your input to the API. Invalid input gets a free
400and you are never charged.Valid input gets
402 Payment Requiredwith the price.The server signs a USDC authorization for that price and retries.
The payment settles on Base, and the analysis comes back with a
_paymentreceipt (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.yamland/openapi.json.
Related MCP Connectors
Pay-per-call DeFi and macro intel for AI agents. x402 USDC tools via streamable HTTP /api/mcp.
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
Pay-per-call crypto market intelligence for AI agents. USDC on Base via x402.
Cross-asset market data, LLM gateway and ML forecasts for AI agents. USDC via x402 + MPP.
Related MCP Servers
- AlicenseAqualityCmaintenanceTrust layer for AI agents: 22 pay-per-call x402 tools for scam and fraud checks, payment pre-flight, wallet screening, policy approvals, contact extraction and company research. Free preview with no wallet; paid calls settle in USDC on Base.2280 npmMIT
- AlicenseAqualityCmaintenanceEnables AI agents to call deterministic finance and quant APIs (e.g., DCF, Black-Scholes, bond pricing) with per-call payments over x402, no API keys required.52MIT
- FlicenseAqualityCmaintenanceProvides AI agents with deterministic, offline finance tools for commodity margin analysis, loan covenant compliance, invoice auditing, AP exception classification, and five-day close readiness.143 npm-
- AlicenseNot gradedqualityCmaintenanceProvides onchain intelligence tools for Base, including token risk checks, wallet PnL, and leaderboard data, with paid calls settled per-request in USDC via x402.111 npmMIT