Labsco
miguelyad26 logo

Alpaca

โ˜… 3

from miguelyad26

Interact with the Alpaca trading API for stock trading, market data, and account management.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredNeeds API keys

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 - all through natural language.

Features

  • ๐Ÿ“š Alpaca Documentation - Access Alpaca SDK documentation to build
  • ๐Ÿ“Š Market Data - Get real-time stock quotes and historical price data
  • ๐Ÿ’ต Account Information - Check your 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

Example Queries

Once the server is connected to Claude, you can ask questions like:

  • "What's my current account balance and buying power?"
  • "Show me my current positions"
  • "Get the latest quote for AAPL"
  • "Show me the price history for TSLA over the last 10 days"
  • "Buy 5 shares of MSFT at market price"
  • "Sell 10 shares of AMZN with a limit price of $130"
  • "Cancel all my open orders"

Note

This server uses Alpaca's paper trading by default. To use real money trading, change paper=True to paper=False in the TradingClient initialization.

Security Notice

This MCP server will have access to your Alpaca account and can place real trades. Always review what Claude is suggesting before approving any trades.

License

MIT