indigo-mcp

v0.5.1
io.github.IndigoProtocol/indigo-mcp Checked 3 hours ago Published 1 day ago

Indigo Protocol MCP — iAsset prices, CDP analytics, stability pools, staking & governance

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_tvl

Get protocol TVL history

get_apr_rewards

Get all APR reward records

get_apr_by_key

Get APR for a specific key

ParameterTypeDescription
key *stringAPR key, e.g. sp_iUSD_indy, sp_iUSD_ada, stake_ada

get_dex_yields

Get DEX farm yields for iAsset pairs

get_protocol_stats

Get aggregated protocol statistics

get_assets

Get all Indigo iAssets with their prices

get_asset

Get details for a specific Indigo iAsset

ParameterTypeDescription
asset *string

get_asset_price

Get the current price(s) for a specific Indigo iAsset, per collateral asset (ADA and others)

ParameterTypeDescription
asset *string

get_ada_price

Get the current ADA price in USD

get_indy_price

Get the current INDY token price in ADA and USD

get_all_cdps

Get all CDPs, optionally filtered by iAsset

ParameterTypeDescription
assetstring
limitnumber
offsetnumber

get_cdps_by_owner

Get all CDPs for a specific owner (accepts payment key hash or bech32 address)

ParameterTypeDescription
owner *stringOwner payment key hash (56-char hex) or bech32 address

get_cdps_by_address

Get all CDPs for a specific Cardano address

ParameterTypeDescription
address *stringCardano bech32 address (addr1... or addr_test1...)

analyze_cdp_health

Analyze collateral ratios and liquidation risk of CDPs for an owner, accounting for accrued interest

ParameterTypeDescription
owner *stringOwner payment key hash (56-char hex) or bech32 address

mint_cdp

Mint additional iAssets from an existing CDP (increases debt) — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address (addr1... or addr_test1...)
amount *stringiAsset amount to mint in smallest unit
asset *string
cdpOutputIndex *numberOutput index of the CDP UTxO
cdpTxHash *stringTransaction hash of the CDP UTxO

burn_cdp

Burn iAssets to reduce CDP debt — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address (addr1... or addr_test1...)
amount *stringiAsset amount to burn in smallest unit
asset *string
cdpOutputIndex *numberOutput index of the CDP UTxO
cdpTxHash *stringTransaction hash of the CDP UTxO

open_cdp

Open a new CDP position with ADA collateral — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address (addr1... or addr_test1...)
asset *string
collateralAmount *stringADA collateral amount in lovelace
mintAmount *stringiAsset amount to mint in smallest unit

deposit_cdp

Deposit additional ADA collateral into a CDP — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address
amount *stringLovelace amount to deposit
asset *string
cdpOutputIndex *numberOutput index of the CDP UTxO
cdpTxHash *stringTransaction hash of the CDP UTxO

withdraw_cdp

Withdraw ADA collateral from a CDP — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address
amount *stringLovelace amount to withdraw
asset *string
cdpOutputIndex *numberOutput index of the CDP UTxO
cdpTxHash *stringTransaction hash of the CDP UTxO

close_cdp

Close a CDP and reclaim collateral — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address
asset *string
cdpOutputIndex *numberOutput index of the CDP UTxO
cdpTxHash *stringTransaction hash of the CDP UTxO

liquidate_cdp

Liquidate an undercollateralized CDP through the stability pool — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address (addr1... or addr_test1...)
asset *string
cdpOutputIndex *numberOutput index of the CDP UTxO
cdpTxHash *stringTransaction hash of the CDP UTxO

redeem_cdp

Redeem iAssets from a CDP — builds an unsigned transaction (CBOR hex) for client-side signing. To redeem the maximum possible, pass the total minted amount.

ParameterTypeDescription
address *stringUser Cardano bech32 address (addr1... or addr_test1...)
amount *stringiAsset amount to redeem in smallest unit (pass total minted amount to redeem max)
asset *string
cdpOutputIndex *numberOutput index of the CDP UTxO
cdpTxHash *stringTransaction hash of the CDP UTxO

freeze_cdp

Freeze a CDP to prevent further operations until unfrozen — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address (addr1... or addr_test1...)
asset *string
cdpOutputIndex *numberOutput index of the CDP UTxO
cdpTxHash *stringTransaction hash of the CDP UTxO

merge_cdps

Merge multiple CDPs into one — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address (addr1... or addr_test1...)
cdpOutRefs *arrayArray of CDP UTxO references to merge (minimum 2)

get_collector_utxos

Get collector UTXOs for fee distribution

ParameterTypeDescription
lengthnumberMaximum number of UTXOs to return

store_on_ipfs

Store text content on IPFS

ParameterTypeDescription
text *stringText content to store on IPFS

retrieve_from_ipfs

Retrieve content from IPFS by CID

ParameterTypeDescription
cid *stringIPFS content identifier (CID)

get_steelswap_tokens

Get all tokens available on Steelswap DEX

get_steelswap_estimate

Get a swap estimate from Steelswap DEX

ParameterTypeDescription
amountIn *numberAmount of input token
tokenIn *stringInput token identifier
tokenOut *stringOutput token identifier

