a

alpaca-mcp-server

@dogmaai/alpaca-mcp-server
0 Stars 182 次浏览 dogmaai 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "alpaca": {
      "args": [
        "alpaca-mcp-server",
        "serve"
      ],
      "command": "uvx",
      "env": {
        "ALPACA_API_KEY": "your_alpaca_api_key",
        "ALPACA_SECRET_KEY": "your_alpaca_secret_key"
      },
      "type": "stdio"
    },
    "alpaca-docker": {
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "ALPACA_API_KEY=your_key",
        "-e",
        "ALPACA_SECRET_KEY=your_secret",
        "-e",
        "ALPACA_PAPER_TRADE=True",
        "mcp/alpaca:latest"
      ],
      "command": "docker"
    }
  }
}

服务介绍







Table of Contents

Prerequisites

You need the following prerequisites to configure and run the Alpaca MCP Server.

  • Terminal (macOS/Linux) | Command Prompt or PowerShell (Windows)
  • Python 3.10+ (Check the official installation guide and confirm the version by typing the following command: python3 --version in Terminal)
  • uv (Install using the official guide)
    Tip: uv can be installed either through a package manager (like Homebrew) or directly using curl | sh.
  • Alpaca Trading API keys (free paper trading account available)
  • MCP client (Claude Desktop, Cursor, VS Code, etc.)

Note: Using an MCP server requires installation and configuration of both the MCP server and MCP client.

Start here

Note: These steps assume all Prerequisites have been installed.

Note: How to show hidden files

  • macOS Finder: Command + Shift + .
  • Linux file managers: Ctrl + H
  • Windows File Explorer: Alt, V, H
  • Terminal (macOS/Linux): ls -a

Getting Your API Keys

  1. Visit Alpaca Trading API Account Dashboard
  2. Create a free paper trading account
  3. Generate API keys from the dashboard

Switching API Keys for Live Trading

To enable live trading with real funds or switch between different accounts, update API credentials in two places:

  1. .env file (used by MCP server)
  2. MCP client config JSON (used by MCP client like Claude Desktop, Cursor, etc.)

Important: The MCP client configuration overrides the .env file. When using an MCP client, the credentials in the client's JSON config take precedence.

Method 1: Run the init command again to update your .env file

# Follow the prompts to update your keys and toggle paper/live trading
uvx alpaca-mcp-server init

Method 2: Manually Update

ALPACA_API_KEY = "your_alpaca_api_key_for_live_account"
ALPACA_SECRET_KEY = "your_alpaca_secret_key_for_live_account"
ALPACA_PAPER_TRADE = False
TRADE_API_URL = None
TRADE_API_WSS = None
DATA_API_URL = None
STREAM_DATA_WSS = None

Step 2-1: Edit your MCP client configuration file:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  • Cursor: ~/.cursor/mcp.json
  • VS Code: .vscode/mcp.json (workspace) or user settings.json

Step 2-2: Update the API keys in the env section:

For uvx installations:

{
  "mcpServers": {
    "alpaca": {
      "command": "uvx",
      "args": ["alpaca-mcp-server", "serve"],
      "env": {
        "ALPACA_API_KEY": "your_alpaca_api_key_for_live_account",
        "ALPACA_SECRET_KEY": "your_alpaca_secret_key_for_live_account"
      }
    }
  }
}

Then, restart your MCP client (Claude Desktop, Cursor, etc.)

Quick Local Installation for MCP Server

Note: Using an MCP server requires installation and configuration of both the MCP server and MCP client.

# Install and configure
uvx alpaca-mcp-server init

Note: If you don't have uv yet, install it first and then restart your terminal so uv/uvx are recognized. See the official guide: https://docs.astral.sh/uv/getting-started/installation/

Then add to your MCP client config :

Config file locations:

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  • Cursor: ~/.cursor/mcp.json (Mac/Linux) or %USERPROFILE%\.cursor\mcp.json (Windows)
{
  "mcpServers": {
    "alpaca": {
      "command": "uvx",
      "args": ["alpaca-mcp-server", "serve"],
      "env": {
        "ALPACA_API_KEY": "your_alpaca_api_key",
        "ALPACA_SECRET_KEY": "your_alpaca_secret_key"
      }
    }
  }
}

Clone the repository and navigate to the directory:

git clone https://github.com/alpacahq/alpaca-mcp-server.git
cd alpaca-mcp-server

