Alpaca MCP ServerServer

tedlikeskix
GitHub
FinanceStock TradingAutonomous Agents

Loading subscription status...

💡 Description

The Alpaca MCP Server allows LLMs like Claude to interact with the Alpaca trading API for stock trading, checking positions, fetching market data, and managing accounts through natural language.

📝 JSON Entries

{
  "mcpServers": [
    {
      "alpaca": {
        "env": {
          "API_KEY_ID": "your_alpaca_api_key",
          "API_SECRET_KEY": "your_alpaca_secret_key"
        },
        "args": [
          "/path/to/alpaca_mcp_server.py"
        ],
        "command": "python"
      }
    }
  ]
}

🛠️ Tools

get_account_info()get_positions()get_stock_quote(symbol)get_stock_bars(symbol, days)get_orders(status, limit)place_market_order(symbol, side, quantity)place_limit_order(symbol, side, quantity, limit_price)cancel_all_orders()close_all_positions(cancel_orders)

Features

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

💬 Example Queries

  • What is my current account balance and buying power?
  • Show me my current positions
  • Get the latest quote for AAPL
  • Show historical prices for TSLA over the past 10 days
  • Buy 5 shares of MSFT at market price
  • Sell 10 shares of AMZN at a limit price of $130
  • Cancel all my pending orders