Back to MCP Directory
Alpaca
Model Context Protocol moderate risk

Alpaca

Alpaca Trading MCP server manages stock/crypto portfolios, places trades, and provides market data via the Alpaca API; requires API keys.

Connections & Capabilities

Connects To

GitHubTwitter

Capabilities

readwrite

Quickstart

Install

npx -y @smithery/cli install @laukikk/alpaca-mcp --client claude

Config

{
    "mcpServers": {
        "alpaca": {
            "command": "uv",
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/PARENT/FOLDER/alpaca-mcp-server",
                "run",
                "src/server.py"
            ]
        }
    }
}

Exposed MCP Tools (8)

safe
get_account_info_tool

Retrieves current account information, such as balances and buying power.

Read-only access to account data.

high
place_market_order

Places a market order to buy or sell a specified quantity of a stock.

Executes trades immediately at the current market price, which can lead to unexpected results.

high
place_limit_order

Places a limit order to buy or sell a stock at a specified price.

Places an order that executes only at a specific price, but can still result in unintended financial consequences.

high
place_stop_order

Places a stop order to buy or sell a stock when it reaches a specified price.

Triggers a market order when a price threshold is reached, potentially leading to unexpected execution prices.

high
place_stop_limit_order

Places a stop-limit order combining stop and limit order features for buying or selling a stock.

Combines the risks of both stop and limit orders, requiring careful parameter setting.

moderate
cancel_order

Cancels an open order by its ID.

Canceling the wrong order could have unintended consequences on a trading strategy.

high
close_position

Closes an open position for a specific symbol.

Closing a position can result in realized gains or losses.

safe
get_portfolio_summary

Provides a summary of the current portfolio, including positions and performance.

Read-only access to portfolio data.

Safety Assessment

This server provides both read and write access to the Alpaca trading API. It's relatively safe when used in paper trading mode, but real trading carries inherent financial risk. Securely store your API keys and understand the implications of each tool before use.

  • API key authentication
  • Access to paper trading environment
  • Well-defined resource access patterns
  • Clear separation of read and write operations
  • Requires storage of Alpaca API keys
  • No built-in rate limiting
  • Potential for unintended trades if tools are misused
  • Direct access to trading functionalities