Execute the following commands in your terminal:

cd alpaca-mcp-server
python3 install.py

Note: These steps assume all Prerequisites have been installed.
Cursor users can install Alpaca's MCP Server directly from the Cursor Directory in just a few clicks.

1. Find Alpaca in the Cursor Directory
2. Click "Add to Cursor" to launch Cursor on your computer
3. Enter your API Key and Secret Key
4. Youre all set to start using it

# Clone and build
git clone https://github.com/alpacahq/alpaca-mcp-server.git
cd alpaca-mcp-server
docker build -t mcp/alpaca:latest .

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "alpaca-docker": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "ALPACA_API_KEY=your_key",
        "-e", "ALPACA_SECRET_KEY=your_secret",
        "-e", "ALPACA_PAPER_TRADE=True",
        "mcp/alpaca:latest"
      ]
    }
  }
}

After installing/cloning and activating the virtual environment, your directory structure should look like this:

alpaca-mcp-server/           This is the workspace folder (= project root)
 src/                     Source code package
    alpaca_mcp_server/   Main package directory
        __init__.py
        cli.py           Command-line interface
        config.py        Configuration management
        helper.py        Helper function management
        server.py        MCP server implementation
 .github/                 GitHub settings
    core/                Core utility modules
    workflows/           GitHub Actions workflows
 .vscode/                 VS Code settings (for VS Code users)
    mcp.json
 .venv/                   Virtual environment folder
    bin/python
 charts/                  Kubernetes deployment configurations
    alpaca-mcp-server/   Helm chart for GKE deployment
 .env.example             Environment template (use this to create `.env` file)
 .gitignore              
 Dockerfile               Docker configuration (for Docker use)
 .dockerignore            Docker ignore (for Docker use)
 pyproject.toml           Package configuration
 requirements.txt         Python dependencies
 install.py               Installation script
 README.md

Features

  • Market Data
    • Real-time quotes, trades, and price bars for stocks, crypto, and options
    • Historical data with flexible timeframes (1Min to 1Month)
    • Comprehensive stock snapshots and trade-level history
    • Option contract quotes and Greeks
  • Account Management
    • View balances, buying power, and account status
    • Inspect all open and closed positions
  • Position Management
    • Get detailed info on individual holdings
    • Liquidate all or partial positions by share count or percentage
  • Order Management
    • Place stocks, ETFs, crypto, and options orders
    • Support for market, limit, stop, stop-limit, and trailing-stop orders
    • Cancel orders individually or in bulk
    • Retrieve full order history
  • Options Trading
    • Search option contracts by expiration, strike price, and type
    • Place single-leg or multi-leg options strategies (spreads, straddles, etc.)
    • Get latest quotes, Greeks, and implied volatility
  • Crypto Trading
    • Place market, limit, and stop-limit crypto orders
    • Support for GTC and IOC time in force
    • Handle quantity or notional-based orders
  • Market Status & Corporate Actions
    • Check if markets are open
    • Fetch market calendar and trading sessions
    • View upcoming / historical corporate announcements (earnings, splits, dividends)
  • Watchlist Management
    • Create, update, and view personal watchlists
    • Manage multiple watchlists for tracking assets
  • Asset Search
    • Query details for stocks, ETFs, crypto, and options
    • Filter assets by status, class, exchange, and attributes
  • OAuth 2.0 Support
    • Authorization header passthrough for hosted MCP servers
    • Multi-tenant support - each LLM chatbot request can use a different user's OAuth token
    • Automatic detection of Authorization headers in incoming HTTP requests
    • Seamlessly forwards authentication to Alpaca Trading API
    • Backward compatible with traditional API key/secret authentication

