Alpaca MCP Server
@idsts2670
关于 Alpaca MCP Server
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 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.
开发工具 分类下的更多 MCP 服务器
test
prysmaticlabsGo implementation of Ethereum proof of stake
MCP-Bridge
SecretiveShellA middleware to provide an openAI compatible endpoint that can call MCP tools
Unity MCP (Server + Plugin)
IvanMurzakAI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for fr
FastAPI-MCP
tadata-orgExpose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!
Hello World MCP Server (Reference Extension)
anthropicsDesktop Extensions: One-click local MCP server installation in desktop apps
评论