MCP Server

Treasury tools for Claude, GPT, and any agent

The Stackit.ai MCP server gives agents read tools for market and portfolio context, policy-aware previews for treasury actions, and a wallet-sovereign execution path where Stackit.ai never holds keys.

Last updated June 11, 2026

No-auth first call

Market rates, liquidation distance, portfolio state, and gateway status can be called without signup.

Wallet-sovereign

Actions return unsigned transactions. Your agent or wallet signs. Stackit.ai does not hold private keys.

x402-ready

Agents can pay per request without a human API-key loop when paid execution is enabled.

Install

Claude Code

claude mcp add stackit https://www.stackit.ai/api/mcp

Claude Desktop

{
  "mcpServers": {
    "stackit": {
      "url": "https://www.stackit.ai/api/mcp"
    }
  }
}

Generic MCP client

{
  "name": "stackit",
  "transport": "http",
  "endpoint": "https://www.stackit.ai/api/mcp"
}

First public REST call

curl -s https://www.stackit.ai/api/v1/public/gateway-status | jq

Tool reference

ToolAuthParametersReturns
get_market_ratesNo authchain?, asset?Aave V3 rates, utilization, TVL, BTC and ETH spot data.
get_liquidation_distanceNo authltv, collateral_assets?Health factor, current LTV, and price-drop distance to liquidation.
get_portfolio_stateNo authaddressCollateral, debt, net value, health score, and current LTV.
get_policy_stateAuthaddressHuman-defined policy limits, allowed actions, and pause thresholds.
get_protection_statusAuthaddressAuto-repay status, protection point, and deleveraging readiness.
preview_actionAuth or x402action, amount, asset, addressEstimated fees, LTV impact, safety result, and unsigned tx envelope.
relay_signed_transactionAuth or x402signed_transaction, chainRelay status, transaction hash, and execution result.
get_gateway_statusNo authnoneGateway health, supported chains, x402 readiness, and service status.

Example request

{
  "tool": "preview_action",
  "arguments": {
    "address": "0x...",
    "action": "borrow",
    "amount": 5000,
    "asset": "USDC"
  }
}

Example response

{
  "approved": true,
  "ltv_after": 42.1,
  "stackit_fee_usdc": 100,
  "requires_signature": true,
  "unsigned_transaction": "0x..."
}