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:
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.