Remote Model Context Protocol server for Alpaca's Trading API — trade stocks, options, and crypto from Claude, ChatGPT, or any MCP-compatible AI client over HTTPS.

A remote Model Context Protocol server for Alpaca's Trading API. Once deployed, you can add this server as a custom connector in Claude (web/desktop/mobile) or ChatGPT to trade stocks, options, and crypto and run market analysis through plain-English chat.
Original project: github.com/alpacahq/alpaca-mcp-server — MIT License.
API Key ID into ALPACA_API_KEY and the Secret Key into ALPACA_SECRET_KEY when deploying this templateTo trade with real money, switch the dashboard to Live, generate live keys, and set
ALPACA_PAPER_TRADE=falseafter deployment.
Click Deploy and fill in ALPACA_API_KEY and ALPACA_SECRET_KEY. Pick a public domain — Zeabur gives you a free .zeabur.app subdomain or you can bind your own.
Your MCP endpoint is https://<your-domain>/mcp.
Claude (web, desktop, mobile):
Alpaca, URL: https://<your-domain>/mcpChatGPT:
https://<your-domain>/mcp, transport: Streamable HTTP| Variable | Default | Purpose |
|---|---|---|
ALPACA_API_KEY | — | Required. Alpaca API key ID |
ALPACA_SECRET_KEY | — | Required. Alpaca API secret |
ALPACA_PAPER_TRADE | true | Set to false to enable live (real-money) trading |
Advanced: you can also set ALPACA_TOOLSETS post-deploy under Variables — a comma-separated list (e.g. account,positions,orders) that restricts which tool families the MCP server exposes to the AI client.
This deployment exposes your Alpaca trading credentials behind an HTTPS endpoint with no built-in auth — anyone with the URL can issue trades on your account. For production use:
ALPACA_PAPER_TRADE=true until you've verified the setupThe Alpaca MCP Server is licensed under the MIT License by Alpaca Securities LLC. This Zeabur template repackages the upstream Docker build and is not an official Alpaca product.