toreva_configure
Configure preferences for toreva execution. Set default constraints, preferred protocols, and risk tolerance.
Scan a Solana wallet for idle capital, simulate a strategy before it runs, and route a perps position to whichever venue fills it better — non-custodial throughout.
LABSCO SUMMARY
toreva_simulate and toreva_perps_simulate cost nothing and execute nothing — they return the projected entry, the fees, the funding cost and the venue comparison a live order would have used, which makes the sensible pattern obvious: simulate, read the venue reasoning, then open. On pricing, only opening a perps position carries a Toreva fee, at 1 bps of notional, while closing, margin changes, cancellations, funding settlement and every read are free. Execution stays non-custodial, with the transaction handed back for signing and a receipt afterwards, so what an agent can do here is propose and prepare rather than move funds on its own.
An MCP server for Toreva, which turns Solana DeFi actions into tools an agent can call: scan a wallet, simulate what a strategy would do, execute it as a user-signable transaction, and read back a receipt for what happened. Alongside that sits a perpetual-futures layer that compares Jupiter Perps, Pacifica, Drift and Flash Trade on fees, funding rate and liquidity before routing an order.
npm install -g @toreva/mcp, then run toreva-mcp over stdio with RELAY_AUTH_TOKEN set. Execution is non-custodial: transactions are prepared for you to sign, and every action returns a receipt. The publisher states that this software provides no financial, investment or trading advice and creates no advisory or fiduciary relationship.
One command plus a key — npm install -g @toreva/mcp, then supply credentials
USE CASES
Idle capital, available yield and risk flags in one scan, with the recommendations ordered by expected return rather than by protocol.
Idle USDC deployed into the best verified lending rate across Kamino, Marginfi and Drift, previewed with fees before the transaction is prepared.
The four venues compared on fees, funding rate and liquidity, with a projected entry price — and no fee for asking.
Direction, size and leverage are yours; the routing across Jupiter Perps, Pacifica, Drift and Flash Trade is handled, at 1 bps of notional.
Add or remove margin, cancel an order, settle funding or close — each executing at that position's venue with no Toreva fee.
The venue used, the entry price, the fees paid, the funding rate at entry and why that venue was picked — read back after the fact from the receipt.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
toreva_configureConfigure preferences for toreva execution. Set default constraints, preferred protocols, and risk tolerance.
toreva_earnDeploy idle USDC to the highest-yield DeFi lending strategy on Solana. Risk-ranked across verified venues (Kamino, Marginfi, Drift). Scan, simulate projected returns with fees, and execute via user-signable transaction. Non-custodial. Every action receipted.
toreva_executeExecute a strategy on Solana. Supports earning yield on USDC, staking SOL, rebalancing portfolios, and more. Non-custodial. Every action receipted.
toreva_explainExplain an existing intent, receipt, or strategy in plain language. Provides breakdown of what happened, fees charged, and reasoning behind venue selection.
toreva_perps_add_marginAdd margin to a perpetual futures position. Executes at the position's venue. Free — no Toreva fee. Non-custodial.
toreva_perps_cancel_orderCancel an open perpetual futures order. Executes at the position's venue. Free — no Toreva fee. Non-custodial.
toreva_perps_closeClose a perpetual futures position. Executes at the position's venue. Free — no Toreva fee. Non-custodial. Execution only.
toreva_perps_explainExplain a perpetual futures position or trade. Returns venue used, entry price, fees paid, funding rate at entry, current P&L if open, and why the venue was selected. Free. Use after execution to understand what happened and why.
toreva_perps_funding_settleSettle funding payments on a perpetual futures position. Executes at the position's venue. Free — no Toreva fee. Non-custodial.
toreva_perps_longOpen a long perpetual futures position on Solana. Routes to better execution across Jupiter Perps, Pacifica, Drift, and Flash Trade — compares fees, funding rate, and available liquidity, then routes to whichever venue offers a better fill. 1 bps execution fee on notional. Trades routed to Drift receive a 5% fee discount vs going direct. Your agent decides direction, size, and leverage. Toreva handles venue selection and transaction construction. Non-custodial. Every execution receipted. Execution only — not financial advice.
toreva_perps_query_fundingQuery current funding rates across Jupiter Perps, Pacifica, Drift, and Flash Trade for a token. Read-only. Free.
toreva_perps_query_marketsList available perpetual futures markets. Read-only. Free.
toreva_perps_query_positionQuery open perpetual futures positions for a wallet. Read-only. Free.
toreva_perps_query_venuesList available perps venues with fee structures. Read-only. Free.
toreva_perps_remove_marginRemove margin from a perpetual futures position. Executes at the position's venue. Free — no Toreva fee. Non-custodial.
toreva_perps_shortOpen a short perpetual futures position on Solana. Routes to better execution across Jupiter Perps, Pacifica, Drift, and Flash Trade. 1 bps execution fee on notional. Trades routed to Drift receive a 5% fee discount vs going direct. Your agent decides direction, size, and leverage. Toreva handles venue selection and transaction construction. Non-custodial. Execution only — not financial advice.
toreva_perps_simulateSimulate opening a perpetual futures position without executing. Compares Jupiter Perps, Pacifica, Drift, and Flash Trade on fees, funding rate, and liquidity. Returns projected entry price, fees, funding cost, and venue comparison. Free — no execution, no fee. Use before toreva_perps_long or toreva_perps_short to preview what would happen.
toreva_scanScan a Solana wallet to find idle capital, yield opportunities, and risk flags. Returns actionable recommendations ranked by expected return. Non-custodial.
toreva_simulateSimulate execution of a strategy without committing funds. Returns projected returns, fees, venue selection, and risk assessment. Use before toreva_execute to preview what will happen.
toreva_strategiesBrowse the toreva strategy catalog. Returns available strategies with descriptions, risk labels, and pricing tiers. Use to discover what toreva can do before executing.
BEFORE YOU INSTALL
20 tools when we connected. The seven tools in the documentation's MCP Tools table, such as toreva_establish_agent_wallet, do not exist in @toreva/mcp 0.2.0, which exposes perps-style names such as toreva_perps_long and toreva_simulate instead.
CONTEXT COST
Rated by the size of the 20 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"toreva": {
"command": "npx",
"args": [
"-y",
"@toreva/mcp"
]
}
}
}The configuration on this page does not set RELAY_AUTH_TOKEN; the project's instructions put it in a .env file. Check which folder the server reads that file from before you rely on it.
npm install -g @toreva/mcp