alpaca-mcp-server

alpaca-mcp-server

16

The Alpaca MCP Server is designed to interface with the Alpaca trading API using a Model Context Protocol. It allows users to perform various trading operations through a natural language interface, making it easier to manage stock trading activities via AI models like Claude.

Alpaca MCP Server

This is a Model Context Protocol (MCP) server for Alpaca, allowing LLMs like Claude to interact with the Alpaca trading API. It enables trading stocks, checking positions, fetching market data, and managing your account through natural language.

Features

  • Market Data: Get real-time stock quotes and historical price data
  • Account Information: Check balances, buying power, and status
  • Position Management: View current positions and their performance
  • Order Placement: Place market and limit orders through natural language
  • Order Management: List, track, and cancel orders

Prerequisites

  • Python 3.10+
  • Alpaca API keys
  • Claude for Desktop or another MCP client

Usage

Start the server by running a specified Python script and configuring Claude for Desktop to integrate with the server. The server provides tools for managing account information, positions, stock quotes, and orders.

Note

The server uses Alpaca's paper trading by default, and security notice advises caution with trade approvals.