MCP ExplorerExplorer

Alpaca Mcp 2

@vlad-dson 10 months ago
2 MIT
FreeCommunity
AI Systems
Alpaca MCP is a wrapper for the Alpaca API, enabling trading and market data access.

Overview

What is Alpaca Mcp 2

Alpaca MCP is a wrapper over the Alpaca API that allows Claude to interact with Alpaca’s trading and market data APIs through simple tool calls.

Use cases

Use cases include automated trading strategies, portfolio management, market analysis, and developing trading bots that require interaction with Alpaca’s trading infrastructure.

How to use

To use alpaca-mcp-2, set up an Alpaca paper trading account, generate your API key and secret, and configure your ‘claude_desktop_config.json’ with the necessary commands and environment variables.

Key features

Key features include getting the latest stock quotes, historical stock bars, account details, open positions, order management, and market information such as the current clock and calendar.

Where to use

Alpaca MCP can be used in financial trading applications, algorithmic trading systems, and any platform that requires access to real-time and historical market data.

Content

Alpaca MCP

MCP wrapper over the Alpaca API, enabling Claude to interact with Alpaca’s trading and market data APIs through simple tool calls.

Features

The MCP currently provides the following functionality:

  • get_latest_quotes: Get the latest quotes for stock symbols
  • get_stock_bars: Get historical stock bars (candles)
  • get_account: Get account details from your Alpaca account
  • get_all_positions: Get all open positions
  • get_open_position: Get details for a specific position
  • get_orders: Get orders with various filters
  • cancel_orders: Cancel all open orders
  • cancel_order_by_id: Cancel a specific order by ID
  • place_limit_order: Place a limit order
  • close_position: Close a position by symbol
  • get_asset: Get details for a specific asset
  • get_clock: Get current market clock information
  • get_calendar: Get market calendar for a date range

Installation

Prerequisites

Make sure you have uv installed:

curl -fsSL https://astral.sh/uv/install.sh | bash
# or
brew install uv

Manual Installation

Clone this repository and install locally:

gh repo clone vlad-ds/alpaca-mcp-2
cd alpaca-mcp-2
pip install -e .

Setup

  1. Create an Alpaca paper trading account
  2. Generate and save your API key and secret

Usage

Add the following to your claude_desktop_config.json:

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers