Alpaca MCP Server
Official MCP server from Alpaca.
A comprehensive Model Context Protocol (MCP) server for Alpaca's Trading API. Enable natural language trading operations through AI assistants like Claude, Cursor, and VS Code. Supports stocks, options, crypto, portfolio management, and real-time market data.
Features
- Market Data - Real-time quotes, trades, and price bars for stocks, crypto, and options with flexible historical timeframes
- Account & Position Management - View balances, buying power, open/closed positions, and liquidate holdings
- Order Management - Place stocks, ETFs, crypto, and options orders with support for market, limit, stop, stop-limit, and trailing-stop orders
- Options Trading - Search option contracts, place single-leg or multi-leg strategies (spreads, straddles), get Greeks and implied volatility
- Crypto Trading - Market, limit, and stop-limit crypto orders with GTC/IOC support
- Market Status & Corporate Actions - Market calendar, trading sessions, earnings, splits, dividends
- Watchlist & Asset Search - Create and manage watchlists, query details for stocks, ETFs, crypto, and options
Installation
# Quick install via uvx
uvx alpaca-mcp-server init
Then add to your MCP client config:
{
"mcpServers": {
"alpaca": {
"command": "uvx",
"args": ["alpaca-mcp-server", "serve"],
"env": {
"ALPACA_API_KEY": "your_alpaca_api_key",
"ALPACA_SECRET_KEY": "your_alpaca_secret_key"
}
}
}
}
Prerequisites
- Python 3.10+
- uv package manager
- Alpaca Trading API keys (free paper trading account available)
- MCP client (Claude Desktop, Cursor, VS Code, etc.)
Links
1---2name: alpaca-mcp3description: Official Alpaca MCP server for trading stocks, ETFs, crypto, and options via natural language. Supports real-time market data, portfolio management, order execution, options Greeks, watchlists, and corporate actions through AI assistants like Claude, Cursor, and VS Code.4---56# Alpaca MCP Server78Official MCP server from Alpaca.910A comprehensive Model Context Protocol (MCP) server for Alpaca's Trading API. Enable natural language trading operations through AI assistants like Claude, Cursor, and VS Code. Supports stocks, options, crypto, portfolio management, and real-time market data.1112## Features1314- **Market Data** - Real-time quotes, trades, and price bars for stocks, crypto, and options with flexible historical timeframes15- **Account & Position Management** - View balances, buying power, open/closed positions, and liquidate holdings16- **Order Management** - Place stocks, ETFs, crypto, and options orders with support for market, limit, stop, stop-limit, and trailing-stop orders17- **Options Trading** - Search option contracts, place single-leg or multi-leg strategies (spreads, straddles), get Greeks and implied volatility18- **Crypto Trading** - Market, limit, and stop-limit crypto orders with GTC/IOC support19- **Market Status & Corporate Actions** - Market calendar, trading sessions, earnings, splits, dividends20- **Watchlist & Asset Search** - Create and manage watchlists, query details for stocks, ETFs, crypto, and options2122## Installation2324```bash25# Quick install via uvx26uvx alpaca-mcp-server init27```2829Then add to your MCP client config:3031```json32{33 "mcpServers": {34 "alpaca": {35 "command": "uvx",36 "args": ["alpaca-mcp-server", "serve"],37 "env": {38 "ALPACA_API_KEY": "your_alpaca_api_key",39 "ALPACA_SECRET_KEY": "your_alpaca_secret_key"40 }41 }42 }43}44```4546## Prerequisites4748- Python 3.10+49- uv package manager50- Alpaca Trading API keys (free paper trading account available)51- MCP client (Claude Desktop, Cursor, VS Code, etc.)5253## Links5455- **GitHub**: https://github.com/alpacahq/alpaca-mcp-server56- **Documentation**: https://docs.alpaca.markets/docs/getting-started57- **API Keys**: https://app.alpaca.markets/paper/dashboard/overview