アルパカ MCP サーバー
Alpaca マーケット データとブローカー API を MCP ツールとして公開します。
インストール
地域開発
環境変数
プロジェクトのルートに次の.env
を作成します。
コマンド
開始(dev):
npm start
(npx tsx index.ts
実行)ビルド:
npm run build
(dist/
にコンパイルされます)コンパイルして実行:
node dist/index.js
使用法
MCPサーバーは起動するとstdin/stdoutをリッスンします。任意のMCPクライアントまたはCLIを使用してください。
利用可能なツール
資産を取得する
{ assetClass?: "us_equity" | "crypto" }
get-stock-bars
{ symbols: string[]; start: string; end: string; timeframe: string }
get-market-days
{ start: string; end: string }
get-news
{ start: string; end: string; symbols: string[] }
それぞれcontent[0].text
でJSONを返すかエラーを返します。
MCP クライアント構成
mcp.config.json
経由で統合するには、 mcpServers
キーの下に以下を追加します。
ライセンス
ISC
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Alpaca Market Data & Broker API をツールとして公開し、メッセージ制御プロトコルを通じて株価バー、資産、市場日、ニュースなどの金融データにアクセスできるようにする MCP サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides real-time access to financial market data through the free Alpha Vantage API. This server implements a standardized interface for retrieving stock quotes and company information.Last updated -72MIT License
- AsecurityAlicenseAqualityMCP server that provides AI assistants access to stock market data including financial statements, stock prices, and market news through a Model Context Protocol interface.Last updated -11513MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs like Claude to interact with the Alpaca trading API, allowing for trading stocks, checking positions, fetching market data, and managing accounts through natural language.Last updated -3MIT License
- -securityAlicense-qualityAn MCP server that integrates with the AlphaVantage financial data API, providing access to stock market data, technical indicators, and fundamental financial information.Last updated -MIT License