alpaca_bars
ActiveTool of Alpaca
Historical US stock OHLCV bars with per-bar VWAP and trade count. Timeframes 1Min/5Min/15Min/1Hour/1Day; intraday bars include pre-market and after-hours sessions on the IEX feed. Each bar: {t, o, h, l, c, v, vwap, trades}. Use start/end ISO timestamps or a lookback shorthand like "2h", "5d". Multiple symbols comma-separated (max 20). BYOK Alpaca (free account). Example: alpaca_bars({ symbols: "AAPL", timeframe: "5Min", lookback: "1d", _apiKey: "key_id:secret_key" })
Parameters schema
{
"type": "object",
"required": [
"symbols",
"_apiKey"
],
"properties": {
"end": {
"type": "string",
"description": "End time, ISO/RFC-3339 or date (default: now)"
},
"limit": {
"type": "number",
"description": "Max bars per symbol to return, 1-1000 (default 100)"
},
"start": {
"type": "string",
"description": "Start time, ISO/RFC-3339 (e.g. \"2026-07-18T09:30:00-04:00\") or date \"2026-07-18\""
},
"_apiKey": {
"type": "string",
"description": "REQUIRED: your Alpaca credentials as \"key_id:secret_key\" — both halves joined by a colon. Free at alpaca.markets (a paper-trading account is enough for market data)."
},
"symbols": {
"type": "string",
"description": "Comma-separated ticker symbols, e.g. \"AAPL,MSFT\" (max 20)"
},
"lookback": {
"type": "string",
"description": "Shorthand window ending now, instead of start/end: e.g. \"30m\", \"2h\", \"1d\", \"5d\", \"2w\""
},
"timeframe": {
"type": "string",
"description": "Bar size: \"1Min\", \"5Min\", \"15Min\", \"1Hour\", or \"1Day\" (default \"5Min\")"
}
}
}No endpoints wrapped at confidence ≥ 0.50.
Parent server
Alpaca
https://github.com/pipeworx-io/mcp-alpaca
1/7 registries