# etbars/vibetrader-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/etbars/vibetrader-mcp  
**GitHub Stars:** 4  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/etbars-vibetrader-mcp

## Description
AI-powered trading bot platform. Create automated trading strategies with natural language via Alpaca brokerage.

## Tools
Capabilities this server exposes over MCP:

- **authenticate** — Authenticate with your API key from vibetrader.markets/settings
- **list_bots** — List all your trading bots.

Args:
    mode: Filter by trading mode - "paper", "live", or None for all bots
    limit: Most bots to return (default 100)
- **get_bot** — Get details of a specific bot
- **create_bot** — Create a new trading bot using natural language
- **start_bot** — Start a paused bot
- **pause_bot** — Pause a running bot
- **delete_bot** — Delete a bot
- **get_portfolio** — Get portfolio positions and balance.

Args:
    mode: Account mode - "paper" (default) or "live" for real money
- **get_quote** — Get current quote for a stock
- **list_indicators** — List every technical indicator VibeTrader bots can use, with each one's
parameters (defaults and bounds) and outputs. Indicator math matches
TradingView. Optionally filter by family: moving_average, momentum, trend,
volatility, volume or price. Needs no API key.
- **pause_all_bots** — Pause all running bots at once.

Args:
    mode: Filter by trading mode - "paper", "live", or None for all bots
- **start_all_bots** — Start all paused bots at once.

Args:
    mode: Filter by trading mode - "paper", "live", or None for all bots
- **delete_all_bots** — Delete ALL bots. Requires confirm='DELETE ALL' to proceed.

Args:
    confirm: Must be 'DELETE ALL' to confirm deletion
    mode: Filter by trading mode - "paper", "live", or None for all bots
- **get_bot_stats** — Get aggregate statistics across your bots.

Args:
    mode: Filter by trading mode - "paper", "live", or None for all bots
- **get_market_status** — Check whether the US stock market is open now, with its next open and
close. Reads the exchange clock (holidays and early closes included).
- **get_account_summary** — Get account balance, buying power, and key metrics.

Args:
    mode: Account mode - "paper" (default) or "live" for real money
- **search_bots** — Search for bots by name
- **get_trade_history** — Get recent trade history across all bots.

Args:
    mode: Trading mode - "paper" (default) or "live"
    limit: Number of trades to return (default 20, max 100)
- **get_bot_trades** — Get trade history for a specific bot.

Args:
    bot_id: The bot ID to get trades for
    limit: Number of trades to return (default 20, max 200)
- **get_daily_trade_stats** — Get daily trading statistics for a bot.

Args:
    bot_id: The bot ID to get stats for
    days: Number of days to look back (default 30)
- **get_bot_strategy** — Get the full strategy configuration for a bot.

Returns entry rules, exit rules, indicators, risk settings, and symbols.

Args:
    bot_id: The bot ID to get strategy for
- **explain_bot_strategy** — Get a plain English explanation of a bot's strategy.

Explains entry rules, exit rules, and risk settings in simple terms.

Args:
    bot_id: The bot ID to explain
- **refine_bot** — Refine a bot's strategy using natural language.

Describe changes you want to make to the strategy. The bot will be paused
during refinement and a new strategy version will be created.

Args:
    bot_id: The bot ID to refine
    prompt: Natural language description of changes (e.g., "add a trailing stop of 5%")
- **update_bot** — Update a bot's name or status.

Args:
    bot_id: The bot ID to update
    name: New name for the bot (optional)
    status: New status - "running" or "paused" (optional)
- **get_positions** — Get current open positions with unrealized P&L.

Args:
    mode: Account mode - "paper" (default) or "live" for real money
- **close_position** — Close a position by symbol in the user's VibeTrader Alpaca account.

This only reaches the Alpaca account (paper or live), the same one
get_positions shows. It cannot sell holdings at other brokerages the user
linked (Robinhood, Webull, Fidelity, Coinbase and so on); if they ask for
that, tell them to close it in that brokerage's app. Never use this to
"sell my Robinhood shares": it would sell the Alpaca position instead.

Args:
    symbol: Stock/crypto symbol to close (e.g., "AAPL", "BTC/USD")
    mode: Account mode - "paper" (default) or "live"
    qty: Specific quantity to close (optional, closes all if not specified)
    percentage: Percentage of position to close, 0-100 (optional)
- **place_order** — Place a buy or sell order in the user's VibeTrader Alpaca account.

This only reaches the Alpaca account (paper or live). It cannot trade at
other brokerages the user linked (Robinhood, Webull, Fidelity, Coinbase
and so on); if they ask for that, tell them it isn't supported here.

Retrying is safe: the same order sent again within two minutes of the
last try, or with the same idempotency_key, is never placed twice.

