alpaca-mcp-server
Verified Safeby alpacahq
Overview
Enables natural language trading operations for Alpaca's Trading API via AI assistants, supporting stocks, options, crypto, portfolio management, and real-time market data.
Installation
uvx alpaca-mcp-server serveEnvironment Variables
- ALPACA_API_KEY
- ALPACA_SECRET_KEY
- ALPACA_PAPER_TRADE
- TRADE_API_URL
- TRADE_API_WSS
- DATA_API_URL
- STREAM_DATA_WSS
- DEBUG
- HOST
- PORT
- ALLOWED_HOSTS
- MCP_CLIENT
Security Notes
Uses environment variables and `.env` files for sensitive API keys, with explicit warnings against command-line arguments in `cli.py`. Implements DNS rebinding protection for HTTP transport with configurable `allowed-hosts`. `.env` file permissions are set restrictively (0o600) on non-Windows systems. Kubernetes secrets are leveraged in Helm chart deployments for credentials. The primary inherent risk is financial loss from actual trading, which is clearly disclosed to the user.
Similar Servers
maverick-mcp
Personalized stock analysis, technical indicators, and portfolio optimization via Claude Desktop.
finance-trading-ai-agents-mcp
A specialized MCP server for financial analysis and quantitative trading, designed to deploy local financial MCP services with a departmental architecture for LLM integration and algorithmic trading.
alpha_vantage_mcp
Enables LLMs and agentic workflows to seamlessly interact with real-time and historical stock market data through the Model Context Protocol (MCP).
futu-stock-mcp-server
A Model Context Protocol (MCP) server for accessing Futu OpenAPI functionality, providing standardized MCP protocol to AI models for market data subscription and querying, including trading capabilities.