alpaca-mcp-server
Verified Safeby alpacahq
Overview
A comprehensive Model Context Protocol (MCP) server for Alpaca's Trading API, enabling natural language trading operations through AI assistants for stocks, options, crypto, portfolio management, and real-time market data.
Installation
uvx alpaca-mcp-server serveEnvironment Variables
- ALPACA_API_KEY
- ALPACA_SECRET_KEY
Security Notes
The project demonstrates strong security practices for credential handling. It actively warns against passing API keys via command-line arguments, uses `getpass` for interactive secret input, and attempts to set restrictive file permissions on the `.env` file. The `AuthHeaderMiddleware` correctly extracts and passes OAuth `Authorization` headers, prioritizing them over environment variables, which is a secure pattern for multi-tenant and remote deployments. While binding to `0.0.0.0` for HTTP transport requires external security measures, the documentation explicitly highlights this need. No `eval` or arbitrary code execution from untrusted input was found in the core server logic.
Similar Servers
maverick-mcp
Personal-use FastMCP server for professional-grade financial data analysis, technical indicators, and portfolio optimization tools integrated with 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.
mcp-node
Enables natural language interactions with Algolia search, analytics, and monitoring data via the Model Context Protocol (MCP) and Claude Desktop.
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).