By alpacahq
Alpaca MCP plugins for Claude Code, with Trading, Market Data, and Broker API access.
npx claudepluginhub alpacahq/agenticConnects Claude Code to Alpaca's Trading and Market Data APIs over OAuth-protected MCP.
Connects Claude Code to Alpaca's Broker API over OAuth-protected MCP.
7-day visitors to each marketplace page
Connect AI agents to Alpaca's Trading API, Market Data API, and Broker API through hosted plugins, remote MCP servers, a local Trading MCP server, or the Alpaca Trading CLI.
| Option | Best for | Setup |
|---|---|---|
| Agent plugins | Hosted MCP setup in Cursor, Claude Code, and Codex | Install plugins |
| Manual remote MCP | Hosted OAuth MCP setup in supported clients, including VS Code for Broker MCP | Configure remote MCP |
| Local Trading MCP | Running Trading and Market Data API tools locally with API keys | Run locally |
| Alpaca Trading CLI | Terminal, scripts, CI, and focused agent actions | Use the CLI |
Use Trading MCP for an individual Alpaca trading account and market data. Use Broker MCP if you're a broker partner building and operating end-customer investing experiences.
Plugins are the easiest way to connect Cursor, Claude Code, or Codex to Alpaca's hosted OAuth-protected MCP endpoints. No API keys to copy around — sign in with your Alpaca account on first use.
| Plugin | Bundled MCP servers |
|---|---|
alpaca-trading | Trading API (live), Trading API (paper) |
alpaca-broker | Broker API (live), Broker API (sandbox) |
| MCP server | Endpoint |
|---|---|
alpaca-trading | https://api.alpaca.markets/mcp |
alpaca-trading-paper | https://paper-api.alpaca.markets/mcp |
alpaca-broker | https://broker-api.alpaca.markets/mcp |
alpaca-broker-sandbox | https://broker-api.sandbox.alpaca.markets/mcp |
Both Trading MCP servers expose Market Data API tools alongside trading tools, so a single connection covers account, order, position, portfolio, and market data workflows.
Install one or both plugins depending on whether you're building trading or broker workflows.
[!NOTE] Hosted MCP access currently supports Cursor, Claude Code, and Codex through plugins. We're currently working on providing our plugins and MCP servers to as many of our users as possible. To request support for another client, open an issue and we will get that sorted as soon as we can.
Cmd + Shift + P (macOS) or Ctrl + Shift + P (Windows/Linux).Open Customize, then click Browse Marketplace.https://github.com/alpacahq/agentic.alpaca-trading, alpaca-broker, or both.Start one of the installed MCP servers to complete its browser-based OAuth flow.
claude plugin marketplace add alpacahq/agentic
Start a Claude Code session and run /plugin. Select the alpaca-plugins marketplace, browse its plugins, and install alpaca-trading, alpaca-broker, or both. Run /reload-plugins, then use /mcp to start a server and complete its OAuth flow.
codex plugin marketplace add alpacahq/agentic
Install plugins from the alpaca-plugins marketplace, then complete the OAuth flow:
codex mcp login <mcp-name>
If you don't want to use a plugin, copy the JSON for your client below. Use only that client's configuration because each client has its own sign-in settings.
{
"mcpServers": {
"alpaca-trading": {
"url": "https://api.alpaca.markets/mcp",
"auth": {
"CLIENT_ID": "PCBXWA7PCN3S6662PZK44KLURJ"
}
},
"alpaca-trading-paper": {
"url": "https://paper-api.alpaca.markets/mcp",
"auth": {
"CLIENT_ID": "PCBXWA7PCN3S6662PZK44KLURJ"
}
}
}
}
{
"mcpServers": {
"alpaca-trading": {
"type": "http",
"url": "https://api.alpaca.markets/mcp"
},
"alpaca-trading-paper": {
"type": "http",
"url": "https://paper-api.alpaca.markets/mcp"
}
}
}
{
"mcpServers": {
"alpaca-trading": {
"url": "https://api.alpaca.markets/mcp",
"oauth": {
"client_id": "PCIEJZTPCQEBUBAINMQOGDHF7I"
}
},
"alpaca-trading-paper": {
"url": "https://paper-api.alpaca.markets/mcp",
"oauth": {
"client_id": "PCIEJZTPCQEBUBAINMQOGDHF7I"
}
}
}
}
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering
Claude Code marketplace entries for the plugin-safe Agentic Awesome Skills library and its compatible editorial bundles.
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations