Alpaca MCP Server
@MCP-Mirror
Alpaca MCP Server について
Mirror of
基本情報
設定
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"miguelyad26_alpaca-mcp-server": {
"command": "python",
"args": [
"alpaca_mcp_server.py"
]
}
}
}ツール
ツールは検出されませんでした
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
概要
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.
「その他」の他のコンテンツ
Nginx UI
0xJackyYet another WebUI for Nginx
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Inbox Zero AI MCP
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
コメント