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 pick a public domain — Zeabur gives you a free .zeabur.app subdomain or you can bind your own.
After the service starts, open the service URL in your browser and log in with the launcher password from the Instructions tab. The web launcher lets you:
ALPACA_API_KEY and ALPACA_SECRET_KEYALPACA_PAPER_TRADEYour 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 | — | Optional at deploy time. Alpaca API key ID, configurable in the launcher |
ALPACA_SECRET_KEY | — | Optional at deploy time. Alpaca API secret, configurable in the launcher |
ALPACA_PAPER_TRADE | true | Set to false to enable live (real-money) trading |
WEB_LAUNCHER_PASSWORD | Auto | Password for the web launcher login |
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.