Skip to main content
Glama

AlgoVesta MCP Trading

Server Details

Trade 16 crypto exchanges + MetaTrader 5 from your AI assistant via one MCP connection.

Ownership verified
Status
Healthy
Uptime
100.0% over the last 24 hours
OAuth
Works in Glama
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
AlgoVesta/mcp
GitHub Stars
4
Server Listing
AlgoVesta MCP Server
ChatGPT
–
Claude
–

TDQS

A4.1/5.0

Scored across 20 tools

Disambiguation4/5

The order/position lifecycle tools (place_order, simulate_order, cancel_order, modify_position, close_position) have crisp, explicitly contrasted boundaries, and the read tools (get_portfolio_context, get_trade_history, list_open_orders, list_strategies, get_market_price, compare_venues) each target a distinct resource. The main soft spot is the four 'what-if' analyzers (backtest_my_signals, replay_channel, import_tradingview_backtest, simulate_policy), which an agent must read carefully to keep apart, though their descriptions do spell out the differences.

Naming Consistency5/5

Every tool is snake_case with a leading verb (get_, list_, create_, update_, place_, cancel_, close_, simulate_, compare_, verify_), and the nouns pair naturally with those verbs. The only minor outlier is backtest_my_signals, which still follows the verb-first pattern.

Tool Count4/5

20 tools is on the heavy side, but the server genuinely spans execution, portfolio, strategy management, backtesting, policy, and receipts, and each tool maps to a distinct operation. Nothing appears redundant, though a few analyzers could plausibly be merged.

Completeness3/5

Core workflows are covered, but there are real dead ends: compile_policy only returns a preview and activation is not exposed here, update_strategy cannot delete a strategy, and there is no tool to query a single order's status after placement (only list_open_orders and trade history). These are documented as deliberate, so an agent can work around them via the panel, but the surface is not fully self-contained.

Available Tools

20 tools
backtest_my_signalsA
Read-onlyIdempotent
Inspect

Answers "what would have happened to MY OWN past signals with different settings?" - for example "5x instead of 10x" or "a 2% stop instead of 1%".

It replays the signals YOU actually received (your Telegram channels and your
TradingView webhooks) against real historical 1-minute price data, twice: once with
each signal's original stop-loss, take-profit and leverage, and once with the
settings you asked for. The difference is reported under `comparison`.

This runs in the background because a full replay can take several minutes. The call
returns a `job_ref` immediately; the result is available from `get_job_status(job_ref)`.

What the result always reports:
- `coverage`: how many of their signals could actually be simulated. If some had no
  historical price data or no stop-loss, the numbers describe only the subset.
- `assumptions`: fees, slippage, partial-take-profit behaviour and what is NOT
  modelled (funding fees). Never present the PnL without these.
- Past performance does not guarantee future results. This is not investment advice.

Inputs: days, sl_pct, source, tp_pct, +6 more.

cancel_orderA
DestructiveIdempotent
Inspect

