@arcadia-finance/mcp-server 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  [![MCP Badge](https://lobehub.com/badge/mcp/arcadia-finance-mcp-server)](https://lobehub.com/mcp/arcadia-finance-mcp-server)
10
10
  [![arcadia-finance-mcp-server MCP server](https://glama.ai/mcp/servers/arcadia-finance/arcadia-finance-mcp-server/badges/score.svg)](https://glama.ai/mcp/servers/arcadia-finance/arcadia-finance-mcp-server)
11
11
 
12
- MCP server for [Arcadia Finance](https://arcadia.finance), a platform to manage Uniswap and Aerodrome concentrated liquidity positions with built-in leverage, automated rebalancing, and yield optimization. Read protocol data and build unsigned transactions for LP management, borrowing, deposits, and more.
12
+ MCP server for [Arcadia Finance](https://arcadia.finance), a platform to manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and leverage. Read protocol data and build unsigned transactions for LP management, borrowing, deposits, and more.
13
13
 
14
14
  Designed for AI agents (Claude, Cursor, etc.) to interact with Arcadia onchain.
15
15
 
@@ -83,8 +83,18 @@ All write tools return **unsigned transactions** as `{ to, data, value, chainId
83
83
 
84
84
  ### Options
85
85
 
86
- **Wallet infrastructure (recommended for production):**
87
- Use your existing wallet setup — MPC wallets (Fireblocks, Dfns, Turnkey), smart accounts (Safe, Biconomy), or embedded wallets (Privy, Dynamic). Pass the unsigned tx object to your provider's signing method.
86
+ **Wallet MCP servers (recommended for production):**
87
+ Pair this server with a wallet MCP server that handles signing:
88
+
89
+ | Wallet MCP | Provider | Model |
90
+ | ----------------------------------------------------------------- | --------- | --------------------------------------------------------- |
91
+ | [MCP Wallet Signer](https://github.com/nikicat/mcp-wallet-signer) | Community | Non-custodial, routes to browser wallet (MetaMask, Rabby) |
92
+ | [Coinbase AgentKit](https://github.com/coinbase/agentkit) | Coinbase | Wallet-agnostic, supports multiple providers |
93
+ | [Phantom MCP](https://www.npmjs.com/package/@phantom/mcp-server) | Phantom | Embedded wallet |
94
+ | [Privy MCP](https://github.com/incentivai-io/privy-mcp-server) | Privy | Wallet infrastructure |
95
+ | [Safe MCP](https://github.com/safer-sh/safer) | Community | Multi-sig via Safe |
96
+
97
+ Or use your existing wallet setup (Fireblocks, Dfns, Turnkey, Biconomy, Dynamic) and pass the unsigned tx object to your provider's signing method.
88
98
 
89
99
  **viem/ethers in your agent:**
90
100
 
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ function createServer(options) {
24
24
  const server = new McpServer({
25
25
  name: "arcadia-finance",
26
26
  version: pkg.version,
27
- description: "Arcadia Finance. Manage concentrated liquidity positions with leverage, automated rebalancing, and yield optimization on Base and Unichain.",
27
+ description: "Arcadia Finance. Manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and leverage. Base and Unichain.",
28
28
  });
29
29
  const registrationTarget = options?.httpMode ? wrapServerForHttp(server) : server;
30
30
  registerAllTools(registrationTarget, apiClient, chainConfigs);
@@ -121,7 +121,7 @@ if (transportMode === "http") {
121
121
  app.get("/health", (_req, res) => {
122
122
  res.send("ok");
123
123
  });
124
- app.get("/.well-known/llms.txt", async (_req, res) => {
124
+ app.get("/llms.txt", async (_req, res) => {
125
125
  const { readFile } = await import("fs/promises");
126
126
  const { fileURLToPath } = await import("url");
127
127
  const { dirname, join } = await import("path");
@@ -129,6 +129,14 @@ if (transportMode === "http") {
129
129
  const content = await readFile(join(dir, "..", "llms.txt"), "utf-8");
130
130
  res.type("text/plain").send(convertToolNames(content));
131
131
  });
132
+ app.get("/llms-full.txt", async (_req, res) => {
133
+ const { readFile } = await import("fs/promises");
134
+ const { fileURLToPath } = await import("url");
135
+ const { dirname, join } = await import("path");
136
+ const dir = dirname(fileURLToPath(import.meta.url));
137
+ const content = await readFile(join(dir, "..", "llms-full.txt"), "utf-8");
138
+ res.type("text/plain").send(convertToolNames(content));
139
+ });
132
140
  app.post("/mcp", async (req, res) => {
133
141
  if (!validateOrigin(req, res))
134
142
  return;
@@ -16,11 +16,23 @@ export function formatBatchedResponse(result, chainId, description) {
16
16
  response.tenderly_sim_status = "unavailable";
17
17
  }
18
18
  if (result.expected_value_change != null) {
19
- response.expected_value_change = result.expected_value_change;
19
+ response.expected_value_change = String(result.expected_value_change);
20
+ }
21
+ if (result.before != null) {
22
+ const b = result.before;
23
+ response.before = {
24
+ ...b,
25
+ total_account_value: String(b.total_account_value),
26
+ used_margin: String(b.used_margin),
27
+ };
28
+ }
29
+ if (result.after != null) {
30
+ const a = result.after;
31
+ response.after = {
32
+ ...a,
33
+ total_account_value: String(a.total_account_value),
34
+ used_margin: String(a.used_margin),
35
+ };
20
36
  }
21
- if (result.before != null)
22
- response.before = result.before;
23
- if (result.after != null)
24
- response.after = result.after;
25
37
  return response;
26
38
  }
package/llms-full.txt ADDED
@@ -0,0 +1,429 @@
1
+ # Arcadia Finance MCP Server
2
+
3
+ > MCP server for Arcadia Finance, a DeFi protocol for managing concentrated liquidity positions (Uniswap v3/v4, Aerodrome/Slipstream) with automated rebalancing, compounding, yield optimization, and leverage. Supported chains: Base (8453), Unichain (130).
4
+
5
+ ## Overview
6
+
7
+ Arcadia lets users deploy and manage concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage. This MCP server exposes the full protocol as 38 tools:
8
+
9
+ - **Account management**: health factor, collateral, debt, positions, PnL, history
10
+ - **Wallet**: ERC20 balances, allowances, owned accounts, points
11
+ - **Lending pools**: TVL, APY, utilization, available liquidity, rate history
12
+ - **LP strategies**: concentrated liquidity strategies with APY per range width, recommendations
13
+ - **Transaction building**: unsigned calldata for deposits, borrows, swaps, LP minting/closing, staking
14
+ - **Automation**: configure asset managers (rebalancer, compounder, yield claimer, CowSwap, Merkl)
15
+
16
+ All write tools return unsigned transactions (`{ to, data, value, chainId }`). Signing is the client's responsibility.
17
+
18
+ ## Install
19
+
20
+ ```
21
+ npx -y @arcadia-finance/mcp-server
22
+ ```
23
+
24
+ Or connect to the remote server: `https://mcp.arcadia.finance/mcp`
25
+
26
+ ## Read Tools (17)
27
+
28
+ ### read.account.info
29
+
30
+ Get full overview of an Arcadia account: health factor, collateral value, debt, deposited assets, liquidation price, and automation status.
31
+
32
+ Parameters:
33
+ - `account_address` (string, required): Arcadia account address
34
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
35
+
36
+ ### read.account.history
37
+
38
+ Get historical collateral and debt values for an Arcadia account over time.
39
+
40
+ Parameters:
41
+ - `account_address` (string, required): Arcadia account address
42
+ - `days` (number, default: 14): Number of days of history
43
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
44
+
45
+ ### read.account.pnl
46
+
47
+ Get PnL (cost basis) and yield earned for an Arcadia account.
48
+
49
+ Parameters:
50
+ - `account_address` (string, required): Arcadia account address
51
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
52
+
53
+ ### read.wallet.balances
54
+
55
+ Get native ETH and ERC20 token balances for a wallet address.
56
+
57
+ Parameters:
58
+ - `wallet_address` (string, required): Wallet address to check balances for
59
+ - `token_addresses` (string[], required): ERC20 token contract addresses to check
60
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
61
+
62
+ ### read.wallet.allowances
63
+
64
+ Check ERC20 token allowances for a spender address.
65
+
66
+ Parameters:
67
+ - `owner_address` (string, required): Token owner address (the wallet granting approval)
68
+ - `spender_address` (string, required): Spender address to check allowance for
69
+ - `token_addresses` (string[], required): ERC20 token contract addresses to check
70
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
71
+
72
+ ### read.wallet.accounts
73
+
74
+ List all Arcadia accounts owned by a wallet address.
75
+
76
+ Parameters:
77
+ - `wallet_address` (string, required): Wallet address to list accounts for
78
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
79
+
80
+ ### read.wallet.points
81
+
82
+ Get Arcadia points balance for a specific wallet address.
83
+
84
+ Parameters:
85
+ - `wallet_address` (string, required): Wallet address to get points for
86
+
87
+ ### read.asset.list
88
+
89
+ List supported collateral assets on Arcadia.
90
+
91
+ Parameters:
92
+ - `search` (string, optional): Filter assets by symbol (case-insensitive substring match)
93
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
94
+
95
+ ### read.asset.prices
96
+
97
+ Get USD prices for one or more asset addresses.
98
+
99
+ Parameters:
100
+ - `asset_addresses` (string, required): Single address or comma-separated addresses
101
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
102
+
103
+ ### read.pool.list
104
+
105
+ List all Arcadia lending pools: TVL, utilization, available liquidity.
106
+
107
+ Parameters:
108
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
109
+
110
+ ### read.pool.info
111
+
112
+ Get detailed info for a single lending pool including APY history over time.
113
+
114
+ Parameters:
115
+ - `pool_address` (string, required): Pool address
116
+ - `days` (number, default: 14): Number of days of APY history
117
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
118
+
119
+ ### read.point_leaderboard
120
+
121
+ Get the Arcadia points leaderboard (paginated).
122
+
123
+ Parameters:
124
+ - `limit` (number, default: 25): Max entries to return
125
+ - `offset` (number, default: 0): Skip first N entries for pagination
126
+
127
+ ### read.strategy.list
128
+
129
+ Get Arcadia LP strategies with 7d avg APY for each strategy's default range.
130
+
131
+ Parameters:
132
+ - `featured_only` (boolean, default: false): Return only featured/curated strategies
133
+ - `limit` (number, default: 25): Max strategies to return
134
+ - `offset` (number, default: 0): Skip first N strategies for pagination
135
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
136
+
137
+ ### read.strategy.info
138
+
139
+ Get full detail for a specific LP strategy by ID.
140
+
141
+ Parameters:
142
+ - `strategy_id` (number, required): Strategy ID
143
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
144
+
145
+ ### read.strategy.recommendation
146
+
147
+ Get a rebalancing recommendation for an Arcadia account.
148
+
149
+ Parameters:
150
+ - `account_address` (string, required): Arcadia account address
151
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
152
+
153
+ ### read.asset_manager.intents
154
+
155
+ List all available automation intents with their tool names, required parameters, and supported chains.
156
+
157
+ Parameters:
158
+ - `chain_id` (number, optional): Filter to automations available on this chain
159
+
160
+ ### read.guides
161
+
162
+ Get Arcadia workflow guides and reference documentation.
163
+
164
+ Parameters:
165
+ - `topic` (enum, optional): overview | automation | strategies | selection
166
+
167
+ ## Write Tools (20)
168
+
169
+ All write tools return unsigned transactions as `{ to, data, value, chainId }`.
170
+
171
+ ### write.wallet.approve
172
+
173
+ Build an unsigned approval transaction for ERC20 tokens or ERC721/ERC1155 NFTs.
174
+
175
+ Parameters:
176
+ - `token_address` (string, required): Token contract address to approve
177
+ - `spender_address` (string, required): Address being approved
178
+ - `asset_type` (enum, default: "erc20"): erc20 | erc721 | erc1155
179
+ - `amount` (string, default: "max_uint256"): ERC20 only: amount in raw units
180
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
181
+
182
+ ### write.account.create
183
+
184
+ Build an unsigned transaction to create a new Arcadia account via the Factory contract.
185
+
186
+ Parameters:
187
+ - `salt` (number, required): Unique salt (uint32) for deterministic account address
188
+ - `wallet_address` (string, required): Wallet address that will send the transaction
189
+ - `account_version` (number, default: 0): 0 = latest (V4 spot), 3 = margin (can borrow)
190
+ - `creditor` (string, optional): Lending pool address for V3 margin account
191
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
192
+
193
+ ### write.account.deposit
194
+
195
+ Build an unsigned transaction to deposit assets into an Arcadia account as collateral.
196
+
197
+ Parameters:
198
+ - `account_address` (string, required): Arcadia account address
199
+ - `asset_addresses` (string[], required): Token contract addresses to deposit
200
+ - `asset_amounts` (string[], required): Amounts in raw units/wei, one per asset
201
+ - `asset_ids` (number[], optional): Token IDs: 0 for ERC20, NFT token ID for ERC721
202
+ - `asset_types` (number[], optional): V4 only. 1=ERC20, 2=ERC721, 3=ERC1155
203
+ - `account_version` (number, optional): Override account version (auto-detected if omitted)
204
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
205
+
206
+ ### write.account.withdraw
207
+
208
+ Build an unsigned transaction to withdraw assets from an Arcadia account.
209
+
210
+ Parameters:
211
+ - `account_address` (string, required): Arcadia account address
212
+ - `asset_addresses` (string[], required): Token contract addresses to withdraw
213
+ - `asset_amounts` (string[], required): Amounts in raw units/wei, one per asset
214
+ - `asset_ids` (number[], optional): Token IDs: 0 for ERC20, NFT token ID for ERC721
215
+ - `asset_types` (number[], optional): V4 only. 1=ERC20, 2=ERC721, 3=ERC1155
216
+ - `account_version` (number, optional): Override account version (auto-detected if omitted)
217
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
218
+
219
+ ### write.account.borrow
220
+
221
+ Build an unsigned transaction to borrow from an Arcadia lending pool.
222
+
223
+ Parameters:
224
+ - `pool_address` (string, required): Lending pool address
225
+ - `account_address` (string, required): Arcadia account address used as collateral
226
+ - `amount` (string, required): Amount in raw units
227
+ - `to` (string, required): Address to receive borrowed tokens
228
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
229
+
230
+ ### write.account.repay
231
+
232
+ Repay debt to an Arcadia lending pool using tokens from the wallet.
233
+
234
+ Parameters:
235
+ - `pool_address` (string, required): Lending pool address
236
+ - `account_address` (string, required): Arcadia account address with debt
237
+ - `amount` (string, required): Amount in raw units, or "max_uint256" to repay all
238
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
239
+
240
+ ### write.account.add_liquidity
241
+
242
+ Flash-action: atomically deposits from wallet + uses account collateral + swaps to optimal ratio + mints LP + borrows if leveraged, in one transaction.
243
+
244
+ Parameters:
245
+ - `account_address` (string, required): Arcadia account address
246
+ - `wallet_address` (string, required): Wallet address of the account owner
247
+ - `positions` (object[], required): LP positions to mint. Each object:
248
+ - `strategy_id` (number, required): From read.strategy.list
249
+ - `tick_lower` (number, optional): Lower tick. Omit for full range.
250
+ - `tick_upper` (number, optional): Upper tick. Omit for full range.
251
+ - `deposits` (object[], optional): Wallet tokens to deposit. Each object:
252
+ - `asset` (string, required): Token address
253
+ - `amount` (string, required): Amount in raw units
254
+ - `decimals` (number, default: 18): Token decimals (6 for USDC, 18 for WETH)
255
+ - `use_account_assets` (boolean, default: false): Use all existing account collateral
256
+ - `leverage` (number, default: 0): 0 = no borrow, 2 = 2x leverage
257
+ - `slippage` (number, default: 100): Basis points, 100 = 1%
258
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
259
+
260
+ ### write.account.remove_liquidity
261
+
262
+ Flash-action: partially decreases liquidity from an LP position.
263
+
264
+ Parameters:
265
+ - `account_address` (string, required): Arcadia account address
266
+ - `asset_address` (string, required): Position manager contract
267
+ - `asset_id` (number, required): NFT token ID
268
+ - `adjustment` (string, required): Liquidity amount to remove (raw uint128)
269
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
270
+
271
+ ### write.account.swap
272
+
273
+ Flash-action: swaps assets within an Arcadia account atomically.
274
+
275
+ Parameters:
276
+ - `account_address` (string, required): Arcadia account address
277
+ - `asset_from` (string, required): Token address to swap from
278
+ - `asset_to` (string, required): Token address to swap to
279
+ - `amount_in` (string, required): Raw units
280
+ - `slippage` (number, default: 100): Basis points, 100 = 1%
281
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
282
+
283
+ ### write.account.deleverage
284
+
285
+ Flash-action: sells account collateral to the debt token and repays atomically.
286
+
287
+ Parameters:
288
+ - `account_address` (string, required): Arcadia account address
289
+ - `amount_in` (string, required): Collateral amount to sell (raw units)
290
+ - `asset_from` (string, required): Collateral token to sell
291
+ - `numeraire` (string, required): Debt token address
292
+ - `creditor` (string, required): Lending pool address
293
+ - `slippage` (number, default: 100): Basis points, 100 = 1%
294
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
295
+
296
+ ### write.account.stake
297
+
298
+ Flash-action: stake, unstake, or claim rewards for an LP position.
299
+
300
+ Parameters:
301
+ - `account_address` (string, required): Arcadia account address
302
+ - `action` (enum, required): stake | unstake | claim
303
+ - `asset_address` (string, required): Position manager contract address
304
+ - `asset_id` (number, required): NFT token ID
305
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
306
+
307
+ ### write.account.close
308
+
309
+ Atomic flash-action that closes an Arcadia account position in one transaction.
310
+
311
+ Parameters:
312
+ - `account_address` (string, required): Arcadia account address
313
+ - `assets` (object[], required): Assets to close/sell. Each object:
314
+ - `asset_address` (string, required): Token or position manager address
315
+ - `asset_id` (number, required): NFT token ID (0 for ERC20)
316
+ - `amount` (string, required): Amount to sell ("1" for NFTs)
317
+ - `decimals` (number, required): Token decimals (1 for NFTs)
318
+ - `receive_assets` (object[], optional): Target assets to receive. Each object:
319
+ - `asset_address` (string, required): Target token address
320
+ - `decimals` (number, required): Token decimals
321
+ - `distribution` (number, optional): Fraction of proceeds (0-1)
322
+ - `close_lp_only` (boolean, default: false): true = only burn LP, false = full close
323
+ - `slippage` (number, default: 100): Basis points, 100 = 1%
324
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
325
+
326
+ ### write.account.set_asset_managers
327
+
328
+ Build an unsigned setAssetManagers transaction from encoded intent args.
329
+
330
+ Parameters:
331
+ - `account_address` (string, required): Arcadia account address
332
+ - `asset_managers` (string[], required): Asset manager addresses from intent tools
333
+ - `statuses` (boolean[], required): Enable/disable flags from intent tools
334
+ - `datas` (string[], required): Encoded callback data from intent tools (hex)
335
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
336
+
337
+ ### write.asset_manager.rebalancer
338
+
339
+ Encode args for the rebalancer automation.
340
+
341
+ Parameters:
342
+ - `dex_protocol` (enum, required): slipstream | slipstream_v2 | staked_slipstream | staked_slipstream_v2 | uniV3 | uniV4
343
+ - `enabled` (boolean, default: true): Enable or disable
344
+ - `compound_leftovers` (enum, default: "all"): all | none | token0 | token1
345
+ - `optimal_token0_ratio` (number, default: 500000): Target token0 ratio scaled by 1e6 (500000 = 50%)
346
+ - `trigger_lower_ratio` (number, default: 0): Offset from tick_lower, fraction of tick range, scaled by 1e6
347
+ - `trigger_upper_ratio` (number, default: 0): Offset from tick_upper, fraction of tick range, scaled by 1e6
348
+ - `min_rebalance_time` (number, default: 3600): Min seconds between rebalances
349
+ - `max_rebalance_time` (number, default: 1e12): Max seconds before forced rebalance
350
+ - `strategy_hook` (string, optional): Custom strategy hook address
351
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
352
+
353
+ ### write.asset_manager.compounder
354
+
355
+ Encode args for the standalone compounder automation.
356
+
357
+ Parameters:
358
+ - `dex_protocol` (enum, required): slipstream | slipstream_v2 | staked_slipstream | staked_slipstream_v2 | uniV3 | uniV4
359
+ - `enabled` (boolean, default: true): Enable or disable
360
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
361
+
362
+ ### write.asset_manager.compounder_staked
363
+
364
+ Encode args for compounder + CowSwap for staked LP positions.
365
+
366
+ Parameters:
367
+ - `dex_protocol` (enum, required): slipstream | slipstream_v2 | staked_slipstream | staked_slipstream_v2 | uniV3 | uniV4
368
+ - `sell_tokens` (string[], required): Token addresses to sell via CowSwap
369
+ - `buy_token` (string, required): Token address to buy (USDC, WETH, cbBTC)
370
+ - `enabled` (boolean, default: true): Enable or disable
371
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
372
+
373
+ ### write.asset_manager.yield_claimer
374
+
375
+ Encode args for the standalone yield claimer automation.
376
+
377
+ Parameters:
378
+ - `dex_protocol` (enum, required): slipstream | slipstream_v2 | staked_slipstream | staked_slipstream_v2 | uniV3 | uniV4
379
+ - `fee_recipient` (string, required): Address to receive claimed fees
380
+ - `enabled` (boolean, default: true): Enable or disable
381
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
382
+
383
+ ### write.asset_manager.yield_claimer_cowswap
384
+
385
+ Encode args for yield claimer + CowSwap.
386
+
387
+ Parameters:
388
+ - `dex_protocol` (enum, required): slipstream | slipstream_v2 | staked_slipstream | staked_slipstream_v2 | uniV3 | uniV4
389
+ - `sell_tokens` (string[], required): Token addresses to sell
390
+ - `buy_token` (string, required): Token address to receive after swap
391
+ - `fee_recipient` (string, required): Address to receive claimed fees
392
+ - `enabled` (boolean, default: true): Enable or disable
393
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
394
+
395
+ ### write.asset_manager.cow_swapper
396
+
397
+ Encode args for standalone direct CowSwap mode (Base only).
398
+
399
+ Parameters:
400
+ - `enabled` (boolean, default: true): Enable or disable
401
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base)
402
+
403
+ ### write.asset_manager.merkl_operator
404
+
405
+ Encode args for the Merkl operator automation.
406
+
407
+ Parameters:
408
+ - `reward_recipient` (string, required): Address to receive Merkl rewards
409
+ - `enabled` (boolean, default: true): Enable or disable
410
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
411
+
412
+ ## Dev Tools (1)
413
+
414
+ ### dev.send
415
+
416
+ Sign and broadcast an unsigned transaction using a local private key (PK env var). Dev only.
417
+
418
+ Parameters:
419
+ - `to` (string, required): Target contract address
420
+ - `data` (string, required): Encoded calldata (hex)
421
+ - `value` (string, default: "0"): Value in wei
422
+ - `chain_id` (number, default: 8453): Chain ID: 8453 (Base) or 130 (Unichain)
423
+
424
+ ## Links
425
+
426
+ - Website: https://arcadia.finance
427
+ - Docs: https://docs.arcadia.finance
428
+ - npm: https://www.npmjs.com/package/@arcadia-finance/mcp-server
429
+ - GitHub: https://github.com/arcadia-finance/mcp-server
package/llms.txt CHANGED
@@ -1,10 +1,10 @@
1
1
  # Arcadia Finance MCP Server
2
2
 
3
- > MCP server for Arcadia Finance, a DeFi protocol for managing concentrated liquidity positions (Uniswap v3/v4, Aerodrome/Slipstream) with leverage, automated rebalancing, and yield optimization. Supported chains: Base (8453), Unichain (130).
3
+ > MCP server for Arcadia Finance, a DeFi protocol for managing concentrated liquidity positions (Uniswap v3/v4, Aerodrome/Slipstream) with automated rebalancing, compounding, yield optimization, and leverage. Supported chains: Base (8453), Unichain (130).
4
4
 
5
5
  ## Overview
6
6
 
7
- Arcadia lets users open leveraged LP positions, borrow against collateral, and automate position management (rebalancing, compounding, yield claiming). This MCP server exposes the full protocol as 38 tools:
7
+ Arcadia lets users deploy and manage concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage. This MCP server exposes the full protocol as 38 tools:
8
8
 
9
9
  - **Account management**: health factor, collateral, debt, positions, PnL, history
10
10
  - **Wallet**: ERC20 balances, allowances, owned accounts, points
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@arcadia-finance/mcp-server",
3
3
  "mcpName": "io.github.arcadia-finance/mcp-server",
4
- "version": "0.3.2",
5
- "description": "MCP server for Arcadia Finance. Manage concentrated liquidity positions with leverage, automated rebalancing, and yield optimization on Base and Unichain.",
4
+ "version": "0.3.4",
5
+ "description": "MCP server for Arcadia Finance. Manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and leverage. Base and Unichain.",
6
6
  "type": "module",
7
7
  "license": "AGPL-3.0",
8
8
  "packageManager": "yarn@4.13.0",
@@ -30,6 +30,9 @@
30
30
  "leverage",
31
31
  "yield-farming",
32
32
  "rebalancing",
33
+ "compounding",
34
+ "lp-management",
35
+ "automation",
33
36
  "onchain"
34
37
  ],
35
38
  "files": [
@@ -37,6 +40,7 @@
37
40
  "skills",
38
41
  "server.json",
39
42
  "llms.txt",
43
+ "llms-full.txt",
40
44
  "README.md",
41
45
  "LICENSE.md"
42
46
  ],
package/server.json CHANGED
@@ -2,8 +2,8 @@
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.arcadia-finance/mcp-server",
4
4
  "title": "Arcadia Finance",
5
- "description": "Manage Uniswap and Aerodrome liquidity positions with automated rebalancing and leverage.",
6
- "version": "0.3.2",
5
+ "description": "Manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and leverage.",
6
+ "version": "0.3.4",
7
7
  "websiteUrl": "https://arcadia.finance",
8
8
  "repository": {
9
9
  "url": "https://github.com/arcadia-finance/mcp-server",
@@ -13,7 +13,7 @@
13
13
  {
14
14
  "registryType": "npm",
15
15
  "identifier": "@arcadia-finance/mcp-server",
16
- "version": "0.3.2",
16
+ "version": "0.3.4",
17
17
  "transport": {
18
18
  "type": "stdio"
19
19
  },
@@ -6,7 +6,7 @@ user-invocable: true
6
6
 
7
7
  # Arcadia Finance — clAMM Agent Guide
8
8
 
9
- Arcadia is a platform for managing concentrated liquidity positions — with built-in leverage, automated rebalancing, compounding, and yield optimization. Positions live in Arcadia accounts, which can also borrow against their collateral. This skill covers everything needed to manage clAMM positions as an agent.
9
+ Arcadia is a platform for managing concentrated liquidity positions with automated rebalancing, compounding, yield optimization, and leverage. Positions live in Arcadia accounts, which can also borrow against their collateral. This skill covers everything needed to manage clAMM positions as an agent.
10
10
 
11
11
  ## Key Constraints
12
12
 
@@ -0,0 +1,81 @@
1
+ ---
2
+ name: arcadia-finance
3
+ description: "DeFi liquidity management on Uniswap and Aerodrome, live on Base and Unichain. Deploy LP positions with automated rebalancing, compounding, yield optimization, and leverage via Arcadia Finance."
4
+ metadata:
5
+ openclaw:
6
+ homepage: https://arcadia.finance
7
+ install:
8
+ - kind: node
9
+ package: "@modelcontextprotocol/sdk"
10
+ bins: []
11
+ ---
12
+
13
+ # Arcadia Finance
14
+
15
+ Arcadia helps users deploy and manage concentrated liquidity positions on Uniswap and Aerodrome with automated rebalancing, compounding, yield optimization, and optional leverage. Supported chains: Base (8453), Unichain (130).
16
+
17
+ ## CLI Usage
18
+
19
+ ```bash
20
+ node arcadia.mjs <tool_name> '<json_args>'
21
+ node arcadia.mjs --list
22
+ ```
23
+
24
+ The `@modelcontextprotocol/sdk` dependency is installed automatically via the skill's install spec.
25
+
26
+ ## Read Operations
27
+
28
+ ```bash
29
+ # List all accounts for a wallet
30
+ node arcadia.mjs read_wallet_accounts '{"wallet_address":"0x..."}'
31
+
32
+ # Account details (health factor, collateral, debt, positions)
33
+ node arcadia.mjs read_account_info '{"account_address":"0x..."}'
34
+
35
+ # Featured LP strategies with APY
36
+ node arcadia.mjs read_strategy_list '{"featured_only":true}'
37
+
38
+ # Lending pools (TVL, APY, utilization)
39
+ node arcadia.mjs read_pool_list '{}'
40
+
41
+ # Workflow guides (automation setup, strategy selection)
42
+ node arcadia.mjs read_guides '{"topic":"overview"}'
43
+
44
+ # Available automations (rebalancer, compounder, yield claimer)
45
+ node arcadia.mjs read_asset_manager_intents '{}'
46
+ ```
47
+
48
+ ## Write Operations
49
+
50
+ All write tools return unsigned transactions `{ to, data, value, chainId }`. See `wallet-signing.md` for how to sign and broadcast.
51
+
52
+ ```bash
53
+ # Open LP position (deposits + swaps + mints LP atomically)
54
+ node arcadia.mjs write_account_add_liquidity '{"account_address":"0x...","wallet_address":"0x...","positions":[{"strategy_id":123}],"deposits":[{"asset":"0x...","amount":"1000000","decimals":6}]}'
55
+
56
+ # Close position (burn LP + swap + repay in one tx)
57
+ node arcadia.mjs write_account_close '{"account_address":"0x...","assets":[...],"receive_assets":[...]}'
58
+
59
+ # Enable automation
60
+ node arcadia.mjs write_asset_manager_rebalancer '{"dex_protocol":"slipstream"}'
61
+ node arcadia.mjs write_account_set_asset_managers '{"account_address":"0x...","asset_managers":[...],"statuses":[...],"datas":[...]}'
62
+ ```
63
+
64
+ ## Configuration
65
+
66
+ The CLI connects to `https://mcp.arcadia.finance/mcp` by default. Set `ARCADIA_MCP_URL` to override (e.g. for local development).
67
+
68
+ ## Safety
69
+
70
+ - Write tools return unsigned transactions only. Never auto-sign.
71
+ - Always confirm transaction details with the user before signing.
72
+ - Check account health factor with `read_account_info` before risky operations.
73
+ - Do not pass private keys or secrets as tool arguments. Only public addresses and amounts are needed.
74
+
75
+ ## References
76
+
77
+ - Full tool documentation: https://mcp.arcadia.finance/llms-full.txt
78
+ - Contract addresses: see `contracts.md`
79
+ - Signing guide: see `wallet-signing.md`
80
+ - Website: https://arcadia.finance
81
+ - Docs: https://docs.arcadia.finance
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * CLI wrapper for Arcadia Finance MCP server.
5
+ * Connects to the remote endpoint and calls tools by name.
6
+ *
7
+ * Usage:
8
+ * node arcadia.mjs <tool_name> '<json_args>'
9
+ * node arcadia.mjs --list
10
+ *
11
+ * Requires: npm install @modelcontextprotocol/sdk
12
+ */
13
+
14
+ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
15
+ import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
16
+
17
+ const ENDPOINT = process.env.ARCADIA_MCP_URL || "https://mcp.arcadia.finance/mcp";
18
+ const [toolName, argsJson] = process.argv.slice(2);
19
+
20
+ if (!toolName) {
21
+ console.error("Usage: node arcadia.mjs <tool_name> '<json_args>'");
22
+ console.error(" node arcadia.mjs --list");
23
+ process.exit(1);
24
+ }
25
+
26
+ const client = new Client({ name: "arcadia-openclaw", version: "1.0.0" });
27
+ const transport = new StreamableHTTPClientTransport(new URL(ENDPOINT));
28
+ await client.connect(transport);
29
+
30
+ try {
31
+ if (toolName === "--list") {
32
+ const { tools } = await client.listTools();
33
+ for (const t of tools.sort((a, b) => a.name.localeCompare(b.name))) {
34
+ console.log(`${t.name}: ${t.description?.substring(0, 120)}`);
35
+ }
36
+ } else {
37
+ const args = argsJson ? JSON.parse(argsJson) : {};
38
+ const result = await client.callTool({ name: toolName, arguments: args });
39
+ const text = result.content?.[0]?.text ?? "";
40
+ if (result.isError) {
41
+ console.error(`ERROR: ${text}`);
42
+ process.exitCode = 1;
43
+ } else {
44
+ console.log(text);
45
+ }
46
+ }
47
+ } finally {
48
+ await client.close();
49
+ }
@@ -0,0 +1,32 @@
1
+ # Arcadia Contract Addresses
2
+
3
+ Supported chains: Base (8453), Unichain (130).
4
+
5
+ ## Protocol (same on all chains)
6
+
7
+ | Contract | Address |
8
+ | ---------- | ------------------------------------------ |
9
+ | Factory | 0xDa14Fdd72345c4d2511357214c5B89A919768e59 |
10
+ | Registry | 0xd0690557600eb8Be8391D1d97346e2aab5300d5f |
11
+ | Liquidator | 0xA4B0b9fD1d91fA2De44F6ABFd59cC14bA1E1a7Af |
12
+
13
+ ## Lending Pools (Base)
14
+
15
+ | Pool | Address |
16
+ | -------- | ------------------------------------------ |
17
+ | LP_WETH | 0x803ea69c7e87D1d6C86adeB40CB636cC0E6B98E2 |
18
+ | LP_USDC | 0x3ec4a293Fb906DD2Cd440c20dECB250DeF141dF1 |
19
+ | LP_CBBTC | 0xa37E9b4369dc20940009030BfbC2088F09645e3B |
20
+
21
+ ## Key Tokens (Base)
22
+
23
+ | Token | Address | Decimals |
24
+ | ----- | ------------------------------------------ | -------- |
25
+ | WETH | 0x4200000000000000000000000000000000000006 | 18 |
26
+ | USDC | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | 6 |
27
+ | cbBTC | 0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf | 8 |
28
+ | AERO | 0x940181a94A35A4569E4529A3CDfB74e38FD98631 | 18 |
29
+
30
+ ## Asset Managers
31
+
32
+ Rebalancers, compounders, and yield claimers are deployed per DEX protocol. Use `read_asset_manager_intents` to discover available automations and their addresses.
@@ -0,0 +1,11 @@
1
+ # Signing Unsigned Transactions
2
+
3
+ All Arcadia write tools return unsigned transactions as `{ to, data, value, chainId }`. You need a separate wallet to sign and broadcast. Never expose private keys to the agent.
4
+
5
+ ## Wallet MCP Servers (recommended)
6
+
7
+ - MCP Wallet Signer (github.com/nikicat/mcp-wallet-signer): routes to browser wallet (MetaMask, Rabby), non-custodial
8
+ - Phantom MCP (@phantom/mcp-server): for Phantom wallet users
9
+ - Privy MCP (github.com/incentivai-io/privy-mcp-server): wallet infrastructure
10
+ - Coinbase AgentKit (github.com/coinbase/agentkit): wallet-agnostic signing
11
+ - Safe MCP (github.com/safer-sh/safer): multi-sig via Safe