How to Use the Alpaca Trading MCP in Claude Code
Run Alpaca Trading straight from your terminal. Claude Code executes trades and pulls market data directly in your shell.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Alpaca Trading MCP to Claude Code
Create your Vinkius account to connect Alpaca Trading to Claude Code and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Command-line market execution
Fire off trades without ever leaving your SSH session. You can pipe a ticker symbol into Claude Code, and it runs `create_order` to buy the asset. Need to clear your book fast? One prompt triggers `delete_all_orders` to wipe every open position. This MCP setup thrives in automated environments. You can trigger buy/sell scripts from a cron job or a GitHub Action based on external webhooks. The terminal agent handles the API handshakes in the background.
Terminal-native market data
Building financial data pipelines usually requires heavy SDKs. Now you just ask your CLI to pull `get_stocks_bars` and dump the output into a local CSV. It grabs historical pricing and formats it exactly how your bash script needs it. Real-time monitoring is just as easy. You can write a loop that hits `get_latest_stocks_trades` every minute and alerts you via standard output if volume spikes.
Manage the Alpaca Trading MCP Server via CLI
Brokerage administration belongs in the terminal alongside your other infrastructure. Run a command to trigger `update_account_configs` and adjust trading limits across your entire firm. Creating new accounts is entirely scriptable. The agent uses `create_broker_account` to push identity and disclosure JSON payloads directly to the brokerage. Nobody has to log into a web portal.
Set up Alpaca Trading MCP in Claude Code
Prerequisites
- Claude Code CLI installed (
npm install -g @anthropic-ai/claude-code) - Active Vinkius subscription with a valid endpoint token
- 1
Run the add command
Open your terminal and run the command shown on the right. Replace
[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. Use--scope userto make it available across all projects. - 2
Verify the connection
Start a Claude Code session and type
/mcpto list connected servers. You should seealpaca-trading-mcpwith a green status indicator. - 3
Start using tools
Ask Claude Code something like "Check my latest Alpaca Trading transactions." It will automatically discover and invoke the available Alpaca Trading tools.
claude mcp add --transport http alpaca-trading-mcp https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Alpaca Trading MCP in Claude Code
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Alpaca Trading MCP today
We host it, we monitor it, we maintain it. You just paste one token.