
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A Model Context Protocol server implementation for Alpaca trading that lets LLMs interact with Alpaca's trading API.
Alpaca Trading MCP Server is cataloged as an MCP server attributed to mardiantos. A Model Context Protocol server implementation for Alpaca trading that lets LLMs interact with Alpaca's trading API. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Alpaca Trading MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, the server uses paper trading by default when ALPACA_PAPER is set to TRUE.
README.md · 7a81021defec · 采集于 2026-11-13 11:19:22 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A Model Context Protocol (MCP) server implementation for Alpaca trading that enables Large Language Models (LLMs) like Anthropic Claude to interact with Alpaca's trading API. The instructions and commands provided in this README are primarily for MacOS/Linux users.
Model Context Protocol (MCP) is an open protocol developed by Anthropic that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications. Just as USB-C provides a standardized way to connect your devices to various peripherals and accessories, MCP provides a standardized way to connect AI models to different data sources and tools.
Alpaca is a modern brokerage platform that provides access to the financial markets through developer-friendly APIs. By using Alpaca API, businesses build investing applications and features for their services. Also, programmatic traders can develop algorithms to automate trading strategies.
IMPORTANT: This software is provided "as is", without warranty of any kind. By using this code, you acknowledge that trading involves substantial risk, and the author is not responsible for any financial losses incurred through the use of this software. The user assumes all responsibility for trading decisions made using this implementation. Always use paper trading for testing before considering live trading with real money.
curl -LsSf https://astral.sh/uv/install.sh | sh
Clone this repository
git clone https://github.com/MardiantoS/alpaca-mcp-server.git
cd alpaca-mcp-server
[Optional but Recommended] Create and activate a virtual environment:
uv venv
source .venv/bin/activate
Install dependencies. uv reads the uv.lock file and install the specified versions of all dependencies
uv sync
Create a .env file in the project root with your Alpaca credentials:
ALPACA_API_KEY=your_api_key
ALPACA_API_SECRET=your_api_secret
ALPACA_PAPER=TRUE
Note: Alpaca API keys can be acquired in the Alpaca developer web console. Check Alpaca documentation for reference.
Make sure you have Claude for Desktop installed.
In your Claude for Desktop, go to Settings (this is the Setting from the menu bar, not the one within the app), then go to Developer tab, click "Edit Config". This will locate the claude_desktop_config.json file.
Alternatively, you can locate it at ~/Library/Application Support/Claude/claude_desktop_config.json (or refer to MCP documentation site if the file location has changed)
Add the server in the mcpServers key.
{
"mcpServers": {
"alpaca": {
"command": "/ABSOLUTE/PATH/TO/uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/alpaca-mcp-server",
"run",
"alpaca_mcp_server.py"
]
}
}
}
Note: Make sure to replace the absolute paths of uv and alpaca-mcp-server directory with the actual path on your machine. Hint: run which uv to show your absolute uv path.
Re-launch your Claude for Desktop if it's already launched. Click on the hammer icon to verify the available MCP tools. Here are some queries you could try:
account://info - Get account informationpositions://all - Get all current positionsmarket://quote/{symbol} - Get latest quote for a symbolmarket://bars/{symbol} - Get historical bars for a symbol (last 7 days)orders://recent - Get recent orders (last 7 days)Note: Real-time market data features like quotes and historical bars might only be fully accessible with a Live trading account, depending on your Alpaca subscription level.
place_market_order(symbol, side, qty) - Place a market orderplace_limit_order(symbol, side, qty, limit_price) - Place a limit ordercancel_order(order_id) - Cancel an existing orderget_portfolio_summary() - Get a summary of the current portfolioALPACA_PAPER=TRUE)This project is licensed under the MIT License - see the LICENSE file for details.
If you use this work in your research or project, please use the following citation:
Mardianto Hadiputro. (2025). Alpaca Trading MCP Server. GitHub. https://github.com/MardiantoS/alpaca-mcp-server
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Alpaca Trading MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/alpaca-mcp-server-mardiantos)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.