Example Prompts

  1. What's my current account balance and buying power on Alpaca?
  2. Show me my current positions in my Alpaca account.
  3. Buy 5 shares of AAPL at market price.
  4. Sell 5 shares of TSLA with a limit price of $300.
  5. Cancel all open stock orders.
  6. Cancel the order with ID abc123.
  7. Liquidate my entire position in GOOGL.
  8. Close 10% of my position in NVDA.
  9. Place a limit order to buy 100 shares of MSFT at $450.
  10. Place a market order to sell 25 shares of META.
  1. Place a market order to buy 0.01 ETH/USD.
  2. Place a limit order to sell 0.01 BTC/USD at $110,000.
  1. Show me available option contracts for AAPL expiring next month.
  2. Get the latest quote for the AAPL250613C00200000 option.
  3. Retrieve the option snapshot for the SPY250627P00400000 option.
  4. Liquidate my position in 2 contracts of QQQ calls expiring next week.
  5. Place a market order to buy 1 call option on AAPL expiring next Friday.
  6. What are the option Greeks for the TSLA250620P00500000 option?
  7. Find TSLA option contracts with strike prices within 5% of the current market price.
  8. Get SPY call options expiring the week of June 16th, 2025, within 10% of market price.
  9. Place a bull call spread using AAPL June 6th options: one with a 190.00 strike and the other with a 200.00 strike.
  10. Exercise my NVDA call option contract NVDA250919C001680.

To access the latest 15-minute data, you need to subscribe to the Algo Trader Plus Plan.

  1. What are the market open and close times today?
  2. Show me the market calendar for next week.
  3. Show me recent cash dividends and stock splits for AAPL, MSFT, and GOOGL in the last 3 months.
  4. Get all corporate actions for SPY including dividends, splits, and any mergers in the past year.
  5. What are the upcoming corporate actions scheduled for SPY in the next 6 months?
  1. Show me AAPL's daily price history for the last 5 trading days.
  2. What was the closing price of TSLA yesterday?
  3. Get the latest bar for GOOGL.
  4. What was the latest trade price for NVDA?
  5. Show me the most recent quote for MSFT.
  6. Retrieve the last 100 trades for AMD.
  7. Show me 1-minute bars for AMZN from the last 2 hours.
  8. Get 5-minute intraday bars for TSLA from last Tuesday through last Friday.
  9. Get a comprehensive stock snapshot for AAPL showing latest quote, trade, minute bar, daily bar, and previous daily bar all in one view.
  10. Compare market snapshots for TSLA, NVDA, and MSFT to analyze their current bid/ask spreads, latest trade prices, and daily performance.
  1. Show me all my open and filled orders from this week.
  2. What orders do I have for AAPL?
  3. List all limit orders I placed in the past 3 days.
  4. Filter all orders by status: filled.
  5. Get me the order history for yesterday.

At this moment, you can only view and update trading watchlists created via Alpacas Trading API through the API itself

  1. Create a new watchlist called "Tech Stocks" with AAPL, MSFT, and NVDA.
  2. Update my "Tech Stocks" watchlist to include TSLA and AMZN.
  3. What stocks are in my "Dividend Picks" watchlist?
  4. Remove META from my "Growth Portfolio" watchlist.
  5. List all my existing watchlists.
  1. Search for details about the asset 'AAPL'.
  2. Show me the top 5 tradable crypto assets by trading volume.
  3. Get all NASDAQ active US equity assets and filter the results to show only tradable securities
  1. Get today's market clock and show me my buying power before placing a limit buy order for TSLA at $340.
  2. Place a bull call spread with SPY July 3rd options: sell one 5% above and buy one 3% below the current SPY price.

Example Outputs

The MCP server provides detailed, well-formatted responses for various trading queries. Here are some examples:

Option Greeks Analysis

Query: "What are the option Greeks for TSLA250620P00500000?"

Response:
Option Details:

  • Current Bid/Ask: $142.62 / $143.89
  • Last Trade: $138.85
  • Implied Volatility: 92.54%

Greeks:

  • Delta: -0.8968 (Very Bearish)
  • Gamma: 0.0021 (Low Rate of Change)
  • Theta: -0.2658 (Time Decay: $26.58/day)
  • Vega: 0.1654 (Volatility Sensitivity)
  • Rho: -0.3060 (Interest Rate Sensitivity)

Key Insights:

  • High Implied Volatility (92.54%)
  • Deep In-the-Money (Delta: -0.90)
  • Significant Time Decay ($27/day)

Multi-Leg Option Order

Query: "Place a bull call spread using AAPL June 6th options: one with a 190.00 strike and the other with a 200.00 strike."

Response:
Order Details:

  • Order ID: fc1c04b1-8afa-4b2d-aab1-49613bbed7cb
  • Order Class: Multi-Leg (MLEG)
  • Status: Pending New
  • Quantity: 1 spread

