aero-allocator
The aero-allocator server forecasts next-epoch demand for Aerodrome pools on Base and provides actionable incentive-allocation recommendations for any MCP-capable AI agent. All data is fetched live from Base mainnet — no API keys required.
Scan pools (
scan_pools): Get a market overview of gauge-enabled pools with live TVL, staked TVL, fee tier, and emissions, sorted by staked TVL.Retrieve pool history (
pool_history): Fetch per-epoch historical data for a specific pool — votes, AERO emissions, trading fees (USD), and bribes/incentives (USD) — newest epoch first, including the in-progress epoch.Predict demand (
predict_demand): Forecast next-epoch trading fees using EWMA + linear trend modeling (up to 8 weekly epochs), and compare predictions against current vote allocations. Highlights pools with a positivepredictiveEdgePct— under-incentivized relative to predicted demand.Recommend allocation (
recommend_allocation): Generate a concrete allocation with weights summing to 100% using one of two strategies:protocol_efficiency: Proportional to predicted fee demand.voter_roi: Maximizes expected reward per veAERO vote with a 25% per-pool concentration cap.
Prepare vote calldata (
prepare_vote_calldata): Build unsignedVoter.vote()calldata from a given allocation and veAERO NFT ID. Returns{ to, data, value }for your wallet layer to review, sign, and submit — the server never holds keys.Check Predictive Allocation status (
predictive_allocation_status): Check whether the direct Predictive Allocation submission path is live and wired into the server.
Provides tools for forecasting next-epoch demand and allocating incentives across Velodrome (Optimism) liquidity pools, including vote recommendations, bribe placement, and calldata preparation for veVELO voters.
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., "@aero-allocatorpredict demand for top 5 Aerodrome pools"
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.
aero-allocator
MCP server that forecasts next-epoch demand for Aerodrome (Base) or Velodrome (Optimism) pools and turns it into concrete incentive-allocation recommendations — built for Aerodrome's Predictive Allocation era (September 2026, pushed back from the original July target), where incentives follow predicted future demand instead of last week's votes. Aerodrome is the default; see Multi-protocol to switch.
Any MCP-capable agent (Claude Code, Claude Desktop, Bankr-hosted agents) can use it to answer:
Which pools will generate the most fees next epoch?
Where is vote share mispriced vs predicted demand (the "predictive edge")?
How should I split my veAERO votes / incentive budget right now?
All data comes live from Base — Aerodrome Sugar contracts for pool state and per-epoch history, DefiLlama for USD pricing. No API keys required.
Tools
Tool | What it does |
| Gauge-enabled pools with live TVL, staked TVL, fee tier |
| Per-epoch votes, emissions, fees (USD), bribes (USD) for one pool |
| Next-epoch fee forecast per pool + predictiveEdgePct (predicted demand share − current vote share) |
| Weighted allocation: |
| For teams/protocols spending a bribe budget (not voters): estimated vote-share pull per pool, and who gets diluted |
| For LPs deciding where to stake liquidity: forward-looking AERO-emissions APR per pool (not fee revenue — see below) |
| Unsigned |
| Unsigned calldata for direct Predictive Allocation submission, once wired up — see Predictive Allocation adapter |
| Whether direct Predictive Allocation submission is wired up yet |
| Walk-forward accuracy of the demand forecast vs. realized fees and a naive baseline — see Forecast accuracy |
This server never holds keys or signs anything. Execution is the host agent's job, behind explicit user approval.
Related MCP server: aero-vote-radar
Quick start
npm install
npm run smoke # live end-to-end test against Base mainnet
npm run buildMulti-protocol (Aerodrome / Velodrome)
Aerodrome (Base) and Velodrome (Optimism) are the same ve(3,3) lineage — Aerodrome is a Velodrome fork sharing the Sugar/Voter contract pattern — so one engine covers both. A single server process serves one protocol, selected at startup:
{
"mcpServers": {
"aero-allocator": {
"command": "npx",
"args": ["tsx", "/path/to/aero-allocator/src/index.ts"],
"env": { "AERO_PROTOCOL": "aerodrome" }
},
"velo-allocator": {
"command": "npx",
"args": ["tsx", "/path/to/aero-allocator/src/index.ts"],
"env": { "AERO_PROTOCOL": "velodrome" }
}
}
}AERO_PROTOCOL defaults to aerodrome (unchanged behavior if unset). Register both entries to run them side by side — each is a separate process with its own RPC client and caches. Tool descriptions, ve-token naming (veAERO/veVELO), and reward-token naming (AERO/VELO) all switch automatically with the configured protocol; predictive_allocation_status correctly reports the mechanism as not applicable when running Velodrome, since Dromos Labs' announcement is Aerodrome-specific.
RPC selection: RPC_URL (new, works for either protocol) always wins if set; otherwise BASE_RPC_URL is honored for backward compatibility when running Aerodrome; otherwise each protocol falls back to a public default (base-rpc.publicnode.com / mainnet.optimism.io).
Dashboard
A "predicted hot pools" web UI lives in web/ (Next.js, reuses the engine directly) — currently Aerodrome/Base only:
npm run build # engine dist/ used by the web app
cd web && npm install && npm run devOpen http://localhost:3000 — hot-pools table (predicted fees, edge, confidence), plus interactive Voter ROI (enter your veAERO) and Protocol Efficiency allocation panels. First load builds the onchain snapshot (~1 min), then it's cached.
Connect a wallet (injected or Coinbase Wallet, Base chain) to cast the Voter ROI allocation as a
real vote: your veAERO NFTs are auto-detected via VeSugar (manual id entry as fallback) and the
"cast vote" button submits Voter.vote() with the recommended weights — you sign in your wallet;
the app never holds keys.
Register with Claude Code:
claude mcp add aero-allocator -- npx tsx /path/to/aero-allocator/src/index.tsOr in any MCP client config:
{
"mcpServers": {
"aero-allocator": {
"command": "npx",
"args": ["tsx", "/path/to/aero-allocator/src/index.ts"],
"env": { "BASE_RPC_URL": "https://mainnet.base.org" }
}
}
}Example agent flow:
"Predict demand for the top Aerodrome pools, recommend a voter_roi allocation across 8 pools, then prepare the vote calldata for my veAERO #12345 and submit it with my Base wallet."
How the forecast works
For each candidate pool (top N by staked TVL above a TVL floor):
Pull up to 8 weekly epochs of history from
RewardsSugar.epochsByAddress— votes, emissions, fees, incentives per epoch — and price everything in USD.Extrapolate the in-progress epoch to full length once >20% has elapsed (the freshest demand signal).
Forecast next-epoch fees = EWMA (α=0.45) + ½ × linear trend, floored at 0. Confidence scores from history depth and variance.
predictiveEdge= predicted fee-demand share − current vote share. Positive edge → under-incentivized pool: exactly what a prediction-market allocator should reward.
Two allocation objectives:
protocol_efficiency — weights ∝ predicted demand share. This is the Predictive Allocation ideal; useful for treasuries/protocols directing incentives and for benchmarking the live mechanism once it ships.
voter_roi — maximize your expected next-epoch reward for a given veAERO amount (
votingPowerVe). Each pool pays pro-rata (R·v/(E+v)), so the optimizer water-fills votes to equalize marginal returns — dust pools with high headline ROI but no reward capacity naturally get few or no votes (plus a hard $500 capacity floor). Output includes the expected USD reward per pool after self-dilution.
recommend_bribe_placement flips this around for teams/protocols spending a bribe budget instead of voters: it re-runs the same water-fill over the market's entire active voting power, with and without the bribe added to one pool's payout, and reports the vote-share delta. Votes water-fill ∝ √payout, so a bribe dollar pulls disproportionately more on a cheap pool than an already-large one. This models an instant, frictionless, whole-market reallocation, so it's a theoretical ceiling, not a forecast — useful for comparing candidate pools, not for predicting a literal vote count.
recommend_lp_deposit targets a third audience — LPs deciding where to deposit and stake liquidity — and deliberately does not rank by predictedFeesUsd. On Aerodrome, trading fees (and bribes) accrue to veAERO voters, not to liquidity stakers; stakers instead earn AERO emissions pro-rata to staked TVL. So this tool forecasts next-epoch emissions from each pool's emissions history with the same EWMA+trend model predict_demand uses for fees, and annualizes the result against current staked TVL as predictedNextEpochAprPct. It also reports currentEpochAprPct, which needs no forecast at all — the live epoch's emission rate was already fixed by votes cast before it started, so it's read directly rather than predicted.
Forecast accuracy
confidence on each forecast starts as a heuristic (history depth + variance), then gets recalibrated
against real backtested accuracy before it reaches any tool output — see Confidence
calibration below. backtest_summary (tool) and npm run backtest (script)
expose the full validation.
Methodology: walk forward through each pool's completed-epoch history. At every historical epoch
boundary, forecast that epoch using only the epochs that would have actually been available beforehand
(capped at the same trailing window predict_demand uses — the backtest never gives the model more
history than it gets live), then compare against what actually happened. Errors are reported as MAE,
RMSE and WAPE (Σ|error| / Σactual, robust to the near-zero-fee epochs MAPE chokes on), alongside
skill vs. baseline — the same comparison against a naive "predict next epoch = last epoch" model,
so a negative skill number means the EWMA+trend forecast isn't earning its complexity over doing
nothing. A confidence-calibration table checks whether higher-confidence forecasts actually have lower
error. One known gap: this replays epoch-boundary predictions only — it doesn't replay the mid-epoch
pace-extrapolation blend used for the live in-progress epoch.
Confidence calibration
The heuristic confidence (depthScore × stabilityScore) is a guess at how trustworthy a forecast is —
it's never seen a real outcome. deriveConfidenceCalibration buckets every walk-forward backtest point
by its raw heuristic confidence, computes the actual WAPE realized within each bucket, and converts
that to calibratedConfidence = 1/(1+wape) (the same functional form the heuristic already uses for its
own variance term). predict_demand, recommend_allocation and recommend_bribe_placement then remap
every live forecast's confidence through this curve via applyConfidenceCalibration — so a
confidence range that the heuristic thought looked solid but has actually been noisy in practice gets
marked down, and vice versa. This matters beyond display: confidence directly weights the voter_roi
reward estimate and gates recommend_bribe_placement's candidate pools, so a miscalibrated score would
quietly bias both.
Buckets with fewer than 8 backtest samples are dropped rather than trusted, and any forecast whose raw
confidence falls in a dropped (or as-yet-uncomputed) range keeps its heuristic score — calibration is
opportunistic on top of the always-available heuristic, never a hard dependency. If a fresh
backtest_summary hasn't run yet in the last hour, the relevant tools fetch one alongside the market
snapshot (concurrently, so it doesn't add to the wait) and fall back to the raw heuristic if that fetch
fails for any reason.
Run npm run backtest for a console report, or call backtest_summary from any connected agent for
live numbers (cached ~1h; AERO_BACKTEST_EPOCHS / AERO_BACKTEST_MAX_POOLS tune the depth/breadth).
Predictive Allocation adapter
Dromos Labs announced the mechanism but hasn't published contracts/ABI yet (as of 2026-08-16; launch has slipped from July to September 2026). Everything mechanism-specific lives behind one interface in src/adapters/predictive-allocation.ts, and it's fully config-driven — no code changes needed on launch day, just set env vars once Dromos publishes the address and ABI:
Var | Example | |
|
| The mechanism's contract address |
|
| Human-readable ABI (JSON array), single function |
|
| Function name to call |
|
| Positional arg roles — supported: |
With all four set, prepare_submission builds real calldata; predictive_allocation_status reports live: true. Until then, prepare_submission fails with a clear "not published yet" error and prepare_vote_calldata targets the classic Voter.vote() flow, which works today.
Configuration (env)
Var | Default | |
|
|
|
| protocol default | Dedicated RPC, either protocol — always wins if set |
|
| Legacy alias for |
|
| Candidate pool TVL floor |
|
| Pools receiving full epoch-history analysis |
|
| Epochs of history pulled per pool for |
|
| Pools analyzed per default |
Contracts used
Both from velodrome-finance/sugar's deployments/{base,optimism}.env; reward-token addresses cross-checked against DefiLlama + CoinGecko.
Aerodrome (Base, 8453) | Velodrome (Optimism, 10) | |
LpSugar |
|
|
RewardsSugar |
|
|
VeSugar |
|
|
Voter |
|
|
Reward token (AERO/VELO) |
|
|
Roadmap
Predictive Allocation adapter is config-driven and launch-ready — wiring the real contracts is an env var change (
prepare_submission)Social/attention signals (Farcaster mentions, token listings) as forecast features
Backtest harness: replay past epochs, score forecast vs realized fees, publish accuracy (
backtest_summary,npm run backtest)x402-monetized hosted endpoint (pay-per-forecast in USDC via Bankr)
"Predicted hot pools" dashboard (
web/)Wallet connection + one-click vote from the dashboard (wagmi)
Multi-protocol: Velodrome (Optimism) alongside Aerodrome (Base), selected via
AERO_PROTOCOLDashboard (
web/) multi-protocol support (currently Aerodrome/Base only)
Disclaimer
Forecasts are statistical extrapolations of onchain history, not financial advice. Always review calldata before signing.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP (Model Context Protocol) server for the MAIN DEX on Base. Provides AI agents (Claude, Cursor, etc.) with tools to interact with the protocol: swap tokens, manage liquidity, enter/exit ALM strategies(10% APY), and more.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server + CLI that reads live on-chain data from Aerodrome Finance (Base) to rank pools by veAERO vote efficiency, and recommends a vote allocation that accounts for self-dilution.2MIT
- AlicenseNot gradedqualityBmaintenanceMCP server to fetch DeFi yield opportunities on Base chain, including Aerodrome LP and Moonwell lending, with pay-per-call via x402 micropayments.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that provides AI agents with pay-per-call access to a suite of tools (honeypot check, token market, DeFi yields, etc.) via USDC on Base using the x402 protocol.23MIT
Related MCP Connectors
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
7-factor stock scoring MCP server. US/HK/CN, 74 stocks. Free + Premium (USDC/Base). x402 ready.
Agent-commerce MCP server for x402/USDC payments and affiliate splits on Base.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/Hryhorii77/aero-allocator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server