MCP.so
Sign In

Alpaca MCP Server

@MCP-Mirror

About Alpaca MCP Server

Mirror of

Basic information

Category

Other

License

MIT license

Runtime

python

Transports

stdio

Publisher

MCP-Mirror

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "miguelyad26_alpaca-mcp-server": {
      "command": "python",
      "args": [
        "alpaca_mcp_server.py"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is Alpaca MCP Server?

Alpaca MCP Server is a Model Context Protocol server for Alpaca, enabling LLMs like Claude to interact with the Alpaca trading API through natural language. It allows trading stocks, checking positions, fetching market data, and managing account details.

How to use Alpaca MCP Server?

Requires Python 3.10+, Alpaca API keys, and an MCP client such as Claude for Desktop. Clone the repository, install dependencies (mcp, alpaca-py, python-dotenv), create a .env file with credentials, and run python alpaca_mcp_server.py. Configure Claude for Desktop by adding the server to claude_desktop_config.json with the appropriate command, arguments, and environment variables. The server uses Alpaca’s paper trading by default; for live trading change paper=True to paper=False in the TradingClient initialization.

Key features of Alpaca MCP Server

  • Access Alpaca SDK documentation
  • Get real-time stock quotes and historical price data
  • Check account balances, buying power, and status
  • View current positions and their performance
  • Place market and limit orders via natural language
  • List, track, and cancel orders

Use cases of Alpaca MCP Server

  • Check account balance and buying power
  • View current positions and their performance
  • Get the latest stock quote for a symbol
  • Show historical price bars for a stock (e.g., last 10 days)
  • Buy or sell shares at market or with a limit price
  • Cancel all open orders or close all positions

FAQ from Alpaca MCP Server

What are the prerequisites for using Alpaca MCP Server?

Python 3.10 or higher, valid Alpaca API keys, and an MCP client like Claude for Desktop.

How do I configure Claude for Desktop to use this server?

Add the server configuration to claude_desktop_config.json with the command (python), arguments (path to alpaca_mcp_server.py), and environment variables for API_KEY_ID and API_SECRET_KEY.

Does the server use paper trading or real money?

By default it uses Alpaca’s paper trading environment. To trade with real money, change paper=True to paper=False in the TradingClient initialization.

What trading tools are available?

The server exposes nine tools: get_account_info, get_positions, get_stock_quote, get_stock_bars, get_orders, place_market_order, place_limit_order, cancel_all_orders, and close_all_positions.

What security considerations should I be aware of?

The MCP server has access to your Alpaca account and can place real trades. Always review what Claude suggests before approving any trades.

Comments

More Other MCP servers