Spread Legs:

  1. Long Leg (BUY):

    • AAPL250606C00190000 ($190.00 strike)
    • Status: Pending New
  2. Short Leg (SELL):

    • AAPL250606C00200000 ($200.00 strike)
    • Status: Pending New

Strategy Summary:

  • Max Profit: $10.00 per spread
  • Max Loss: Net debit paid
  • Breakeven: $190 + net debit paid

These examples demonstrate the server's ability to provide:

  • Detailed market data analysis
  • Comprehensive order execution details
  • Clear strategy explanations
  • Well-formatted, easy-to-read responses

Available Tools

  • get_account_info() View balance, margin, and account status
  • get_all_positions() List all held assets
  • get_open_position(symbol) Detailed info on a specific position
  • get_asset(symbol) Search asset metadata
  • get_all_assets(status=None, asset_class=None, exchange=None, attributes=None) List all tradable instruments with filtering options
  • get_corporate_actions(ca_types=None, start=None, end=None, symbols=None, cusips=None, ids=None, limit=1000, sort="asc") Historical and future corporate actions (e.g., earnings, dividends, splits)
  • get_portfolio_history(timeframe=None, period=None, start=None, end=None, date_end=None, intraday_reporting=None, pnl_reset=None, extended_hours=None, cashflow_types=None) Retrieve account portfolio history with equity and P/L over time
  • create_watchlist(name, symbols) Create a new list
  • get_watchlists() Retrieve all saved watchlists
  • update_watchlist_by_id(watchlist_id, name=None, symbols=None) Modify an existing list
  • get_watchlist_by_id(watchlist_id) Get a specific watchlist by its ID
  • add_asset_to_watchlist_by_id(watchlist_id, symbol) Add an asset to a watchlist
  • remove_asset_from_watchlist_by_id(watchlist_id, symbol) Remove an asset from a watchlist
  • delete_watchlist_by_id(watchlist_id) Delete a specific watchlist
  • get_calendar(start_date, end_date) Holidays and trading days
  • get_clock() Market open/close schedule and current status
  • get_stock_bars(symbol, days=5, hours=0, minutes=15, timeframe="1Day", limit=1000, start=None, end=None, sort=Sort.ASC, feed=None, currency=None, asof=None) OHLCV historical bars with flexible timeframes (1Min, 5Min, 1Hour, 1Day, etc.)
  • get_stock_quotes(symbol, days=1, hours=0, minutes=15, limit=1000, sort=Sort.ASC, feed=None, currency=None, asof=None) Historical quote data (level 1 bid/ask) for a stock
  • get_stock_trades(symbol, days=1, minutes=15, hours=0, limit=1000, sort=Sort.ASC, feed=None, currency=None, asof=None) Trade-level history
  • get_stock_latest_bar(symbol, feed=None, currency=None) Most recent OHLC bar
  • get_stock_latest_quote(symbol_or_symbols, feed=None, currency=None) Real-time bid/ask quote for one or more symbols
  • get_stock_latest_trade(symbol, feed=None, currency=None) Latest market trade price
  • get_stock_snapshot(symbol_or_symbols, feed=None, currency=None) Comprehensive snapshot with latest quote, trade, minute bar, daily bar, and previous daily bar
  • get_crypto_bars(symbol_or_symbols, days=1, timeframe="1Hour", limit=None, start=None, end=None, feed=CryptoFeed.US) Historical price bars for cryptocurrency with configurable timeframe
  • get_crypto_quotes(symbol_or_symbols, days=3, limit=None, start=None, end=None, feed=CryptoFeed.US) Historical quote data (bid/ask) for crypto
  • get_crypto_trades(symbol_or_symbols, days=1, limit=None, start=None, end=None, sort=None, feed=CryptoFeed.US) Historical trade prints for cryptocurrency
  • get_crypto_latest_quote(symbol_or_symbols, feed=CryptoFeed.US) Latest quote for one or more crypto symbols
  • get_crypto_latest_bar(symbol_or_symbols, feed=CryptoFeed.US) Latest minute bar for crypto
  • get_crypto_latest_trade(symbol_or_symbols, feed=CryptoFeed.US) Latest trade for crypto
  • get_crypto_snapshot(symbol_or_symbols, feed=CryptoFeed.US) Comprehensive crypto snapshot including latest trade, quote, minute bar, daily and previous daily bars
  • get_crypto_latest_orderbook(symbol_or_symbols, feed=CryptoFeed.US) Latest orderbook for crypto
  • get_option_contracts(underlying_symbol, expiration_date=None, expiration_date_gte=None, expiration_date_lte=None, expiration_expression=None, strike_price_gte=None, strike_price_lte=None, type=None, status=None, root_symbol=None, limit=None) Get option contracts with flexible filtering
  • get_option_latest_quote(option_symbol, feed=None) Latest bid/ask on contract
  • get_option_snapshot(symbol_or_symbols, feed=None) Get Greeks and underlying
  • get_orders(status=None, limit=None, after=None, until=None, direction=None, nested=None, side=None, symbols=None) Retrieve all or filtered orders
  • place_stock_order(symbol, side, quantity, order_type="market", limit_price=None, stop_price=None, trail_price=None, trail_percent=None, time_in_force="day", extended_hours=False, client_order_id=None) Place a stock order of any type (market, limit, stop, stop_limit, trailing_stop)
  • place_crypto_order(symbol, side, order_type="market", time_in_force="gtc", qty=None, notional=None, limit_price=None, stop_price=None, client_order_id=None) Place a crypto order supporting market, limit, and stop_limit types with GTC/IOC time in force
  • place_option_market_order(legs, order_class=None, quantity=1, time_in_force="day", extended_hours=False) Execute option strategy (single or multi-leg)
  • cancel_all_orders() Cancel all open orders
  • cancel_order_by_id(order_id) Cancel a specific order
  • close_position(symbol, qty=None, percentage=None) Close part or all of a position
  • close_all_positions(cancel_orders=False) Liquidate entire portfolio
  • exercise_options_position(symbol_or_contract_id) Exercise a held option contract, converting it into the underlying asset

