DorkFiMCP
Provides tools for interacting with the DorkFi lending protocol on Algorand, including market discovery, user position queries, liquidation scanning, TVL analytics, and transaction preparation (deposit, borrow, repay, withdraw, liquidate).
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@DorkFiMCPlist all Voi lending markets"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
DorkFiMCP
Protocol MCP server for the DorkFi lending protocol on Voi and Algorand.
Architecture
DorkFiMCP is a protocol-level MCP that sits above the infrastructure MCP layer:
UluCoreMCP / UluVoiMCP / UluAlgorandMCP / UluWalletMCP / UluBroadcastMCP
↓
DorkFiMCP
↓
DorkFi API (reads)
On-chain (writes)Data sources:
DorkFi API (
dorkfi-api.nautilus.sh) — Pre-indexed market data, user health factors, TVL, and position data. Used for all read operations.On-chain (algod) — Used for transaction preparation (suggested params, ABI encoding).
DorkFiMCP handles:
Market discovery with live data from the DorkFi API
User position queries with pre-computed health factors
Liquidation candidate scanning (202+ indexed users on Voi)
TVL analytics across all chains and pools
Transaction preparation (unsigned)
DorkFiMCP does NOT:
Sign transactions (use UluWalletMCP)
Broadcast transactions (use UluBroadcastMCP)
Manage wallets
Related MCP server: Tinyman MCP
Tools
Markets
Tool | Description |
| List lending markets with live rates, deposits, borrows, and prices |
| Get total value locked per market and aggregate totals |
Positions
Tool | Description |
| Get a user's positions with per-pool health factors |
| Check health factor and risk level per pool |
Liquidations
Tool | Description |
| Find undercollateralized accounts from pre-indexed health data |
Transaction Preparation
Tool | Description |
| Build unsigned transactions to deposit (supply) tokens |
| Build unsigned transactions to borrow tokens |
| Build unsigned transactions to repay debt |
| Build unsigned transactions to withdraw supplied tokens |
| Build unsigned transactions to liquidate a position |
Agent Workflow
Agent calls DorkFiMCP: deposit_txn(chain, symbol, amount, sender)
→ returns { transactions: [base64, ...] }
Agent calls UluWalletMCP: wallet_sign_transactions(signerId, transactions)
→ returns signed transactions
Agent calls UluBroadcastMCP: broadcast_transactions(network, txns)
→ returns transaction IDsChain Support
All tools accept a chain parameter:
"voi"— Voi mainnet (pools: 47139778, 47139781)"algorand"— Algorand mainnet (pools: 3333688282, 3345940978)
Project Structure
index.js MCP server entry point (11 tools)
lib/
api.js DorkFi API client (dorkfi-api.nautilus.sh)
client.js Algod client factory, ABI definitions, simulation helpers
markets.js Market data from API with symbol resolution
positions.js User positions and health factors from API
liquidation.js Liquidation candidates from pre-indexed health data
builders.js Unsigned transaction group builders (on-chain)
data/
contracts.json Chain configs, pool IDs, and token definitionsSetup
npm installRun
node index.jsOr configure as an MCP server in your agent:
{
"mcpServers": {
"dorkfi": {
"command": "node",
"args": ["/path/to/DorkFiMCP/index.js"]
}
}
}DorkFi API
Read operations use the DorkFi API which provides pre-indexed data:
Endpoint | Used by |
|
|
|
|
|
|
|
|
Supported Markets
Voi (22 markets across 2 pools)
Pool 47139778: VOI, aUSDC, UNIT, POW, aALGO, aETH, aBTC, acbBTC, WAD (borrow-only)
Pool 47139781: WAD, GM, CORN, SHELLY, BUIDL, F, NODE, AMMO, IAT, bVOI, NV, EV, FV
Algorand (29 markets across 2 pools)
Pool 3333688282: ALGO, USDC, UNIT, POW, goBTC, aVOI, wBTC, goETH, wETH, LINK, SOL, AVAX, WAD (borrow-only)
Pool 3345940978: WAD, FINITE, FOLKS, COOP, HOG, USDt, xUSD, MONKO, HAY, BRO, ALPHA, COMPX, AKTA, PEPE, GOLD$, TINY
On-Chain ABI
Transaction preparation uses the verified ABI from DorkFiLendingPoolClient.ts:
Method | Signature |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Known Limitations
WAD in multiple pools — WAD appears in two pools per chain.
findMarketreturns the first match. For borrow-only WAD pools, specify the pool ID explicitly if needed.Transaction groups — The
prepare_*tools build simplified transaction groups. The DorkFi frontend usesulujsCONTRACT class for more sophisticated group construction with automatic box funding and resource sharing.Price scale — Prices from the API use 18 decimal precision referenced against aUSDC = 1,000,000. USD values in health/position responses are approximated by dividing raw values by 10^12.
API freshness — Read data comes from the DorkFi API which periodically refreshes from on-chain state. For the most current data, the API's POST endpoints can trigger a fresh blockchain query.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/MaidToShelly/DorkFiMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server