Cancels a pending limit order. If order_ref does not belong to the user, NOT_FOUND is returned (no information about another user's order is disclosed). idempotency_key is REQUIRED: calling again with the same key returns the stored response. This is a RISK-REDUCING operation: the policy wall does not block it (except the kill switch).

list_open_orders shows the order_ref of each pending order.

Inputs: venue (required), order_ref (required), idempotency_key (required).

close_positionA
DestructiveIdempotent
Inspect

Closes an open position fully or partially (fraction (0,1]). Works for crypto and FOREX/MT5. This is a RISK-REDUCING operation: the policy wall NEVER blocks this tool (except the kill switch). idempotency_key is REQUIRED: even 10 calls with the same key perform ONE close. If no position exists, POSITION_NOT_FOUND is returned together with the open positions on that venue.

MT5 positions can only be closed IN FULL (no partial close) -> use fraction=1. If several
MT5 positions are open on the same symbol, `ticket` becomes REQUIRED; while it is
ambiguous, none are closed.

get_portfolio_context shows the open positions (and MT5 tickets).

Inputs: side (required), venue (required), symbol (required), idempotency_key (required), +3 more.

compare_venuesA
Read-onlyIdempotent
Inspect

Compares the user's CONNECTED crypto exchanges for one symbol on measured execution cost. It reports the bid/ask spread, the taker fee and, when size_usd is given, the slippage that size would actually pay against the live order book.

THIS TOOL DOES NOT CHOOSE AN EXCHANGE AND NEITHER SHOULD YOU. It is advisory only.
The user still names the venue in place_order. AlgoVesta could not route around it
even in principle: in crypto there is no central clearing, so the user's balance
lives on the exchange they funded and cannot be moved to another one to catch a
better price.

HOW TO READ IT:
- `estimated_cost_bps` sums ONLY the components listed in that venue's
  `cost_components`. A venue with fewer components is not cheaper — it is less
  measured. Say which components were included.
- `cheapest_measured` means lowest measured cost, not lowest true cost.
- Fees are the exchange's PUBLIC tier. The user's own VIP tier may be lower; repeat
  `fee_tier_note` rather than presenting the fee as personal.
- `skipped` lists venues removed WITH A REASON (symbol not listed, minimum order
  value above the request, or recorded equity below it). A venue is never removed
  just because data was missing — missing data shows as null, not as exclusion.
- Still not measured: per-venue latency, transfer fees, funding differences.

Inputs: side, market, symbol, size_usd.

compile_policyA
Read-onlyIdempotent
Inspect

Compiles natural-language risk rules into a JSON policy and returns a PREVIEW. Activation requires separate approval: from the panel or via POST /api/mcp/policies/{policy_id}/activate.

Inputs: natural_text (required).

create_strategyA
Idempotent
Inspect

Creates a new TradingView strategy. It starts with REAL-MONEY EXECUTION OFF (auto_trade=false) and that cannot be changed from here - the user turns it on themselves in the AlgoVesta panel. Creating a strategy therefore never risks money.

The strategy's webhook URL is not returned (it is a password); the user copies it
from the panel into their TradingView alert.

Fails with a plan-limit error if the account has reached its strategy quota;
list_strategies reports `plan_limit` and `can_create_more`.

idempotency_key is REQUIRED: calling again with the same key returns the stored
response instead of creating a SECOND strategy.

Inputs: name, idempotency_key.

get_job_statusA
Read-onlyIdempotent
Inspect

Returns the state and, once finished, the result of a background job started by backtest_my_signals, simulate_policy or import_tradingview_backtest.

With no argument it lists the user's recent jobs.

`status` is one of: PENDING (queued), RUNNING (in progress - `progress` is a
percentage), DONE (`result` is present), FAILED (a retry is scheduled), DEAD (it will
not be retried - `error` says why) or CANCELLED.

Jobs run one at a time, so `queue_position` tells the user how many are ahead of
theirs.

Storage: only the 20 most recent finished jobs keep their full result. Older ones
are reduced to their summary and come back with `result_pruned: true` — the detailed
rows are gone and the job has to be run again to regenerate them. Everything is
deleted after 30 days. Backtest and policy runs are also written to your account's
backtest history, and the result carries the `run_id` they were stored under.

Inputs: job_ref.

get_market_priceA
Read-onlyIdempotent
Inspect

Returns the LIVE price of a crypto or MT5 symbol: last (+ bid/ask if available) + ts + source.

This is the server's current price for the symbol, used for SL/TP/limit levels. For
sl_pct/tp_pct orders the server reads the live entry itself. Source order:
(1) the shared price cache (~1s fresh), (2) if not cached, a single live REST call to the
exchange. If the price is older than 10s OR cannot be fetched, that is stated EXPLICITLY —
a stale price is never presented as live.

If venue is given, that exchange is used; otherwise the user's CONNECTED exchanges are
searched. venue="paper" returns the exact price the paper engine fills at. If the symbol is
found on no exchange, price_unavailable is returned (no DEX guess: a ticker symbol does not
identify a DEX token reliably).
Returns: {ok, venue, symbol, last, bid, ask, ts, source, age_sec} or {ok:false, error,...}.

Inputs: venue, symbol.

get_portfolio_contextA
Read-onlyIdempotent
Inspect

Normalized portfolio view of all connected exchange accounts + MT5 + paper.

Takes no parameters; returns ONLY the accounts of the user whose key the
connection was made with.

IMPORTANT (crypto accounts): "balance"/"equity" is the futures wallet ONLY.
The spot wallet balance is in the separate "spot_balance" field (there MAY be
money on spot even when futures shows 0 — check spot_balance before telling a
user they have no balance).

IMPORTANT (forex/MT5 accounts): check the "positions_source" field on each
account. "live_ea" means the position list is real data verified by the MetaTrader 5
Expert Advisor (EA) AlgoVesta runs on its managed terminal.
"unavailable" means the EA/terminal could not be reached — in that case
positions=[] does NOT mean "no open positions", only that it could not be
verified: the open-position state of that account is unknown at that moment, not
empty.

Inputs: no named parameters.

get_trade_historyA
Read-onlyIdempotent
Inspect

Returns the user's CLOSED trades and a performance summary, across crypto exchanges, MetaTrader 5 and the paper account in one list.

Each trade carries symbol, side, size, entry/exit price, SL/TP, PnL, venue, source
(telegram / webhook / mcp / manual) and timestamps. The summary adds win rate,
total PnL, average R-multiple and a per-venue breakdown.

HOW TO READ THE SUMMARY:
- `avg_rr` is computed only from trades where entry, SL and exit are ALL known;
  `rr_sample` tells you how many trades that was. A 3-trade average is not evidence.
- `total_pnl` is null when several account currencies are mixed (e.g. a EUR MT5
  account next to USD crypto). `pnl_by_currency` keeps them apart; amounts in different currencies are not summed.
- `fee` is null because commission is not recorded; PnL is therefore GROSS on crypto.
- `incomplete_sources` means part of the history could not be read - the summary is
  then incomplete.

This is a read operation with no side effects. It is history only; it does not tell you what will happen next, and past results do not predict
future ones.

Inputs: days, limit, venue, market, +1 more.

import_tradingview_backtestA
Read-onlyIdempotent
Inspect

Answers "TradingView says my strategy made X - what would it have made through AlgoVesta?".

You export the strategy's trade list from TradingView and this recomputes it with
real trading costs: taker fees on entry and exit, and the slippage we actually
measure on fills. TradingView's default backtest applies neither unless the strategy
author configured them, which is why exported results are usually optimistic.

Runs in the background: the call returns a `job_ref`; read the result with
`get_job_status(job_ref)`.

Deliberate limits, always repeated in the result:
- Pine Script is NOT executed or interpreted. Only the trade list you exported is
  recomputed. Entry and exit prices stay exactly as TradingView reported them.
- Funding fees are not modelled.
- Rows without a quantity column cannot have fees applied, so their figures stay
  optimistic; the count of such rows is reported.

Inputs: csv_text (required), leverage, slippage_bps, taker_fee_bps.

list_open_ordersA
Read-onlyIdempotent
Inspect

Lists the user's pending limit orders (order_ref, venue, symbol, side, entry_price, size, created_at). Only PAPER limit orders can rest here: live crypto venues accept market orders only (a live crypto limit order is refused with live_limit_not_supported, never silently converted), so an empty list on a live account means nothing is pending — not that something disappeared.

This is a read operation with no side effects.

Inputs: venue.

list_strategiesA
Read-onlyIdempotent
Inspect

Lists the user's TradingView strategies with their settings, plan limit and whether real-money execution is currently on.

`auto_trade` is the real-money switch: auto_trade=false means signals
are only recorded, NOT traded with real money. auto_trade=true means every accepted
signal on that strategy becomes a real order.

The webhook URL is NEVER returned - that address is a password: anyone holding it
can send signals into the account. The user copies it from the AlgoVesta panel.

This is a read operation with no side effects.

Inputs: no named parameters.

modify_positionA
DestructiveIdempotent
Inspect

Updates the SL/TP of an open position on a crypto exchange or FOREX/MT5. AT LEAST ONE of new_sl/new_tp must be given. SL CANNOT BE REMOVED (the mandatory-SL rule stands). Logic: long requires new_sl < mark < new_tp, short the reverse. idempotency_key is REQUIRED.

If you send only ONE side, the other keeps the position's CURRENT value — the side
you omit is NOT deleted. If several MT5 positions are open on the same symbol,
`ticket` becomes REQUIRED; while it is ambiguous, NONE are modified.

get_portfolio_context shows the current SL/TP of each position.

Inputs: side (required), venue (required), symbol (required), idempotency_key (required), +4 more.

place_orderA
DestructiveIdempotent
Inspect

Places an order. idempotency_key is REQUIRED: if the same (user, key) arrives a second time the stored response is returned and a second order is NEVER opened. scope=paper runs on the paper engine, scope=live runs through live execution. The policy wall runs server-side; a violation means a hard reject + audit entry.

Same arguments as simulate_order; a call with the arguments of a simulation places
that order. Missing required fields are returned together in ONE error.
AMOUNT FIELDS: margin_usd is the collateral, size_usd the position value.
SIZE FIELD DEPENDS ON MARKET: forex/MT5 -> `lots` (used exactly as given, never
rounded to a fixed value); crypto -> EXACTLY ONE of size_usd/margin_usd/risk_pct.
`leverage` is not used for forex (the product is unleveraged).
ACCOUNTS: when the user has several accounts in the same market (two MT5 accounts,
'Binance' + 'Binance2'), `account` selects one; without it the order is NOT placed
and the candidate accounts are returned — it never falls back to a default account.
`warnings` in the response mean the order differs from the request.

Inputs: side (required), venue (required), symbol (required), order_type (required), +14 more.

replay_channelA
Read-onlyIdempotent
Inspect

Answers "what if you had followed this Telegram channel for the last N days under these rules?". Simulates the channel's past signals paper-style; every signal passes the policy wall (rejected ones are not opened). Progress is published as replay_progress events. Results are cached for 24 hours (the same channel + parameters return from cache). Rate limit: 5 replays/hour.

Output: {trades:[...], summary:{total_pnl, win_rate, max_drawdown, avg_rr,
policy_rejections}}.

Inputs: channel_ref (required), days, policy_override.

simulate_orderA
Read-onlyIdempotent
Inspect

SIMULATES an order: expected fill, margin impact, policy check result. Sends NO real order.

It has no side effects: no order is sent and no state changes (read-only). The
response carries everything a place_order call with the same arguments would use:
resolved account, entry, SL/TP (including values derived from sl_pct/tp_pct and from
saved settings via `prefs_used`), size, leverage and the policy verdict.

Missing required fields are returned together in ONE error.
AMOUNT FIELDS: margin_usd is the collateral (margin_usd=20 at 5x -> a $100 position);
size_usd is the position value (size_usd=20 -> a $20 position).
SIZE FIELD DEPENDS ON MARKET: forex/MT5 -> `lots` (used exactly as given); crypto ->
EXACTLY ONE of size_usd/margin_usd/risk_pct. `leverage` is not used for forex.

Inputs: side (required), venue (required), symbol (required), order_type (required), +14 more.

simulate_policyA
Read-onlyIdempotent
Inspect

Answers "if I had had this risk rule in place, which of my trades would it have blocked, and what would that have done to my PnL?".

It takes a risk policy - written in plain English, passed in already compiled, or
your currently active one - and applies it to the trades YOU actually closed. It
reports which ones would have been rejected, by which rule, and the PnL difference.

Runs in the background: the call returns a `job_ref`, and `get_job_status(job_ref)`
returns the result.

Two honesty limits are always reported in `assumptions`:
- Rules that depend on account state at the moment of the order (open position count,
  daily loss so far, balance) are evaluated with zeros, because that state cannot be
  reconstructed from closed trades. Those rules are UNDER-counted, never over-counted.
- PnL comes from your recorded realised results; it is not re-simulated. If your
  trades settled in more than one currency, totals are reported per currency and are
  NOT added together.

Inputs: days, rules, policy_text.

update_strategyA
DestructiveIdempotent
Inspect

Changes the settings of an existing strategy (leverage, risk, SL/TP percentages, trailing, allowed symbols, target account, and whether it accepts signals at all).

WHAT THIS TOOL CANNOT DO, on purpose:
- `auto_trade` (the real-money switch) is REFUSED. A single order is one action; a
  strategy runs forever, so turning real money on stays a human decision made in the
  panel.
- `ip_allowlist` is REFUSED: it is the second factor that verifies where signals come
  from, so it must not be weakened from here.
- Deleting a strategy is not possible here; that is done in the panel.
Fields that were refused come back in `refused_fields`; the other fields are still
applied.

Setting `reverse_enabled` to true returns a `warning`: from then on a BUY signal
opens a SHORT and a SELL signal opens a LONG on that strategy.

Only the fields present in `changes` are modified. idempotency_key is REQUIRED.

Inputs: changes, strategy_id, idempotency_key.

verify_receiptA
Read-onlyIdempotent
Inspect

Verifies an order receipt: ed25519 signature + per-user hash chain. Returns signature_valid + chain_valid (verified = both True). If an earlier receipt in the chain was altered, chain_valid=False (proof of tamper-evidence). Public key: /mcp/receipts/pubkey. Receipts issued before the ed25519 rollout were HMAC-signed and return legacy=True.

Inputs: receipt_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI tools to execute trades and fetch market data across six crypto exchanges via natural language or API, with dual Telegram and MCP interfaces.
      2
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants in MCP clients to query real-time market data, inspect portfolio and Web3 wallet balances across brokers, place protected equity/ETF, crypto, forex, options, DeFi swap, and prediction market orders, and run backtests.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to access aggregated cryptocurrency market data, technical analysis, derivatives intelligence, TradingView screeners, funding-rate comparisons, local ML forecasts, and optional Bitget account operations through a single MCP connection.
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Universal MCP server that enables AI assistants to control MetaTrader 5 directly, executing trades, managing data, and automating MT5 operations through natural language.
      4
      -
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.