Skip to content
MCP server

Alpaca Guard

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

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.1.1
Listing updated
5 days ago

About Alpaca Guard

Alpaca Guard is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a 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

Add to claude_desktop_config.json

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

Add to ~/.cursor/mcp.json

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

Add to .vscode/mcp.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>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

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

Add to your client's MCP settings (most use this shape)

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

Using several servers? Build one config file with the MCP config generator.

Configuration

  • ALPACA_API_KEYAlpaca API key. Leave unset for paper trading mode.
  • ALPACA_SECRET_KEYAlpaca secret key.

Pricing

Open source

Alpaca Guard 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.

How AIPoweredBot checks servers