laukikk/alpaca-mcp
FreeAlpaca 交易 API 的 MCP 服务器,用于管理股票和加密货币投资组合、下单和访问市场数据。
About laukikk/alpaca-mcp
alpaca-mcp is an open-source Model Context Protocol (MCP) server that provides a comprehensive interface to the Alpaca trading API. It enables users to manage stock and cryptocurrency portfolios, place various order types (market, limit, stop, stop-limit), access real-time market quotes and historical price data, view account information and positions, and retrieve details about tradable assets. The server exposes both resources (e.g., account://info, positions://all, market://{symbol}/quote) and tools (e.g., get_account_info_tool, place_market_order, get_portfolio_summary) for seamless integration with MCP clients like Claude Desktop. Installation is available via Smithery or manual setup with pip/uv, and it supports paper trading using Alpaca API credentials.
Key Features
Pros & Cons
- Free and open-source (MIT license)
- Comprehensive coverage of Alpaca trading API features
- Supports paper trading for safe strategy testing
- Easy setup via Smithery or local installation
- Works seamlessly with Claude Desktop and other MCP clients
- Provides both MCP resources (data access) and tools (action execution)
- Active community with 36 stars and 15 forks
- Requires an Alpaca account and API credentials (paper trading only)
- No built-in support for live trading (must use Alpaca live API separately)
- Limited to the Alpaca brokerage platform; no multi-exchange support
- Setup requires manual configuration of .env file for API keys