Loading...

Alpaca Trading MCP server manages stock/crypto portfolios, places trades, and provides market data via the Alpaca API; requires API keys.
Boost this tool
Subscribe to listing upgrades or segmented pushes.
Alpaca Trading MCP server manages stock/crypto portfolios, places trades, and provides market data via the Alpaca API; requires API keys.
This server provides both read and write access to the Alpaca trading API. It's relatively safe when used in paper trading mode, but real trading carries inherent financial risk. Securely store your API keys and understand the implications of each tool before use.
Performance is limited by the Alpaca API rate limits and the single-threaded nature of the server. Optimize API calls to minimize latency.
Cost depends on Alpaca API usage; be mindful of data usage and trading frequency.
npx -y @smithery/cli install @laukikk/alpaca-mcp --client claude{
"mcpServers": {
"alpaca": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/alpaca-mcp-server",
"run",
"src/server.py"
]
}
}
}ALPACA_PAPER_API_KEYALPACA_PAPER_API_SECRETget_account_info_toolRetrieves current account information, such as balances and buying power.
Read-only access to account data.
place_market_orderPlaces a market order to buy or sell a specified quantity of a stock.
Executes trades immediately at the current market price, which can lead to unexpected results.
place_limit_orderPlaces a limit order to buy or sell a stock at a specified price.
Places an order that executes only at a specific price, but can still result in unintended financial consequences.
place_stop_orderPlaces a stop order to buy or sell a stock when it reaches a specified price.
Triggers a market order when a price threshold is reached, potentially leading to unexpected execution prices.
place_stop_limit_orderPlaces a stop-limit order combining stop and limit order features for buying or selling a stock.
Combines the risks of both stop and limit orders, requiring careful parameter setting.
cancel_orderCancels an open order by its ID.
Canceling the wrong order could have unintended consequences on a trading strategy.
close_positionCloses an open position for a specific symbol.
Closing a position can result in realized gains or losses.
get_portfolio_summaryProvides a summary of the current portfolio, including positions and performance.
Read-only access to portfolio data.
API Key
cloud
This server provides both read and write access to the Alpaca trading API. It's relatively safe when used in paper trading mode, but real trading carries inherent financial risk. Securely store your API keys and understand the implications of each tool before use.
Autonomy depends on how the tools are chained; careful planning is needed to avoid unintended trades. No built-in dry-run or rollback.
Production Tip
Implement robust error handling and logging to track trades and identify potential issues.
Paper trading uses simulated funds, while live trading uses real money and carries financial risk.
Create an account at Alpaca and generate API keys in the dashboard.
Refer to the Alpaca API documentation for current rate limit information.
Store API keys in a secure location and avoid committing them to version control.
No, this server uses polling to retrieve market data.
You would need to configure separate instances of the server for each account.
Market, limit, stop, and stop-limit orders are supported.