MCP.so
登录

Alpaca Trading MCP Server

@MardiantoS

关于 Alpaca Trading MCP Server

暂无概览

基本信息

分类

金融与商务

许可证

MIT license

运行时

python

传输方式

stdio

发布者

MardiantoS

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "alpaca-mcp-server-mardiantos": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

评论

金融与商务 分类下的更多 MCP 服务器