get_iris_liquidity_pools

Get liquidity pools from Iris, optionally filtered by tokens or DEX

ParameterTypeDescription
dexstringDEX name filter
tokenAstringFirst token identifier
tokenBstringSecond token identifier

get_blockfrost_balances

Get token balances for a Cardano address via Blockfrost

ParameterTypeDescription
address *stringCardano bech32 address

get_protocol_params

Get latest governance protocol parameters

get_temperature_checks

Get temperature check polls

get_polls

Get all governance polls

leverage_cdp

Open a leveraged CDP by redeeming against ROB positions — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringUser Cardano bech32 address (addr1... or addr_test1...)
asset *string
baseCollateral *stringBase ADA collateral amount in lovelace
leverage *numberLeverage multiplier (e.g. 2.0 for 2x leverage)

open_rob

Open a new ROB (Redemption Order Book) buy order: deposit ADA to buy an iAsset up to a max price. The max price is a rational number (numerator/denominator). Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
asset *string
lovelacesAmount *stringADA amount in lovelace to deposit into the ROB
maxPriceDenominator *stringMax price denominator (integer string)
maxPriceNumerator *stringMax price numerator (integer string)

cancel_rob

Cancel an existing ROB position. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
robOutputIndex *numberOutput index of the ROB UTxO
robTxHash *stringTransaction hash of the ROB UTxO

adjust_rob

Adjust ADA amount in an ROB buy order (positive to increase, negative to decrease). Optionally update the max price (numerator/denominator). Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
lovelacesAdjustAmount *stringLovelace adjustment amount (positive to add, negative to remove)
robOutputIndex *numberOutput index of the ROB UTxO
robTxHash *stringTransaction hash of the ROB UTxO
newMaxPriceDenominatorstringOptional new max price denominator (integer string)
newMaxPriceNumeratorstringOptional new max price numerator (integer string)

claim_rob

Claim received iAssets from an ROB position. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
robOutputIndex *numberOutput index of the ROB UTxO
robTxHash *stringTransaction hash of the ROB UTxO

redeem_rob

Redeem iAssets against one or more ROB positions for a given iAsset. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
asset *stringiAsset being redeemed against the ROB positions
redemptionRobs *arrayArray of ROB positions and amounts to redeem against

get_order_book

Get open ROB (redemption order book) positions, optionally filtered by iAsset or owners

ParameterTypeDescription
assetstring
ownersarray

get_redemption_orders

Get executed redemption orders, optionally filtered by iAsset

ParameterTypeDescription
assetstring
limitnumberMax number of records (default 100)

get_redemption_queue

Get the open ROB order-book entries for a specific iAsset

ParameterTypeDescription
asset *string

process_sp_request

Process a pending stability pool request (protocol maintenance operation). Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
accountOutputIndex *numberOutput index of the account UTxO
accountTxHash *stringTransaction hash of the account UTxO with the pending request
address *stringUser Cardano bech32 address
asset *stringiAsset of the stability pool (iUSD, iBTC, iETH, or iSOL)

annul_sp_request

Cancel a pending stability pool request. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
accountOutputIndex *numberOutput index of the account UTxO
accountTxHash *stringTransaction hash of the account UTxO with the pending request
address *stringUser Cardano bech32 address

get_stability_pools

Get the latest stability pool state for each iAsset (snapshots, epoch-to-scale-to-sum, asset states)

get_stability_pool_accounts

Get all open stability pool accounts, optionally filtered by iAsset

ParameterTypeDescription
assetstring

get_sp_account_by_owner

Get stability pool accounts for specific owners (accepts payment key hashes or bech32 addresses)

ParameterTypeDescription
owners *arrayArray of payment key hashes or bech32 addresses

create_sp_account

Create a new stability pool account by depositing iAssets. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
amount *stringAmount of iAsset to deposit (in smallest unit)
asset *stringiAsset to deposit (iUSD, iBTC, iETH, or iSOL)

adjust_sp_account

Deposit to or withdraw from an existing stability pool account. Positive amount deposits, negative withdraws. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
accountOutputIndex *numberOutput index of the account UTxO
accountTxHash *stringTransaction hash of the account UTxO
address *stringUser Cardano bech32 address
amount *stringAmount to adjust (positive = deposit, negative = withdraw, in smallest unit)
asset *stringiAsset of the stability pool (iUSD, iBTC, iETH, or iSOL)

close_sp_account

Close a stability pool account and withdraw all deposited iAssets. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
accountOutputIndex *numberOutput index of the account UTxO
accountTxHash *stringTransaction hash of the account UTxO
address *stringUser Cardano bech32 address

get_staking_info

Get the current INDY staking manager state (total stake, snapshot ada, output ref)

get_staking_positions

Get all open INDY staking positions

get_staking_positions_by_owner

Get INDY staking positions for specific owners (accepts payment key hashes or bech32 addresses)

ParameterTypeDescription
owners *arrayArray of payment key hashes or bech32 addresses

get_staking_position_by_address

Get INDY staking positions for a single Cardano address

ParameterTypeDescription
address *stringCardano bech32 address

