Alpaca Trading MCP Server
@MardiantoS
About Alpaca Trading MCP Server
No overview available yet
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"alpaca-mcp-server-mardiantos": {
"command": "uv",
"args": [
"venv"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
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.
More Finance & Commerce MCP servers
中国股票数据
elsejj这是一个为大模型提供 A 股数据的的 MCP(Model Content Protocol) 服务。
Edwin
edwin-financeEmpowering AI agents to dominate DeFAI
₿itcoin & Lightning Network MCP Server
AbdelStarkBitcoin & Lightning Network MCP Server.
Yahoo Finance MCP Server
narumirunaCrypto Fear & Greed Index MCP Server
kukapayProviding real-time and historical Crypto Fear & Greed Index data
Comments