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.
其他 分类下的更多 MCP 服务器
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
ICSS
chokcoco不止于 CSS
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
评论