AITeamGuide Hub · MCP server
Alpaca MCP server
Alpaca's official MCP server for trading stocks, ETFs, crypto and options and pulling market data in plain English.
MCP server★ 1.1k starsArchived on GitHubMITFinance & accounting
Short answer: how to install Alpaca MCP server
Alpaca MCP server is an MIT-licensed, open-source MCP server on GitHub (alpacahq/alpaca-mcp-server) with 1,142 stars as of December 2, 2026. Its last push was on November 24, 2026. To install it in Claude Code, run claude mcp add --transport stdio alpaca --env ALPACA_API_KEY=your_alpaca_api_key --env ALPACA_SECRET_KEY=your_alpaca_secret_key -- uvx alpaca-mcp-server. Replace the placeholder API keys or tokens with your own. It works with Claude Desktop, Claude Code, Cursor, VS Code, Any MCP client; steps for each are below.
Key facts
- Type
- MCP server
- Jobs it fits
- Place trades; Pull market data
- Fields
- Finance & accounting
- Works with
- Claude Desktop, Claude Code, Cursor, VS Code, Any MCP client
- Licence
- MIT
- Stars
- 1,142 as of December 2, 2026
- Last updated
- November 24, 2026 (last push to GitHub)
- Author
- @alpacahq
- Submitted by
- @aiteamguide
- Added to the Hub
- October 21, 2026
Can place real trades. Start with a paper-trading account.
Install / Use it
MITLocal MCP server
Cursor
Replace the placeholder values (API keys, tokens) with your own after adding it.
Or paste into ~/.cursor/mcp.json
{
"mcpServers": {
"alpaca": {
"command": "uvx",
"args": [
"alpaca-mcp-server"
],
"env": {
"ALPACA_API_KEY": "your_alpaca_api_key",
"ALPACA_SECRET_KEY": "your_alpaca_secret_key"
}
}
}
}Claude Code
Run in your terminal
claude mcp add --transport stdio alpaca --env ALPACA_API_KEY=your_alpaca_api_key --env ALPACA_SECRET_KEY=your_alpaca_secret_key -- uvx alpaca-mcp-serverReplace the placeholder values (API keys, tokens) with your own after adding it.
Claude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude
{
"mcpServers": {
"alpaca": {
"command": "uvx",
"args": [
"alpaca-mcp-server"
],
"env": {
"ALPACA_API_KEY": "your_alpaca_api_key",
"ALPACA_SECRET_KEY": "your_alpaca_secret_key"
}
}
}
}Replace the placeholder values (API keys, tokens) with your own after adding it.
VS Code
Replace the placeholder values (API keys, tokens) with your own after adding it.
Or from the command line
code --add-mcp '{"name":"alpaca","type":"stdio","command":"uvx","args":["alpaca-mcp-server"],"env":{"ALPACA_API_KEY":"your_alpaca_api_key","ALPACA_SECRET_KEY":"your_alpaca_secret_key"}}'Codex
Run in your terminal
codex mcp add alpaca --env ALPACA_API_KEY=your_alpaca_api_key --env ALPACA_SECRET_KEY=your_alpaca_secret_key -- uvx alpaca-mcp-serverReplace the placeholder values (API keys, tokens) with your own after adding it.
Safety: Runs code from a third-party repo. Review the source and the permissions before installing.
Commands and configs are taken from the project's README and re-wrapped in each app's documented format. If they differ, the README wins.
How to add MCP servers in your app, step by step: Claude Code · Cursor · VS Code · Claude Desktop · Codex · Gemini CLI · Copilot CLI · OpenCode · Cline · Roo Code · Kilo Code · Zed · LM Studio · Antigravity · Windsurf · Hermes Agent · ChatGPT.
FAQ
How do I add Alpaca MCP server to Claude Code?
Run claude mcp add --transport stdio alpaca --env ALPACA_API_KEY=your_alpaca_api_key --env ALPACA_SECRET_KEY=your_alpaca_secret_key -- uvx alpaca-mcp-server in your terminal.
How do I add Alpaca MCP server to Codex?
Run codex mcp add alpaca --env ALPACA_API_KEY=your_alpaca_api_key --env ALPACA_SECRET_KEY=your_alpaca_secret_key -- uvx alpaca-mcp-server in your terminal.
How do I add Alpaca MCP server to Cursor?
Use the Add to Cursor button in the install panel on this page, or paste this entry under mcpServers in ~/.cursor/mcp.json: {"alpaca":{"command":"uvx","args":["alpaca-mcp-server"],"env":{"ALPACA_API_KEY":"your_alpaca_api_key","ALPACA_SECRET_KEY":"your_alpaca_secret_key"}}}.
Does Alpaca MCP server need an API key?
Yes. The README's setup passes ALPACA_API_KEY, ALPACA_SECRET_KEY as environment variables; replace the placeholder values with your own.
Is Alpaca MCP server free?
The code is open source under the MIT licence, so it's free to use. Our note: Can place real trades. Start with a paper-trading account.
Is Alpaca MCP server still maintained?
Its last push to GitHub was on November 24, 2026, and it had 1,142 stars as of December 2, 2026. We re-check GitHub daily.
Prefer a ready-made product?
Commercial agents for the same job, with real prices: Ramp, all bookkeeping & finance agents.
Get new open-source AI tools like Alpaca MCP server in one weekly email
One email a week: new open-source agents, skills, MCP servers and playbooks from the Hub, plus AI agent price changes and new free plans. Free; unsubscribe anytime.
Free, no signup needed: the AI agent pricing cheat sheet, the cheapest listed plan for every job on one printable page.
More from the Hub
-
Agent
TradingAgents
A research framework where analyst, researcher and trader agents debate a stock before a simulated decision.
Finance & accounting · Research★ 124k
-
Agent
AI Hedge Fund
An educational project where agents modelled on investor styles analyse stocks and propose simulated trades.
Finance & accounting · Research★ 65k
-
MCP server
Stripe AI toolkit
Stripe's official repo for its hosted MCP server, agent toolkit and skills for working with payments, customers and invoices.
Finance & accounting · Software development★ 2.1k
-
MCP server
QuickBooks Online MCP
Intuit's MCP server that exposes QuickBooks Online data (customers, invoices, bills, reports) as tools.
Finance & accounting★ 463
Summary written by AITeamGuide in our own words. GitHub numbers come from the public GitHub API and refresh daily. Maintainer and want a correction or removal? Tell us. Got something similar? Submit it to the Hub.
Featured in our guide: Best MCP servers for finance and accounting.