distribute_staking_rewards

Distribute collected ADA rewards from collector UTxOs to staking positions. This is a protocol maintenance operation that anyone can call. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
collectorTxHashes *arrayArray of collector UTxO references to distribute rewards from

open_staking_position

Stake INDY tokens by creating a new staking position. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
amount *stringINDY amount to stake (in smallest unit)

adjust_staking_position

Adjust an existing INDY staking position (add or remove INDY). Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
amount *stringINDY amount to adjust (positive = stake more, negative = unstake)
positionOutputIndex *numberOutput index of the staking position UTxO
positionTxHash *stringTransaction hash of the staking position UTxO

close_staking_position

Close an INDY staking position and unstake all INDY. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
positionOutputIndex *numberOutput index of the staking position UTxO
positionTxHash *stringTransaction hash of the staking position UTxO

collect_interest

Batch-collect accrued interest from one or more CDP positions into the interest collector — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringCaller Cardano bech32 address (addr1... or addr_test1...)
asset *string
cdps *arrayCDP UTxO references to collect interest from

distribute_interest

Distribute accumulated interest from collector UTxOs to the admin interest collector — builds an unsigned transaction (CBOR hex) for client-side signing

ParameterTypeDescription
address *stringCaller Cardano bech32 address
collectorOutputIndices *arrayOutput indices corresponding to each collectorTxHashes entry (same order)
collectorTxHashes *arrayTransaction hashes of the non-admin interest collector UTxOs to distribute

feed_interest_oracle

ADMIN/MAINTENANCE: Update the interest rate stored in an interest oracle UTxO. Builds an unsigned transaction (CBOR hex) that must be signed by the oracle owner key. Requires the oracle contract parameters (biasTime in milliseconds, owner pubkey hash hex) which are fixed at contract deployment and must be supplied by the protocol admin.

ParameterTypeDescription
address *stringOracle owner Cardano bech32 address
asset *string
newInterestRate *stringNew interest rate as an on-chain integer (scaled; e.g. 5_000_000 = 5 % p.a. in the protocol encoding)
oracleBiasTime *stringOracle contract biasTime parameter in milliseconds (bigint string; fixed at deployment)
oracleOwner *stringOracle contract owner parameter as a hex-encoded public key hash (fixed at deployment)

get_interest_oracle

Read the current interest oracle state for an asset — returns the on-chain interest rate, unitary interest accumulator, and last-updated timestamp

ParameterTypeDescription
asset *string

get_oracle_price

Get the on-chain price for an iAsset from its price oracle. Handles OracleNft (reads the oracle UTxO datum), Delisted (returns the delisted price), and Pyth/DeferredValidation (delegates to get_pyth_price).

ParameterTypeDescription
asset *string

get_pyth_price

Get the current Pyth price for an iAsset, together with its on-chain feed configuration. The price is the latest signed Pyth update served by the Indigo analytics API — the same payload the CDP write tools embed on-chain — and is only valid on-chain until validUntil.

ParameterTypeDescription
asset *string

feed_price_oracle

Feed a new price to an OracleNft-backed price oracle — builds an unsigned transaction (CBOR hex) for admin signing. Only applicable to assets whose priceInfo is OracleNft; Pyth-priced assets are updated via signed Pyth messages, not this tool.

ParameterTypeDescription
address *stringAdmin Cardano bech32 address (addr1... or addr_test1...)
asset *string
priceDenominator *stringNew price denominator (integer string)
priceNumerator *stringNew price numerator (integer string)

get_stableswap_pool

Find the stableswap pool for an iAsset and return its state: collateral asset, exchange ratio, fees, whether minting and redemption are enabled, and minimum order amounts

ParameterTypeDescription
asset *stringiAsset name, e.g. iUSD
collateralAssetstringCollateral asset of the pool: its token name (e.g. USDA), '<policyId>.<assetNameHex>', or ADA. Optional when the iAsset has a single stableswap pool, which is then used.

create_stableswap_order

Submit a stableswap order: swap the pool collateral for iAsset (minting=true) or iAsset for the pool collateral (minting=false). Returns an unsigned transaction (CBOR hex) for client-side signing. See get_stableswap_pool for the collateral asset and minimum order amounts.

ParameterTypeDescription
address *stringUser Cardano bech32 address
amount *stringAmount to swap in the smallest unit of the asset being paid in: the collateral when minting, the iAsset when redeeming
asset *stringiAsset name, e.g. iUSD
minting *booleantrue = collateral → iAsset (mint direction); false = iAsset → collateral (redeem direction)
collateralAssetstringCollateral asset of the pool: its token name (e.g. USDA), '<policyId>.<assetNameHex>', or ADA. Optional when the iAsset has a single stableswap pool, which is then used.

cancel_stableswap_order

Cancel an outstanding stableswap order and reclaim funds. Returns an unsigned transaction (CBOR hex) for client-side signing.

ParameterTypeDescription
address *stringUser Cardano bech32 address
orderOutputIndex *numberOutput index of the stableswap order UTxO
orderTxHash *stringTransaction hash of the stableswap order UTxO