# Alpaca Guard

> Alpaca Guard is an open-source MCP server. Alpaca trading API with hard daily USD cap guard. Paper trading default; live opt-in. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/evidai/agent-payment-mcp
- **MCP Registry name:** io.github.evidai/alpaca-guard
- **Listing updated:** 2026-11-13

## About

Alpaca trading API with hard daily USD cap guard. Paper trading default; live opt-in.

## Install

### Claude Code (Terminal)

```sh
claude mcp add alpaca-guard --env ALPACA_API_KEY='<ALPACA_API_KEY>' --env ALPACA_SECRET_KEY='<ALPACA_SECRET_KEY>' -- npx -y alpaca-guard-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "alpaca-guard": {
      "command": "npx",
      "args": [
        "-y",
        "alpaca-guard-mcp"
      ],
      "env": {
        "ALPACA_API_KEY": "<ALPACA_API_KEY>",
        "ALPACA_SECRET_KEY": "<ALPACA_SECRET_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "alpaca-guard": {
      "command": "npx",
      "args": [
        "-y",
        "alpaca-guard-mcp"
      ],
      "env": {
        "ALPACA_API_KEY": "<ALPACA_API_KEY>",
        "ALPACA_SECRET_KEY": "<ALPACA_SECRET_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "alpaca-guard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "alpaca-guard-mcp"
      ],
      "env": {
        "ALPACA_API_KEY": "<ALPACA_API_KEY>",
        "ALPACA_SECRET_KEY": "<ALPACA_SECRET_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "alpaca-guard": {
      "command": "npx",
      "args": [
        "-y",
        "alpaca-guard-mcp"
      ],
      "env": {
        "ALPACA_API_KEY": "<ALPACA_API_KEY>",
        "ALPACA_SECRET_KEY": "<ALPACA_SECRET_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "alpaca-guard": {
      "command": "npx",
      "args": [
        "-y",
        "alpaca-guard-mcp"
      ],
      "env": {
        "ALPACA_API_KEY": "<ALPACA_API_KEY>",
        "ALPACA_SECRET_KEY": "<ALPACA_SECRET_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Alpaca Guard free?

Yes. Alpaca Guard is open source, so you can use and self-host it for free.

### How do I add Alpaca Guard to Claude Code?

Run this command in your terminal: claude mcp add alpaca-guard --env ALPACA_API_KEY='<ALPACA_API_KEY>' --env ALPACA_SECRET_KEY='<ALPACA_SECRET_KEY>' -- npx -y alpaca-guard-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/alpaca-guard
