金融 · 开发者工具

Alpaca MCP Server

alpacahq/alpaca-mcp-server

Alpaca MCP服务器是一个实现Alpaca交易API的模型上下文协议(MCP)服务,允许大型语言模型通过自然语言与Alpaca交易系统交互,支持股票/期权交易、投资组合管理和实时市场数据获取。

安装

uvx alpaca-mcp-server

客户端配置

{
  "mcpServers": {
    "alpaca": {
      "command": "uvx",
      "args": [
        "alpaca-mcp-server"
      ],
      "env": {
        "ALPACA_API_KEY": "<ALPACA_API_KEY>",
        "ALPACA_SECRET_KEY": "<ALPACA_SECRET_KEY>"
      }
    }
  }
}

环境变量

ALPACA_API_KEYALPACA_SECRET_KEY
作者
@alpacahq
分类
金融, 开发者工具
更新于
2026年10月6日

工具(40)

  • get_account_info

    Balance, margin, and account status

  • get_account_config

    Trading restrictions, margin settings, PDT checks

  • update_account_config

    Update account configuration settings

  • get_portfolio_history

    Equity and P/L over time

  • get_account_activities

    Fills, dividends, transfers

  • get_account_activities_by_type

    Activities filtered by type

  • get_orders

    Retrieve orders with filters

  • get_order_by_id

    Single order by ID

  • get_order_by_client_id

    Single order by client order ID

  • replace_order_by_id

    Replace an existing open order

  • cancel_order_by_id

    Cancel a specific order

  • cancel_all_orders

    Cancel all open orders

  • place_stock_order

    Stocks/ETFs (market, limit, stop, stop-limit, trailing-stop, brackets)

  • place_crypto_order

    Crypto (market, limit, stop-limit)

  • place_option_order

    Options (single-leg or multi-leg)

  • get_all_positions

    All current positions

  • get_open_position

    Details for a specific position

  • close_position

    Close a specific position

  • close_all_positions

    Liquidate entire portfolio

  • exercise_options_position

    Exercise a held option contract

  • do_not_exercise_options_position

    Do-not-exercise instruction

  • create_watchlist

    Create a new watchlist

  • get_watchlist_by_id

    Get a specific watchlist

  • update_watchlist_by_id

    Update a watchlist

  • delete_watchlist_by_id

    Delete a watchlist

  • add_asset_to_watchlist_by_id

    Add an asset to a watchlist

  • remove_asset_from_watchlist_by_id

    Remove an asset from a watchlist

  • get_asset

    Detailed info for a specific asset

  • get_option_contracts

    Option contracts for underlying symbol(s)

  • get_option_contract

    Single option contract by symbol or ID

  • get_calendar

    Market calendar for a date range

  • get_clock

    Current market status and next open/close

  • get_corporate_action_announcements

    Corporate action announcements

  • get_corporate_action_announcement

    Single announcement by ID

  • get_stock_bars

    Historical OHLCV bars

  • get_stock_quotes

    Historical bid/ask quotes

  • get_stock_trades

    Historical trades

  • get_stock_latest_bar

    Latest minute bar

  • get_stock_latest_quote

    Latest quote

  • get_stock_latest_trade

    Latest trade

本页信息摘自该项目的 README。 查看 README

支持的客户端

该服务器 README 中提到的客户端:

查看全部
Claude Desktop logo

Claude Desktop

桌面端 · 免费增值 · Proprietary

Anthropic 官方推出的 Claude AI 桌面应用程序。支持 MCP 服务器以扩展功能。

WindowsMacOS
Cursor logo

Cursor

桌面端 · 免费增值 · Proprietary

首个代理式 IDE。Cursor 编辑器让开发者与 AI 的工作真正融合在一起,提供如魔法般的编码体验。

WindowsMacOSLinux
VS Code GitHub Copilot logo

VS Code GitHub Copilot

桌面端 · 免费增值 · MIT

VS Code 通过代理模式将 MCP 与 GitHub Copilot 集成,允许在你的代理编码工作流中直接与 MCP 提供的工具交互。在 Claude Desktop、工作区或用户设置中配置服务器,提供引导式 MCP 安装和安全处理输入变量中的密钥,避免泄露硬编码密钥。

WindowsMacOSLinuxWeb

相关 MCP 服务器

更多服务器
Stripe Agent Toolkit logo

Stripe Agent Toolkit

stripe/agent-toolkit

677

Stripe Agent Toolkit是一个支持多种AI代理框架(如OpenAI、LangChain、CrewAI等)与Stripe API集成的工具包,提供Python和TypeScript支持,简化支付相关操作。

金融
Awesome Web3 MCP Servers logo

Awesome Web3 MCP Servers

demcp/awesome-web3-mcp-servers

405

这是一个关于Web3 Model Context Protocol (MCP) 服务器的精选列表,涵盖了链交互、交易、DeFi、市场数据、工具和社交等多个类别。MCP是一个开放协议,标准化了应用程序如何向LLM提供上下文,类似于AI应用程序的USB-C端口。DeMCP是第一个去中心化的MCP网络,专注于为代理提供自研和开源的MCP服务,支持加密支付,并结合TEE和区块链注册表重新定义了MCP的安全性和可靠性。

金融
Financial Datasets logo

Financial Datasets

financial-datasets/mcp-server

225

一个提供金融市场数据的MCP服务器,支持查询股票和加密货币的财务数据与价格信息

金融
lyraios logo

lyraios

GalaxyLLMCI/lyraios

216

LYRAIOS是一个基于模型上下文协议(MCP)的多AI代理操作系统,旨在通过连接金融网络和区块链公链扩展AI应用功能,提供区块链操作、金融科技分析和教育学习等服务。

金融
EVM Blockchain logo

EVM Blockchain

mcpdotdirect/evm-mcp-server

216

一个支持多链交互的EVM兼容区块链服务MCP服务器,提供统一的区块链操作接口,支持30+网络和ENS解析。

金融
longport logo

longport

longportapp/openapi

206

LongPort OpenAPI SDK 提供程序化交易和行情接口,支持多种编程语言,帮助开发者构建投资策略分析和交易工具。

金融