Guardian MCP
Guardian MCP
Guardian MCPは、Alpacaのペーパートレード向けのポリシー制約型AIトレーディングゲートウェイです。AIエージェントは株式、ETF、暗号資産のトレードを提案できますが、トレードがブロックされるか、人間のレビュー用に承認されるか、Alpacaのペーパートレードに提出されるかは、決定論的なルールが決定します。
なぜこれが必要か
ほとんどのAIトレーディングデモは、モデルに過度の権限を与えています。Guardianはワークフローを分離します:
AI proposes a TradeIntent
Guardian validates the intent
Policy engine approves or blocks
Alpaca paper trading receives only approved low-risk orders
Every decision becomes an audit receiptRelated MCP server: alpaca-mcp-server
現在の対応範囲
米国株およびETF
Alpacaの暗号資産ペア(
BTC/USD、ETH/USD、SOL/USDを含む)ペーパートレードのみ
APIキーがない場合のAlpacaのモック実行
最初のデモ用のローカルJSON監査ログ
ペーパートレード限定の安全ゲートのための公式Alpaca Skillsとの整合
はじめに
npm install
npm run devhttp://localhost:3000 を開いてください。
Alpacaのペーパートレードに接続するには、.env.local を作成してください:
ALPACA_API_KEY=your_key
ALPACA_SECRET_KEY=your_secret
ALPACA_PAPER_BASE_URL=https://paper-api.alpaca.markets
ALPACA_PAPER_TRADE=true
TELEGRAM_BOT_TOKEN=your_botfather_tokenAlpacaの公式スキルも APCA_API_KEY_ID と APCA_API_SECRET_KEY を使用します。Guardianもこれらの名前をサポートしています。
APIキーをチャットに貼り付けたり、コミットしたりしないでください。GuardianはAlpacaのライブ取引設定をブロックし、ペーパートレードのみをサポートします。
デモの流れ
モックのAIトレード提案を選択します。
ガードを実行します。
許可されたトレードが、モックまたは実際のAlpacaペーパートレードに提出されることを確認します。
ブロックされたトレードが、正確なポリシー理由とともに記録されることを確認します。
Telegramボット
Guardianは、チャットファーストのデモ用にTelegramボットとしても実行できます:
npm run telegramボットコマンド:
/account
/portfolio
/policy
/preview buy SOL/USD 50
/confirm guardian-tg-...このボットはロングポーリングを使用するため、Vercelではなくお使いのGoogle VM上で実行する必要があります。このボットが黙って提出することはありません。/preview がペーパー注文のプレビューを作成し、GuardianがAlpacaのペーパートレードに提出するには /confirm が必要です。
VM上で別のプロセスと並行して実行するには:
pm2 start npm --name guardian-telegram -- run telegram
pm2 saveポリシーのデフォルト
ペーパートレード限定モード
最大取引想定元本:
$500人による承認が必要な金額:
$100以上1日の最大損失:
2%ポジションの最大エクスポージャー:
15%暗号資産取引の最大想定元本:
$100暗号資産ポートフォリオの最大エクスポージャー:
20%暗号資産のクールダウン:
15 minutes
ハッカソンピッチ
Guardian MCPは、モデルにアカウントへの無制限の制御を与えることなく、AIトレーディングエージェントがAlpacaを通じて運用できるようにします。モデルはトレードを調査して提案できます。Guardianは実行前に決定論的なユーザーポリシーを適用し、すべての決定を再生可能な監査証跡に記録します。
Alpaca Skills
このリポジトリは、Alpacaの公式エージェントスキルに整合しています。ペーパートレードのガードレールと残りのAlpaca固有の作業については、docs/alpaca-skills.md を参照してください。
MCPサーバー
Guardianには独自のMCPサーバーが含まれています:
npm run mcpツール名とMCPクライアントの設定については、docs/mcp.md を参照してください。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to execute stock trading operations with built-in risk controls and human approval workflows. Supports paper trading simulation, real brokerage integration (Alpaca, Tradier), backtesting, sentiment analysis, and portfolio management while maintaining strict separation between AI intelligence and trade execution.MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language trading operations for stocks, options, crypto, and portfolio management via Alpaca's Trading API through AI assistants.MIT
- AlicenseBqualityAmaintenanceProvides a safe trading toolkit for AI agents with market data, indicators, paper trading, and guarded broker integration.63MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to analyze Ethereum wallets, simulate transactions, and draft transfers with deterministic policy and risk scoring, requiring human approval before on-chain execution.2ISC
Related MCP Connectors
Build, backtest, and deploy quantitative trading strategies from your AI agent.
No-KYC managed MCP for AI agents: sandboxed TypeScript trading SDK, isolated sub-accounts, futures.
Deterministic compliance and vertical knowledge bases for autonomous agents. Free 24hr trial.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Dozie2001/guardian-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server