MCP.so
ログイン

Alpaca MCP Server

@idsts2670

Alpaca MCP Server について

概要はまだありません

基本情報

カテゴリ

開発者ツール

ライセンス

MIT license

ランタイム

python

トランスポート

stdio

公開者

idsts2670

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp_server_Alpaca_Trading_API": {
      "command": "python",
      "args": [
        "alpaca_mcp_server.py"
      ]
    }
  }
}

ツール

ツールは検出されませんでした

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is Alpaca MCP Server?

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

How to use Alpaca MCP Server?

Install Python 3.10+, clone the repository, install required packages (mcp, alpaca-py, python-dotenv), and create a .env file with your Alpaca API credentials. Run the server with python alpaca_mcp_server.py, then configure Claude for Desktop by adding the server to claude_desktop_config.json with the appropriate path and environment variables.

Key features of Alpaca MCP Server

  • 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 through natural language
  • List, track, and cancel orders

Use cases of Alpaca MCP Server

  • Ask for your current account balance and buying power
  • Retrieve the latest stock quote for a symbol like AAPL
  • View the price history for a stock over a specified number of days
  • Buy or sell shares of a stock at market price or with a limit price
  • Cancel all open orders or close all open positions

FAQ from Alpaca MCP Server

What are the runtime requirements?

Python 3.10 or higher, along with the packages mcp, alpaca-py, and python-dotenv. You also need a valid Alpaca API key and secret key.

How does the server authenticate with Alpaca?

It uses API key authentication. You provide your Alpaca API key ID and secret key (via .env file or environment variables in the config). By default, the server uses Alpaca's paper trading environment.

Can I use real money trading instead of paper trading?

Yes. You can change from paper trading to real money trading by modifying the TradingClient initialization parameter paper=True to paper=False in the server code.

Where does my trading data reside?

All account and order data is stored on Alpaca's servers. The server only retrieves or sends data through their API; it does not store any data locally.

What security should I be aware of?

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

コメント

「開発者ツール」の他のコンテンツ