Back to Home
discomedia icon

alpaca-mcp-server

Verified Safe

by discomedia

Overview

This MCP server enables natural language trading operations through AI assistants for Alpaca's Trading API, covering stocks, options, crypto, portfolio management, and real-time market data.

Installation

Run Command
docker run -e ALPACA_API_KEY=your_key -e ALPACA_SECRET_KEY=your_secret alpaca/mcp-server

Environment Variables

  • ALPACA_API_KEY
  • ALPACA_SECRET_KEY

Security Notes

The server demonstrates good security practices by: (1) explicitly warning against hardcoding secrets and command-line key passing, instead favoring .env files and interactive prompts; (2) defaulting HTTP transport to localhost (127.0.0.1) for local connections, requiring explicit configuration for remote exposure; (3) using Kubernetes Secrets for sensitive variables in Helm deployments; (4) implementing an `AuthHeaderMiddleware` for secure OAuth bearer token passthrough in multi-tenant HTTP environments. Specific options trading error handling guides users on required permissions for high-risk strategies like short straddles/strangles, reducing accidental exposure to uncovered positions. No `eval` or obfuscation found.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-14

Tags

tradingfinancealpacastocksoptions