MCP Client Configuration

Below you'll find step-by-step guides for connecting the Alpaca MCP server to various MCP clients. Choose the section that matches your preferred development environment or AI assistant.

Note: These steps assume all Prerequisites have been installed.

Simple and modern approach:

  1. Install and configure the server:

    uvx alpaca-mcp-server init
    
  2. Open Claude Desktop Settings Developer Edit Config

  3. Add this configuration:

    {
      "mcpServers": {
        "alpaca": {
          "type": "stdio",
          "command": "uvx",
          "args": ["alpaca-mcp-server", "serve"],
          "env": {
            "ALPACA_API_KEY": "your_alpaca_api_key",
            "ALPACA_SECRET_KEY": "your_alpaca_secret_key"
          }
        }
      }
    }
    
  4. Restart Claude Desktop and start trading!

Method 2: install.py (Alternative local setup)

git clone https://github.com/alpacahq/alpaca-mcp-server.git
cd alpaca-mcp-server
python3 install.py

Choose claude when prompted. The installer sets up .venv, writes .env, and updates claude_desktop_config.json. Restart Claude Desktop.

Note: These steps assume all Prerequisites have been installed.

As of Nov 20, 2025, Alpaca does not provide a hosted Remote MCP Server. To use Alpaca's MCP Server on the Claude mobile app, you need to host it remotely on a cloud service, then connect it as a Connector on Claude desktop to access it from the mobile app. For more information, visit "Connecting Claude to a tool" or our learn article How to Deploy Alpacas MCP Server Remotely on Claude Mobile App.

Overview of Setting Up

Below is an example overview showing one approach to set up a remote Alpaca MCP Server using Docker and connect it to the Claude mobile app. Other deployment methods are also possible.

  1. Install Alpacas MCP Server locally, then build and push a Docker image
  2. Deploy the Alpacas MCP Server remotely using a cloud service
  3. Connect it to Claude AI to execute trades through natural language

Step 1: Install the Alpacas MCP Server

Start by installing Alpacas MCP Server on your local machine. Open Terminal (macOS/Linux) or Command Prompt/PowerShell (Windows), then enter the following commands:

git clone https://github.com/alpacahq/alpaca-mcp-server.git
cd alpaca-mcp-server

Step 2: Login to Docker and Containerize to Push

Before proceeding, install Docker (or Docker Desktop for a GUI). After installation, run the following command to verify Docker is installed on your computer:

docker version
docker info

Then, log in to Docker Hub through CLI. Youll be prompted for your Docker Hub username and password. This is required for pushing Docker images to Docker hub later.

docker login

