modelscope·@dogmaai/alpaca-mcp-server
暂无描述。
<a href="https://x.com/alpacahq?lang=en" target="_blank"><img src="https://img.shields.io/badge/X-DCDCDC?logo=x&logoColor=000" alt="X"></a> <a href="https://www.reddit.com/r/alpacamarkets/" target="_blank"><img src="https://img.shields.io/badge/Reddit-DCDCDC?logo=reddit&logoColor=000" alt="Reddit"></a> <a href="https://alpaca.markets/slack" target="_blank"><img src="https://img.shields.io/badge/Slack-DCDCDC?logo=slack&logoColor=000" alt="Slack"></a> <a href="https://www.linkedin.com/company/alpacamarkets/" target="_blank"><img src="https://img.shields.io/badge/LinkedIn-DCDCDC" alt="LinkedIn"></a> <a href="https://forum.alpaca.markets/" target="_blank"><img src="https://img.shields.io/badge/Forum-DCDCDC?logo=discourse&logoColor=000" alt="Forum"></a> <a href="https://docs.alpaca.markets/docs/getting-started" target="_blank"><img src="https://img.shields.io/badge/Docs-DCDCDC" alt="Docs"></a> <a href="https://alpaca.markets/sdks/python/" target="_blank"><img src="https://img.shields.io/badge/Python_SDK-DCDCDC?logo=python&logoColor=000" alt="Python SDK"></a>
</div> <p align="center"> A comprehensive Model Context Protocol (MCP) server for Alpaca's Trading API. Enable natural language trading operations through AI assistants like Claude, Cursor, and VS Code. Supports stocks, options, crypto, portfolio management, and real-time market data. </p>You need the following prerequisites to configure and run the Alpaca MCP Server.
python3 --version in Terminal)uv can be installed either through a package manager (like Homebrew) or directly using curl | sh.Note: Using an MCP server requires installation and configuration of both the MCP server and MCP client.
Note: These steps assume all Prerequisites have been installed.
uvx or install.py see Claude Desktop Configurationinstall.py to set up and auto-configure Cursor see Cursor Configurationuvx see VS Code Configurationuvx see PyCharm Configurationuvx or Docker see Claude Code Configurationuvx see Gemini CLI ConfigurationNote: How to show hidden files
ls -aTo enable live trading with real funds or switch between different accounts, update API credentials in two places:
.env file (used by MCP server)Important: The MCP client configuration overrides the .env file. When using an MCP client, the credentials in the client's JSON config take precedence.
Method 1: Run the init command again to update your .env file
# Follow the prompts to update your keys and toggle paper/live trading
uvx alpaca-mcp-server init
Method 2: Manually Update
ALPACA_API_KEY = "your_alpaca_api_key_for_live_account"
ALPACA_SECRET_KEY = "your_alpaca_secret_key_for_live_account"
ALPACA_PAPER_TRADE = False
TRADE_API_URL = None
TRADE_API_WSS = None
DATA_API_URL = None
STREAM_DATA_WSS = None
</details>
<details>
<summary><b>Step 2: Update MCP Client Config Json file</b></summary>
Step 2-1: Edit your MCP client configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json (Mac) or %APPDATA%\Claude\claude_desktop_config.json (Windows)~/.cursor/mcp.json.vscode/mcp.json (workspace) or user settings.jsonStep 2-2: Update the API keys in the env section:
F…