---
title: "Alpaca"
url: "https://agentconnectors.dev/tools/alpaca"
updated: "2026-10-14"
source_url: "https://github.com/modelcontextprotocol/servers/blob/e6b0b0f5d355530ebdd09bc547240e556fbc6c19/README.md"
---

# Alpaca

Alpaca is an MCP server. Alpaca's MCP server lets an agent trade stocks and options, analyze market data, and build strategies through Alpaca's Trading API.

- Category: [Finance and markets](https://agentconnectors.dev/categories/finance)
- Collection: Official integration
- Status: active
- Publisher: Unknown. Not confirmed from the repository org, a registry namespace, or a redirect. Unknown is the default. Source: https://github.com/modelcontextprotocol/servers/blob/e6b0b0f5d355530ebdd09bc547240e556fbc6c19/README.md
- Kind: mcp-server
- Listing: https://github.com/alpacahq/alpaca-mcp-server
- Repository: https://github.com/alpacahq/alpaca-mcp-server
- Homepage: https://alpaca.markets
- Package: Not listed
- Successor: Not listed
- Source: https://github.com/modelcontextprotocol/servers/blob/e6b0b0f5d355530ebdd09bc547240e556fbc6c19/README.md
- Page: https://agentconnectors.dev/tools/alpaca
- JSON: https://agentconnectors.dev/api/tools/alpaca.json
- Labels: none.

Paid placements are labelled Featured or Sponsored. An Enriched badge means we applied the owner-supplied description and links after a link check on those URLs. Ownership confirmation is optional. It does not mean functionality testing, a security audit, an endorsement, a ranking, or guaranteed traffic, leads, citations, or revenue.

## Connect it

from vendor docs, not tested by us

Configuration validation checks that these snippets parse and include every environment variable named in the Auth fact. It is not a connection test.

Source: https://github.com/alpacahq/alpaca-mcp-server/blob/HEAD/README.md

- Env vars named in the local snippet: ALPACA_API_KEY, ALPACA_SECRET_KEY

### Claude Desktop (local)

```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 (local)

```
claude mcp add alpaca -e ALPACA_API_KEY="your_alpaca_api_key" -e ALPACA_SECRET_KEY="your_alpaca_secret_key" -- uvx alpaca-mcp-server
```

### Cursor (local)

```json
{
  "mcpServers": {
    "alpaca": {
      "command": "uvx",
      "args": [
        "alpaca-mcp-server"
      ],
      "env": {
        "ALPACA_API_KEY": "your_alpaca_api_key",
        "ALPACA_SECRET_KEY": "your_alpaca_secret_key"
      }
    }
  }
}
```

### VS Code (local)

```json
{
  "servers": {
    "alpaca": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "alpaca-mcp-server"
      ],
      "env": {
        "ALPACA_API_KEY": "your_alpaca_api_key",
        "ALPACA_SECRET_KEY": "your_alpaca_secret_key"
      }
    }
  }
}
```

Added 2026-10-14.

## Related in Finance and markets

- [AlphaVantage](https://agentconnectors.dev/tools/alphavantage)
- [Armor Crypto MCP](https://agentconnectors.dev/tools/armor-crypto-mcp)
- [Bankless Onchain](https://agentconnectors.dev/tools/bankless-onchain)
- [Behavioural Prediction](https://agentconnectors.dev/tools/behavioural-prediction)
- [BICScan](https://agentconnectors.dev/tools/bicscan)
- [Coinex](https://agentconnectors.dev/tools/coinex)
