Back to Browse

Treasury Risk MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 4 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.

4 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Private key of a dedicated Base wallet holding a few USDC, used to sign per-call x402 payments. Without it, paid tools only validate input and quote the price.Required

Environment variable: X402_PRIVATE_KEY

Hard per-call spending cap in USD (default 2.00). Tools priced above it are refused before signing.Optional

Environment variable: MAX_PAYMENT_USD

Override the service base URL (default: public production deployment).Optional

Environment variable: TREASURY_API_URL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "treasury-risk-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "treasury-risk-mcp@0.1.2"
      ],
      "env": {
        "MAX_PAYMENT_USD": "your-max-payment-usd-here",
        "TREASURY_API_URL": "your-treasury-api-url-here",
        "X402_PRIVATE_KEY": "your-x402-private-key-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub 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:

{
  "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-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.

Reviews

No reviews yet

Be the first to review this server!