Once you log in to your Docker account, use your Docker username and a custom image name (e.g., alpaca-mcp-server) to build and push the Docker image to Docker Hub. We use the tag v0.1 in this example.

# Build for most cloud platforms
docker buildx build -t username/custom-docker-image-name:v0.1 --platform=linux/amd64,linux/arm64

# Push to Docker Hub
docker push username/custom-docker-image-name:v0.1 

You can do a sanity check locally by running the following command in terminal:

docker run --rm -p 8000:8000 -e PORT=8000 username/custom-docker-image-name:v0.1 python -m alpaca_mcp_server.server --transport streamable-http --host 0.0.0.0 --port 8000

Step 3: Deploy Alpaca MCP Server Using Your Preferred Cloud Service

Now that we've pushed the Docker image (containerized Alpaca's MCP Server) to Docker Hub, we can host it as a web service using a cloud platform such as AWS, Azure, or GCP. You can use any cloud platform you prefer.

Method 1: Render

For a simpler approach, visit our learn article How to Deploy Alpacas MCP Server Remotely on Claude Mobile App where we demonstrate using Render instead.

Method 2: Google Kubernetes Engine (GKE)

We also provide a Helm chart under alpaca-mcp-server/charts/alpaca-mcp-server for deploying the Alpaca's MCP Server to Kubernetes (Google Kubernetes Engine) as an example.

Step 1: Deploy to GKE
Required Configuration Updates:

Before deploying with Helm, you must update the following values in charts/alpaca-mcp-server/values.yaml:

Docker Image Configuration:

image:
  repository: username/custom-docker-image-name  # Your Docker Hub repository
  tag: "v0.1"                                    # Your image tag
env:
  secrets: 
    ALPACA_API_KEY: "your-actual-api-key"
    ALPACA_SECRET_KEY: "your-actual-secret-key"
    ALPACA_BASE_URL: "https://paper-api.alpaca.markets"  # or https://api.alpaca.markets for live
ingress:
  hosts:
    - host: your-domain.com              # Replace with your domain
  tls: 
    - secretName: cert-your-domain       # Replace with your cert secret name
      hosts:
        - your-domain.com                # Replace with your domain**Deploy with Helm:**

Once you've updated values.yaml, deploy with:

helm upgrade --install alpaca-mcp-server ./charts/alpaca-mcp-server --create-namespace

Step 2: Connect with Claude Web
Once deploy Alpaca's MCP Server, it will be accessible at https://your-domain.com. Go to Claude Webpage.

From a chat:

  • Click the "Search and tools" button on the lower left of your chat interface.
  • From the menu, select Manage connectors.
  • Add custom connector" and enter your preferred MCP Server name (e.g., Alpaca's MCP Server) and the URL https://your-domain.com/mcp in "Remote MCP Server URL" (ensure it ends with /mcp)

Step 3. Use Alpacas MCP Server on Claude Mobile App
Once you successfully connect Alpaca's MCP Server to Claude web, it will also be available as a connector in the Claude mobile app.

  • Open the Claude mobile app. On the chat screen, tap the plus (+) icon next to the message box to open additional options.
  • In the menu that appears, scroll and tap Manage Connectors to view all available and custom connectors.
  • In the Connectors list, look for Alpacas MCP Server under Custom Connectors. Tap it to enable and start using it within your Claudes mobile app.

Note: These steps assume all Prerequisites have been installed.

As of Nov 20, 2025, Alpaca does not provide a hosted Remote MCP Server. To use Alpaca's MCP Server on the ChatGPT app, you need to host it remotely on a cloud service, then connect it as a Connector on ChatGPT web or mobile app to access it. For more information, visit "Connectors in ChatGPT" or our learn article How to Deploy Alpacas MCP Server Remotely on Claude Mobile App as a reference.

Overview of Setting Up

Below is an example overview showing one approach to set up a remote Alpaca MCP Server using Docker and connect it to the ChatGPT. Other deployment methods are also possible.

  1. Install Alpacas MCP Server locally, then build and push a Docker image
  2. Deploy the Alpacas MCP Server remotely using a cloud service
  3. Connect it to ChatGPT to execute trades through natural language

For more information, refer to Claude Mobile Configuration above or visit our learn article "How to Deploy Alpaca's MCP Server Remotely on Claude Mobile App" as a reference.

**Note: These steps assume all [Prerequisites](#prerequisi

相关 MCP 服务