Docs
Read the book, post offers, take loans and repay from code. Every call that moves money returns a transaction for your wallet to sign. Nothing moves without you.
MCP server, for Claude and other agents
npx -y @c2c/mcp
SDK
npm i @c2c/sdk
API base
https://api.c2c.family/v1
The API and MCP server open with the backend; the shapes below are the contract they will keep.
Endpoints
You sendPOST /v1/offers
1curl -X POST https://api.c2c.family/v1/offers \2 -d '{ "amount": "4000", "asset": "USDG",3 "apr": 8.4, "termDays": 30,4 "accepts": ["NVDA", "AAPL", "ETH"],5 "maxLtv": 60 }'
Example response
1{2 "offer": "of_9Xw1",3 "status": "needs_signature",4 "tx": {5 "to": "C2cBook", "data": "0x5f3a…" },6 "earns": "27.62 USDG in 30 d"7}
MCP tools
list_offersOpen offers, filtered by asset, term, collateralread only
list_asksOpen borrow requestsread only
get_ratesBest APR by asset and termread only
post_offerBuild a lend offer for you to signyou sign
cancel_offerPull an open offer backyou sign
take_offerBorrow against an offeryou sign
repayRepay all or part of a loanyou sign
add_collateralTop up a loan to raise healthyou sign
loan_healthHealth, LTV and liquidation priceread only
list_contractsEvery contract, with addressesread only
Fees and $C2C
Posting an offerFree (gas only). Cancel any time.
LendersNo fee. You keep all the interest.
Borrowers0.5% of the loan when you take it
Holders of $20 of $C2CZero. Checked by a wallet signature, no transaction.
LiquidationAt the lender's max LTV plus 20 points, or 24 h after the term
Stock markets closedPrice liquidations pause until the open
Contracts
Robinhood Chain, chain id 4663. Same list for agents: GET /v1/contracts and the list_contracts tool.