libre-mcp
API by Libre · rest
Tools for the Libre blockchain (BTC/USDT lending and DEX). Read tools are free. Compose tools return unsigned actions plus an ESR link; sign with your own key (WharfKit) and call push_transaction, or hand the esr link to a human wallet (Bitcoin Libre / Anchor). This server never holds keys. Every tool is also reachable over MCP (streamable HTTP) at POST /mcp; these REST routes are the same handlers for clients that do not speak MCP. Compose tools return an unsigned {actions, esr, expires} proposal — sign it yourself and relay it with push_transaction, or open the esr link in a human wallet. The server holds no keys and signs nothing. Rate limits are per source IP: read tools 300/min, compose tools 60/min, and push_transaction / request_account 10/min. Exceeding one returns 429.
Endpoint: https://mcp.libre.org/
Verification: observed. Source: crawl.
Capabilities (33)
- Liveness check
- Compose a variable-rate USDT loan against vault collateral.
- Compose cancellation of a queued (unfilled) loan request.
- Compose cancellation of an open dex.libre order (see get_orders for ids).
- Compose cancellation of a queued redemption by id (see get_redemption_queue).
- Compose the (unsigned) transfer paying one tranche of an invoice with the…
- Build invoice terms with a staged payment schedule and return the canonical…
- Balances (BTC USDT LIBRE TPF CBTC) permissions resources and whether…
- Status of a request_account payment/creation.
- Authoritative BTC/USD price from the on-chain oracle contract — the average of…
- Chain id head block and time for the selected network.
- The account's personal BTC deposit (bridge peg-in) address.
- Active and queued loans (optionally one account); include_completed adds…
- dex.libre orderbook for a pair: bids/asks sorted best-first best prices and…
- Open dex.libre orders for an account (optionally one pair).
- Lending pool state (available/outstanding USDT per pool) interest-rate curve…
- Queued lender redemptions (TPF → USDT waiting for liquidity) optionally one…
- Raw get_table_rows escape hatch for any Libre contract table.
- Recent dex.libre trades for a pair newest first.
- Collateral vault for an account: vault name CBTC collateral balance and the…
- Compose a USDT deposit into the lending pool (mints TPF shares).
- Compose a dex.libre limit order.
- Broadcast a transaction you signed yourself (WharfKit packed format).
- Match confirmed transfers against invoice terms: which tranches are paid what…
- Compose redemption of TPF shares for USDT (queued if liquidity is out on loan).