Args:
    symbol: Stock/crypto symbol (e.g., "AAPL", "BTC/USD")
    side: "buy" or "sell"
    qty: Number of shares/units to trade (optional if using notional)
    notional: Dollar amount to trade (optional, for market orders only)
    order_type: "market" (default) or "limit"
    limit_price: Required for limit orders
    mode: Account mode - "paper" (default) or "live"
    idempotency_key: Optional. Any string naming this one order. Pass the
        same key when retrying it; pass a new key to place a second
        identical order on purpose.
- **run_backtest** — Run a historical backtest for a bot's current strategy.

Simulates how the strategy would have performed on historical data.
Returns ROI, max drawdown, win rate, trade count, and equity curve.

Args:
    bot_id: The bot ID to backtest
    start_date: Start date (YYYY-MM-DD). Default: 30 days ago
    end_date: End date (YYYY-MM-DD). Default: today
    initial_capital: Starting capital for simulation (default: $10,000)

Note: Max 30-day lookback for standard bots. Covered call bots support up to 3 years.
- **list_backtests** — List all backtests for a bot.

Args:
    bot_id: The bot ID to list backtests for

Returns summary of each backtest including date range, return, and win rate.
- **get_backtest** — Get detailed results for a specific backtest.

Args:
    bot_id: The bot ID
    backtest_id: The backtest ID to retrieve

Returns full backtest details including trades and equity curve.
- **quick_covered_call_backtest** — Run a quick covered call income strategy backtest.

Simulates the covered call strategy:
1. Buy 100 shares of the underlying
2. Sell monthly covered calls (~30 DTE, 5% OTM)
3. Collect premium and track assignments

Args:
    symbol: Stock symbol (default: NVDA)
    months: Number of months to backtest (3-36, default: 12)

Returns estimated monthly income, annual yield, and assignment frequency.
- **preview_bot** — Quick 30-day backtest of a bot, not saved: estimated profit and return,
trade count and win rate. Use it right after create_bot to see whether the
strategy trades at all before running it.

Args:
    bot_id: The bot ID to preview
- **set_signal_mode** — Switch a bot between placing its own trades and sending signals.

On an "alert" side the bot still makes every decision, but instead of
trading it sends a signal (push, email, webhook, and list_open_signals):
the user places the trade and reports it with report_signal. An "auto" side
places the order itself. Each side is set on its own, e.g. alert entries
with auto exits; "auto" on both turns signals off.

To switch to signals, a running bot must be paused first and hold no
positions, and live bots can't switch: create a new bot for signals.
Signals need a paid plan once the user's 30-day free window ends.

Args:
    bot_id: The bot to switch
    entry_mode: "alert" (default) or "auto" for entries
    exit_mode: "alert" (default) or "auto" for exits
    follow_account: Where the user places these trades. "manual" means any
        brokerage VibeTrader can't trade, such as Robinhood: the user
        reports each fill with report_signal. Or a connected account:
        "alpaca_paper", "alpaca_live", or another connected brokerage
        account's key. Omit it to keep the bot's current account
        ("manual" for a bot that isn't a signal bot yet).
    signal_capital: Dollars the user trades this bot with. Required with
        "manual" when the bot sizes by percent of portfolio or ATR risk,
        so each signal can say how much to buy. Omit it to keep the
        bot's current amount.
- **list_open_signals** — List signals waiting on the user: entries and exits a signal bot decided
on that the user hasn't placed, skipped or reported yet.

For each one, place the order at the user's brokerage with that brokerage's
own tools (for Robinhood, its MCP): buy about suggested_qty, or sell qty,
near signal_price. Then report what really filled:
  side "buy" or "sell" -> report_signal
  side "option" -> report_option_signal
  side "short" -> report_short_signal
Signals the bot is placing itself (auto mode) are counted in
being_placed_by_bot and left out: there is nothing to do for them.

Args:
    bot_id: One bot's signals. Omit it for every signal bot.
- **report_signal** — Tell a signal bot what the user did with one of its stock or crypto
signals (side "buy" or "sell"), so the bot tracks the user's real shares
and results. This records what happened; it never places an order.

Actions:
  bought: the user bought on a buy signal. qty and price are the real fill.
  sold: the user sold on a sell signal. qty and price are the real fill.
  skip: the user passed on the signal.
  keep: on a sell signal, the user keeps holding the shares.
  undo: a buy VibeTrader detected at a connected brokerage wasn't for this
    signal. Releases those shares and reopens the signal; never sells.

Args:
    bot_id: The signal bot
    decision_id: The signal's decision_id, from list_open_signals
    action: bought, sold, skip, keep or undo
    qty: Shares or units filled (bought and sold only)
    price: Average fill price per share or unit (bought and sold only)
- **report_option_signal** — Tell an options signal bot (covered calls, cash-secured puts, the wheel)
what the user did with one of its option signals (side "option"). The
signal's option.action says which actions apply:
  sell_to_open: sold (qty = contracts, price = premium per share) or skip
  settle: expired, assigned or called_away, as the contract ended
  buy_shares: bought (qty and price of the shares) or skip
This records what happened; it never places an order.

Args:
    bot_id: The signal bot
    decision_id: The signal's decision_id, from list_open_signals
    action: One of the actions above
    qty: Contracts (sold) or shares (bought), when the action has a fill
    price: Premium per share (sold) or share price (bought)
- **report_short_signal** — Tell a signal bot what the user did with one of its short signals
(side "short"). The signal's short.action says which actions apply:
  open: shorted (qty and the price sold short at) or skip
  cover: covered (the price bought back at; qty if only part) or keep
This records what happened; it never places an order.

Args:
    bot_id: The signal bot
    decision_id: The signal's decision_id, from list_open_signals
    action: shorted, skip, covered or keep
    qty: Shares shorted or covered
    price: Price sold short at, or bought back at
- **get_signal_state** — A signal bot's setup and record: its entry and exit modes (and why a
side may be alerting instead of trading), the account it follows, the
user's book (what the user really holds for this bot), the bot's own
virtual book, results, and its open and ten most recent signals.

