Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FLASHBANK_MCP_PRIVATE_KEYNoSigning key; unset = read-only mode
FLASHBANK_MCP_RPC_<CHAIN>NoOverride the RPC per chain, e.g. FLASHBANK_MCP_RPC_ETHEREUM
FLASHBANK_MCP_ALLOW_MAINNETNoSet to 'true' to unlock mainnet writes

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
explainA

Plain-English primer on both FlashBank products, the loan lifecycle, fees and safety rules. Call this first if you are unsure how anything works.

list_chainsA

Supported chains with contract addresses, registry tokens and whether writes are currently permitted for each.

wallet_statusA

Address, native balance and registry-token balances of the configured signing wallet on one chain. Reports read-only mode when no key is set.

p2p_list_offersA

Open, takeable loan offers/requests on a chain, newest first with boosted (featured) offers ranked on top. Returns human-readable terms plus the raw ids for follow-up calls.

p2p_get_loanA

Full detail for one loan id: terms, parties, status, what a taker must provide, repayment quote, default deadline/split and the on-chain terms hash.

p2p_my_loansB

Every loan created by or assigned to an address (defaults to the configured wallet), with current status.

flash_poolsB

Per-token flash-loan liquidity on a chain: committed amount, live available liquidity, fee, per-loan cap and provider count.

flash_quoteB

Fee quote for flash-borrowing a given amount of a token (symbol or address) on a chain.

p2p_create_offerA

Post a loan offer (you lend) or borrow request (you borrow) on-chain. Escrows your side immediately: lenders escrow the principal, borrowers escrow the collateral. Reversible via p2p_cancel while untaken. Requires a signing key; mainnet additionally requires FLASHBANK_MCP_ALLOW_MAINNET=true.

p2p_take_offerA

Accept an open offer, pinning the EXACT terms currently on-chain (takeWithTerms) so a last-second re-price reverts instead of surprising you. Approves and escrows your side, which activates the loan — a BINDING commitment until repaid or defaulted. Requires a signing key (mainnet gated).

p2p_repayA

Repay an active loan you borrowed, redeeming your collateral. On v2 chains (Sepolia) the fee is the VESTED amount — repaying inside the cooling-off window is rebated down to a 10% floor. Requires the signing wallet to be the borrower (mainnet gated).

p2p_claim_defaultA

After the repay window closes unpaid, the lender claims the collateral (any agreed surplus returns to the borrower). Irreversibly settles the loan. Requires the signing wallet to be the lender (mainnet gated).

p2p_cancelA

Cancel an offer you created that has not been taken, reclaiming your escrow (any boost spend is not refunded). Mainnet gated.

p2p_withdraw_unclaimedA

v2 chains (Sepolia) only: if a settlement payout to you could not be delivered (e.g. a blocklisting token), it queues on-chain — this checks your queued balance for a token and withdraws it.

faucet_mintA

Mint a free batch of 10,000 fpUSD or fpETH (valueless playground tokens) to the signing wallet on Sepolia. The safe way for agents to get funds to experiment with.

Prompts

Interactive templates invoked by user choice

NameDescription
play_on_sepoliaA safe first session: mint play-money, post a small offer, inspect it, and exercise the v2 cooling-off rebate on Sepolia.
lend_assetsCompose and post a P2P lend offer with sane terms: collateral cushion, fee sizing, term, cooling-off window and surplus-return choice.
borrow_against_collateralBrowse open offers, evaluate the real cost and default risk of the best candidates, then take one with the terms pinned on-chain.

Resources

Contextual data attached and managed by the client

NameDescription
guidePlain-English primer on both products, the loan lifecycle, fees and safety rules (same text as the explain tool).
chainsSupported chains with deployed contract addresses, contract versions, registry tokens and explorers.
cooling-offHow the flat fee vests on FlashBankP2PLoanV2 chains (Sepolia playground): the early-repay rebate, the 10% floor and the same-block guard.
safetyHow writes are gated (env vars), what the audit status is, and which chain agents should practise on.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rotwang9000/flashbank-net'

If you have feedback or need assistance with the MCP directory API, please join our Discord server