Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add LuuOW/meridian-mcp --skill defi-protocolsgit clone --depth 1 https://github.com/LuuOW/meridian-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/luuow/meridian-mcp/defi-protocols)<a href="https://agentmods.dev/skills/luuow/meridian-mcp/defi-protocols"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/defi-protocols/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/luuow/meridian-mcp/defi-protocols"><img src="https://agentmods.dev/badge/skills/luuow/meridian-mcp/defi-protocols.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00081 | $0.01615 |
| Opus 5 | $0.00041 | $0.00807 |
| Sonnet 5 | $0.00016 | $0.00323 |
| Haiku 4.5 | $0.00008 | $0.00161 |
Grade A, and why
defi-protocols scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
r = requests.get("https://api.1inch.dev/swap/v6.0/8453/quote", How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
defi-protocols
Production DeFi routing across lending, AMMs, and arbitrage. Covers how capital moves on-chain: flashloan mechanics, AMM math, liquidity fragmentation, and the physics of price discovery across DEXes and chains.
Flashloan Mechanics
Flashloans let you borrow uncollateralised capital for a single transaction, provided you repay with fee in the same block. Aave V3 is the dominant provider — 0.05% fee, supports all major assets.
function executeOperation(
address asset,
uint256 amount,
uint256 premium,
address initiator,
bytes calldata params
) external returns (bool) {
// 1. Flashloan asset is now in this contract
// 2. Execute arbitrage path: e.g. USDC → WETH (Uniswap) → cbETH (Aerodrome) → USDC (Curve)
// 3. Repay amount + premium before this function returns
IERC20(asset).approve(address(POOL), amount + premium);
return true;
}
Balancer V2 offers 0-fee flashloans for pool assets — cheaper but asset-limited. Uniswap V3 has flash swaps (borrow tokenA, repay tokenB in same tx).
Triangular Arbitrage
Three-leg price loops across DEXes exploit stale pricing on correlated assets. Classic examples: USDC/USDT/DAI, WETH/cbETH/ETH, WBTC/tBTC.
# Detect a USDC → WETH → cbETH → USDC arbitrage
r1 = quote_uniswap_v3(USDC, WETH, 10_000_000_000) # USDC → WETH
r2 = quote_aerodrome(WETH, cbETH, r1) # WETH → cbETH
r3 = quote_curve(cbETH, USDC, r2) # cbETH → USDC
profit_bps = (r3 - 10_000_000_000) * 10_000 // 10_000_000_000
Profit requires: gross_bps - (2 * swap_fee_bps + flashloan_fee_bps + gas_in_bps) > threshold. Most triangles are <5bps — sub-basis-point precision on quotes matters.
AMM Math — Uniswap V3 Concentrated Liquidity
V3 pools expose liquidity in price ranges (ticks), not uniformly. Price is sqrtPriceX96^2 / 2^192. Out-of-range liquidity earns nothing; in-range liquidity earns fees but suffers impermanent loss.
# Quote from a V3 pool (simplified, in-range only)
from eth_abi import decode
def quote_v3(pool, amount_in, zero_for_one):
# Delegate to quoter contract — it simulates the swap
result = quoter.quoteExactInputSingle(
token_in, token_out, fee_tier, amount_in, 0
)
return result.amountOut
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 9d ago First seen · 117 lines · 81 tokens per session scan A dd6c16173342
defi-protocols is a skill published in the GitHub repository LuuOW/meridian-mcp (0 stars, last pushed yesterday), licensed MIT. It adds 81 tokens to every session and 1,615 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
Aerodrome Slipstream
Swap tokens and manage concentrated liquidity positions on Aerodrome Slipstream (CLMM) on Base. Trigger phrases: aerodrome swap, aerodrome liquidity, aerodrome slipstream, add liquidity aerodrome, remove liquidity aerodrome, aerodrome position, aerodrome CL pool, concentrated liquidity base.
Flash Loan Arbitrage Executor
Production-ready DeFi arbitrage system that detects and executes profitable price differences across multiple DEXs using Aave V3 flash loans. Real smart contract integration with Uniswap V3, Curve, and SushiSwap.
suwappu
Build with the Suwappu REST API: cross-chain quotes, simulation, self-custody or managed swaps, managed-wallet portfolio/prices, Polymarket research and orders, Hyperliquid market research, and Morpho lending-market research.
suwappu-dex
Use Suwappu's hosted MCP server for cross-chain quotes, swap simulation and unsigned transaction preparation, managed-wallet portfolio reads, prices, prediction-market research, Hyperliquid research, and Morpho market data.
crypto-defi-trading
Crypto and DeFi trading: DEX analysis (Uniswap, SushiSwap, Curve), on-chain analytics, MEV detection, impermanent loss, yield farming metrics, DeFi risk analysis, token metrics, liquidity pool analysis, whale tracking, exchange netflow. USE FOR: crypto, defi, dex, uniswap, sushiswap, curve, impermanent loss, yield…
aave-v2-plugin
Aave V2 exit tool on Ethereum, Polygon, and Avalanche - all reserves are governance-frozen. Redeem aTokens, repay debt cleanly via uint256.max sentinel, claim stkAAVE/WMATIC/WAVAX rewards. New supply/borrow rejected; redirects to aave-v3-plugin.