MCP.so
ログイン

Alpaca Trading MCP Server

@MardiantoS

Alpaca Trading MCP Server について

概要はまだありません

基本情報

カテゴリ

金融とコマース

ライセンス

MIT license

ランタイム

python

トランスポート

stdio

公開者

MardiantoS

設定

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

{
  "mcpServers": {
    "alpaca-mcp-server-mardiantos": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

ツール

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

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

概要

What is Alpaca Trading MCP Server?

A Model Context Protocol (MCP) server that enables Large Language Models like Anthropic Claude to interact with the Alpaca trading API. It allows LLMs to manage accounts, access market data, place orders, and track positions through standardized tools and resources.

How to use Alpaca Trading MCP Server?

Clone the repository, install dependencies with uv sync, and create a .env file with your Alpaca API key and secret (defaulting to paper trading). Configure the server in Claude Desktop’s claude_desktop_config.json by specifying the absolute paths to uv and the project directory. Relaunch Claude and ask queries such as "What's my current Alpaca portfolio balance?" or "Place a buy limit order for 10 shares of JPMorgan Chase at $238."

Key features of Alpaca Trading MCP Server

  • View account information and portfolio summary
  • Access real-time quotes and historical price bars
  • Place market and limit orders
  • Monitor current positions and recent orders
  • Paper trading enabled by default for safety

Use cases of Alpaca Trading MCP Server

  • Query current portfolio balance through natural language
  • Place market or limit buy/sell orders via chat
  • Cancel existing orders using order IDs
  • Retrieve real-time quotes and historical bars for symbols
  • Review recent orders and open positions

FAQ from Alpaca Trading MCP Server

What trading operations does the server support?

It supports placing market and limit orders, canceling orders, and retrieving portfolio summaries. Order execution depends on the Alpaca account (paper or live).

How do I obtain Alpaca API credentials?

Alpaca API keys can be acquired from the Alpaca developer web console. Refer to the Alpaca documentation for getting started.

Is this server safe for live trading?

The server defaults to paper trading (ALPACA_PAPER=TRUE) and includes error handling and logging. The README includes a disclaimer that trading involves risk and the author is not responsible for financial losses.

What are the prerequisites to run the server?

You need uv (Python package manager) and optionally Claude for Desktop for testing. Python and the dependencies listed in uv.lock are installed automatically.

Does real-time market data require a specific account?

Real-time quotes and historical bars may only be fully accessible with a Live trading account, depending on the Alpaca subscription level. Paper trading accounts might have limited market data.

コメント

「金融とコマース」の他のコンテンツ