MCP.so
登录

Alpaca MCP Server

@tedlikeskix

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

tedlikeskix

关于 Alpaca MCP Server

Model Context Protocol (MCP) server for Alpaca trading API

Alpaca MCP Server 配置

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

{
  "mcpServers": {
    "alpaca-mcp-server": {
      "command": "python",
      "args": [
        "alpaca_mcp_server.py"
      ]
    }
  }
}

Alpaca MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

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

概览

What is Alpaca MCP Server?

Alpaca MCP Server is a Model Context Protocol (MCP) server that enables 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 information.

How to use Alpaca MCP Server?

Install Python 3.10+, Alpaca API keys, and an MCP client. Clone the repository, install required packages (mcp, alpaca-py, python-dotenv), create a .env file with your API credentials, and run python alpaca_mcp_server.py. Configure Claude for Desktop by adding the server to claude_desktop_config.json with the API keys.

Key features of Alpaca MCP Server

  • Real‑time stock quotes and historical price bars
  • Account balances, buying power, and status checks
  • View current portfolio positions and performance
  • Place market and limit orders via natural language
  • List, track, and cancel open orders

Use cases of Alpaca MCP Server

  • Check your current account balance and buying power
  • View all open positions in your portfolio
  • Get the latest stock quote or historical price data
  • Place a market or limit order through conversation
  • Cancel all open orders or close all positions

常见问题

1

What API credentials are required?

You need an Alpaca API key ID and secret key, which can be set in a `.env` file or directly in the `claude_desktop_config.json` environment variables.

2

Can I use real money trading?

The server uses Alpaca's paper trading by default. To switch to real money trading, change `paper=True` to `paper=False` inside the `TradingClient` initialization.

3

Which MCP clients are supported?

The README explicitly shows configuration for Claude for Desktop, but the server should work with any MCP client.

4

How do I run the server?

After installing dependencies and setting up credentials, run `python alpaca_mcp_server.py` from the project directory.

5

Are there any security considerations?

Yes, the MCP server has access to your Alpaca account and can place real trades. Always review suggestions before approving any trades.

评论

其他 分类下的更多 MCP 服务器