Args:
    bot_id: The signal bot

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "vibetrader-mcp": {
    "url": "https://mcp.vibetrader.markets/mcp"
  }
}
```

## Documentation

## What etbars/vibetrader-mcp does

etbars/vibetrader-mcp exposes VibeTrader's trading platform through the Model Context Protocol. Assistants can create bots from natural-language descriptions, inspect or explain their strategies, refine existing rules, and control whether bots are running or paused. Bot management includes searching, deleting individual bots, and performing bulk start, pause, or deletion operations.

The server also provides portfolio and account information, open positions with unrealized profit and loss, stock quotes, US market hours, trade history, aggregate bot statistics, and daily statistics for a selected bot. Historical strategy analysis is available through backtests, including summary listings and detailed results.

Trading actions are directed at the user's VibeTrader Alpaca account. Both paper and live account modes are supported, with paper mode used by default for account and trading operations.

## How it works

Hosted connections use the Streamable HTTP endpoint at `https://mcp.vibetrader.markets/mcp`. The hosted service supports sign-in through VibeTrader, while clients and scripts that send credentials can use a bearer token or a `vt_` API key. Local operation supports HTTP and stdio transports. In stdio mode, the `authenticate` tool accepts an API key from VibeTrader settings; hosted HTTP connections authenticate through the connection rather than that tool.

Permissions are attached to each connection or key. Read access covers bots, portfolios, trades, signals, and backtests. Separate permissions control bot and signal management, as well as live trading and live bot operations.

Signal mode separates strategy decisions from execution. A signal bot can report what to buy or sell, after which the user or another brokerage integration places the order and reports the fill back to VibeTrader. This is the route for workflows involving brokerages that are not the VibeTrader Alpaca account.

## Setup and configuration

For hosted use, configure an MCP client with:

```text
https://mcp.vibetrader.markets/mcp
```

Clients that support custom connectors can sign in to VibeTrader and select the permitted actions. Cursor, Windsurf, OpenClaw, and scripts can instead send an `Authorization: Bearer vt_YOUR_KEY` header using a key created at VibeTrader settings. Claude Code can register the hosted URL with its HTTP MCP transport, and clients limited to local processes can use `mcp-remote`.

To run locally, install the Python dependencies from `requirements.txt`, then start either `python server.py` for HTTP mode or `python server.py stdio` for stdio mode. The local HTTP service exposes `/mcp` and `/sse`; clients can connect to the corresponding localhost endpoint.

## Tools and capabilities

The tool set covers:

- Creating bots from natural-language strategies and refining those strategies into new versions.
- Reading strategy rules, risk settings, indicators, symbols, plain-language explanations, and bot statistics.
- Starting, pausing, updating, searching, and deleting individual or groups of bots.
- Viewing account summaries, balances, buying power, positions, portfolio data, quotes, and market status.
- Placing market or limit buy and sell orders, or closing all or part of an Alpaca position.
- Reviewing trades by bot or across bots, plus daily trading statistics.
- Running, listing, and inspecting historical backtests with returns, drawdown, win rate, trades, and equity curves.
- Listing technical indicators and their parameters; this lookup does not require an API key.
- Switching bots to signal mode, reviewing open signals, and recording decisions and fills.

Order placement accepts an idempotency key, and retrying the same request within the supported window is designed not to create a duplicate order.

## Limitations and notes

`place_order` and `close_position` only operate on the VibeTrader Alpaca account. They cannot sell or trade holdings held at Robinhood, Webull, Fidelity, Coinbase, or another external brokerage. Use signal mode when the actual execution venue is outside Alpaca.

Deleting all bots requires the exact confirmation value `DELETE ALL`. Backtests for standard bots support a maximum 30-day lookback, while covered-call bots can use up to three years. Live trading and live bot operations require the relevant permission; paper trading is the default mode.

The `/mcp` hosted endpoint is the preferred transport. The older SSE route remains available, but SSE is deprecated upstream. When self-hosting order execution, the deployment guidance calls for a single instance because retry memory is held in the process.

_Full upstream README: https://allmcps.com/mcp/etbars-vibetrader-mcp/readme_

