alpaca-mcp-server MCP server
Alpaca’s official MCP Server lets you trade stocks, ETFs, crypto, and options, run data analysis, and build strategies in plain English directly from your favorite LLM tools and IDEs
What alpaca-mcp-server does
Summarised from the project README; check the repository for the latest details.
Features
- Market Data — Real-time quotes, trades, and price bars for stocks, crypto, and options. Historical data with flexible timeframes. Option Greeks and implied volatility.
- Account Management — View balances, buying power, account status, and portfolio history.
- Order Management — Place market, limit, stop, stop-limit, and trailing-stop orders for stocks, crypto, and options. Cancel orders individually or in bulk.
- Options Trading — Search contracts by expiration/strike/type. Place single-leg or multi-leg strategies. Get latest quotes, Greeks, and IV.
- Crypto Trading — Market, limit, and stop-limit orders with GTC/IOC. Quantity or notional-based.
- Position Management — View, close, or liquidate positions. Exercise option contracts.
Tools exposed (20+)
get_account_info– Balance, margin, and account statusget_account_config– Trading restrictions, margin settings, PDT checksupdate_account_config– Update account configuration settingsget_portfolio_history– Equity and P/L over timeget_account_activities– Fills, dividends, transfersget_account_activities_by_type– Activities filtered by typeget_orders– Retrieve orders with filtersget_order_by_id– Single order by IDget_order_by_client_id– Single order by client order IDreplace_order_by_id– Replace an existing open ordercancel_order_by_id– Cancel a specific ordercancel_all_orders– Cancel all open ordersplace_stock_order– Stocks/ETFs (market, limit, stop, stop-limit, trailing-stop, brackets)place_crypto_order– Crypto (market, limit, stop-limit)place_option_order– Options (single-leg or multi-leg)get_all_positions– All current positionsget_open_position– Details for a specific positionclose_position– Close a specific positionclose_all_positions– Liquidate entire portfolioexercise_options_position– Exercise a held option contract
Requirements
- Python 3.10+ (installation guide)
- uv (installation guide)
- Alpaca Trading API keys (free paper trading account)
- MCP client (Claude Desktop, Cursor, VS Code, etc.)
- Python with uv (runs with uvx/uv)
- Environment variables: ALPACA_API_KEY, ALPACA_SECRET_KEY
Repository: alpacahq/alpaca-mcp-server
Website: https://alpaca.markets/algotrading
Stars: ★1022
Language: Python
Last updated: 2026-10-12
ai-tradingalgorithmic-tradingcryptoetfsmcpmcp-serveroptionsstockstradingtrading-api
Website: https://alpaca.markets/algotrading
Stars: ★1022
Language: Python
Last updated: 2026-10-12
ai-tradingalgorithmic-tradingcryptoetfsmcpmcp-serveroptionsstockstradingtrading-api
How to install alpaca-mcp-server MCP in Claude Desktop, Cursor and VS Code
Install
Taken from the project README (README mcpServers JSON). Check the README for required API keys before use.
Claude Code
Terminal (claude CLI)
claude mcp add --env ALPACA_API_KEY=your_alpaca_api_key --env ALPACA_SECRET_KEY=your_alpaca_secret_key --transport stdio alpaca -- uvx alpaca-mcp-serverClaude Desktop
claude_desktop_config.json
{
"mcpServers": {
"alpaca": {
"command": "uvx",
"args": [
"alpaca-mcp-server"
],
"env": {
"ALPACA_API_KEY": "your_alpaca_api_key",
"ALPACA_SECRET_KEY": "your_alpaca_secret_key"
}
}
}
}Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"alpaca": {
"command": "uvx",
"args": [
"alpaca-mcp-server"
],
"env": {
"ALPACA_API_KEY": "your_alpaca_api_key",
"ALPACA_SECRET_KEY": "your_alpaca_secret_key"
}
}
}
}VS Code
.vscode/mcp.json
{
"servers": {
"alpaca": {
"type": "stdio",
"command": "uvx",
"args": [
"alpaca-mcp-server"
],
"env": {
"ALPACA_API_KEY": "your_alpaca_api_key",
"ALPACA_SECRET_KEY": "your_alpaca_secret_key"
}
}
}
}Add to config generator – combine it with other servers, or get the Windsurf format.
Featured in: Best MCP servers for crypto and Web3
Maintain this project? Get it featured for free during launch →
Related Finance & Crypto MCP servers
tradingview-mcp by atilaahmettaner · ★5060
TradingView MCP server — real-time market data, technical analysis, screeners & backtesting for Claude, ChatGPT, Cursor & any MCP client. St
Finance & Crypto
TradingView MCP server — real-time market data, technical analysis, screeners & backtesting for Claude, ChatGPT, Cursor & any MCP client. St
Finance & Crypto
solana-mcp-vybe by vybenetwork · ★1896
Public Solana MCP registry metadata for Vybe Solana API
Finance & Crypto
Public Solana MCP registry metadata for Vybe Solana API
Finance & Crypto
mcp-language-server by isaacphi · ★1609
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
Finance & Crypto
mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, and diagnostics.
Finance & Crypto
ai-trader by whchien · ★1109
Backtrader-powered backtesting framework for algorithmic trading, featuring 20+ strategies, multi-market support, CLI tools, and an integrat
Finance & Crypto
Backtrader-powered backtesting framework for algorithmic trading, featuring 20+ strategies, multi-market support, CLI tools, and an integrat
Finance & Crypto
attestix by VibeTensor · ★874
AI agent identity, signed credentials, delegated authority and portable governance evidence. Python core and offline verifier SDKs.
Finance & Crypto
AI agent identity, signed credentials, delegated authority and portable governance evidence. Python core and offline verifier SDKs.
Finance & Crypto
Weekly MCP digest – new and trending MCP servers in your inbox.