alpaca-guard

alpaca-guard is an MCP server for Claude Code, Codex, Cursor, Gemini CLI, OpenCode from evidai/agent-payment-mcp. Its token cost is not measured, scanned A, original, MIT.

A local connector for the Alpaca trading API, a service for placing and managing trades. It uses paper trading by default, with live trading requiring an explicit choice and a hard daily USD cap.

In plain words
What is it for?
Use it to connect an agent to Alpaca for paper trading or deliberately enabled live trading. It requires an Alpaca API key and secret key.
Why use it?
It helps limit the amount that can be traded in one day and reduces the risk of accidentally sending real orders. It also avoids manually wiring the Alpaca connection into the coding agent.

MCP server for Claude CodeCodexCursorGemini CLIOpenCode

Written for no agent in particular: it speaks MCP, so any client can run it.

One of 4 entries in server.json upstream. Installing this one merges just its entry into your config; the other 3 are separate, each on its own page.

Good fit Use it to connect an agent to Alpaca for paper trading or deliberately enabled live trading. It requires an Alpaca API key and secret key.

Compare 6 mcp servers from other repositories ↓
Install with agentmods
npx agentmods add mcp/evidai/agent-payment-mcp/alpaca-guard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/evidai/agent-payment-mcp

Made for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alpaca-guard

README.md
[![agentmods](https://agentmods.dev/badge/mcp/evidai/agent-payment-mcp/alpaca-guard/github.svg)](https://agentmods.dev/mcp/evidai/agent-payment-mcp/alpaca-guard)
Your own site
<a href="https://agentmods.dev/mcp/evidai/agent-payment-mcp/alpaca-guard"><img src="https://agentmods.dev/badge/mcp/evidai/agent-payment-mcp/alpaca-guard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alpaca-guard

Your own site · 80×15
<a href="https://agentmods.dev/mcp/evidai/agent-payment-mcp/alpaca-guard"><img src="https://agentmods.dev/badge/mcp/evidai/agent-payment-mcp/alpaca-guard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

alpaca-guard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

alpaca-guard-mcp/server.json · 13 lines

What it actually says

{
  "alpaca-guard": {
    "command": "npx",
    "args": [
      "-y",
      "alpaca-guard-mcp"
    ],
    "env": {
      "ALPACA_API_KEY": "",
      "ALPACA_SECRET_KEY": ""
    }
  }
}
Same file

What else server.json configures

This page is one entry in a file that holds 4. Installing the file brings all of them; each is measured and scanned on its own page.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 13 lines scan A d05db3e88bf2

Subscribe to this mod's changes

alpaca-guard is an MCP server published in the GitHub repository evidai/agent-payment-mcp (3 stars, last pushed 2mo ago), licensed MIT. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other mcp servers, from other repositories

mcp-server

Agent payment infrastructure MCP server. Give AI agents autonomous payment capability — stablecoin transfers, currency swaps, agent wallets, and fiat operations on Hedera. Works with Claude, LangChain, CrewAI, AutoGPT. Runs locally from the @bananacrystal/mcp-server npm package.

BananaCrystal/mcp-server-bananacrystal · not measured

stipend

Non-custodial USDC wallet on Base with spending limits enforced in code, not in a prompt. Runs locally from the stipend npm package.

stipend-sh/stipend · not measured

p402

Multi-provider AI router with x402 micropayment settlement on Base L2. 1% flat fee. Runs locally from the @p402/mcp-server npm package. Needs 2 environment variables to run.

Z333Q/p402-protocol · not measured

onchain-agent-wallets

Give an AI agent a Solana spending allowance instead of your key. Chain-enforced cap, x402. Runs locally from the @three-ws/onchain-agent-wallets npm package. Needs 5 environment variables to run.

nirholas/onchain-agent-wallets · not measured

agentpay

Budget-capped x402 payments for AI agents: verifiable receipts, trust routing, 17 free tools. Runs locally from the @romudille/agentpay-mcp npm package. Needs 2 environment variables to run.

romudille-bit/agentpay · not measured

agentpay

AgentPay — the economic-intelligence layer for AI agents: budget-capped tool calls with verifiable receipts, plus verifiedroute buyer-side x402 trust routing. 17 tools free to start, no keys; set AGENTPAYBASEKEY to settle paid tools in-place (gasless E. Runs locally from the @romudille/agentpay-mcp npm package.

romudille-bit/agentpay · not measured