ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Agent Guardrail MCP Server

โดย eren-solutionsรุ่น 0.1.2i★ –iรันบนเครื่อง
ชื่อใน registryio.github.JarvisOnM4/agent-guardrail

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Action-level governance for AI agents -- control what they DO, not what they SAY

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • PyPIติดตั้ง uv ของ Python (มีคำสั่ง uvx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "agent-guardrail": {
      "command": "uvx",
      "args": [
        "agent-guardrail"
      ]
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add agent-guardrail -- uvx agent-guardrail

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-guardrail": {
      "command": "uvx",
      "args": [
        "agent-guardrail"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "agent-guardrail": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agent-guardrail"
      ]
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 7 พ.ย. 2569

  • ! ควรระวัง

    ตัวตนผู้ทำตรงกับ repo

    ผู้ลงทะเบียน (JarvisOnM4) ไม่ใช่เจ้าของ repo (eren-solutions) อาจเป็นคนอื่นที่นำมาลงต่อ

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32680 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 4% ของอีก 32680 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 29% ของอีก 32680 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Agent Guardrail MCP Server ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 0 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.1.2) เข้า registry 8 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Python (uv) ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, EmbeddedCI BenchPod

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวานซืน
ติดตั้ง

EmbeddedCI BenchPod

โดย embeddedci-com

Drive a BenchPod hardware-in-the-loop bench: power, flash, UART, I2C, CAN, analog and logic.

รันบนเครื่องอัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

Agent Guardrail

Action-level governance for AI agents — control what they DO, not what they SAY.


The Problem

AI agents are getting tool access. They can run shell commands, make API calls, read files, spend money. But most "guardrails" only filter what agents *say* — not what they *do*.

Real incidents:

  • AutoGPT autonomously spent $10K+ on API calls in a single session
  • ChaosGPT attempted to access military systems and recruit other AI agents
  • Air Canada chatbot invented a refund policy that cost the airline $800+

You need action-level control. Not output filtering.

What Agent Guardrail Does

Agent Framework --> Agent Guardrail --> {allow, deny, require_approval}

--> Flight Recorder logs everything

  • Policy Engine — allowlists, denylists, glob patterns for tools and targets
  • Spend Caps — daily and total USD limits per agent
  • Kill Switch — instantly deny all actions for a runaway agent
  • Flight Recorder — every action logged with full replay capability
  • Approval Gates — route risky actions to human review
  • Risk Scoring — automatic risk assessment per action type
  • 3 Templates — restrictive, moderate, permissive (apply in one command)
  • Pay-per-eval Billing — free tier + BTC credit packs via Blockonomics

Zero dependencies. Python stdlib only. SQLite for storage.

30-Second Quickstart

pip install agent-guardrail

Register an agent

agent-guardrail register "my-research-agent" --framework langchain

Apply the moderate policy template

agent-guardrail apply-template moderate

Test it

agent-guardrail eval bash --target /workspace/test.sh # -> allow agent-guardrail eval bash --target /etc/shadow # -> deny agent-guardrail eval sudo # -> deny

Python API

from agent_guardrail import GuardrailStore, PolicyEngine, DEFAULT_POLICIES

Initialize

store = GuardrailStore() # ~/.agent-guardrail/guardrail.db engine = PolicyEngine(store)

Register agent

agent = store.register_agent("my-agent", framework="langchain")

Apply policy template

store.save_policy({ "name": "moderate", "agent_id": agent["id"], "rules": DEFAULT_POLICIES"moderate", })

Evaluate actions

decision = engine.evaluate(agent["id"], "bash", target="/workspace/run.sh")

-> PolicyDecision(decision="allow", risk_score=0.7)

decision = engine.evaluate(agent["id"], "bash", target="/etc/shadow")

-> PolicyDecision(decision="deny", reason="Target '/etc/shadow' is denied...")

Evaluate + record to flight recorder

decision = engine.evaluate_and_record( agent_id=agent["id"], action_type="api_call", tool_name="openai_chat", cost_usd=0.05, session_id="session-123", )

Framework Integrations

LangChain Callback
from agent_guardrail import GuardrailStore, PolicyEngine

class GuardrailCallback: """Drop into any LangChain agent as a callback handler.""" def init(self, agent_id, db_path=None): self._engine = PolicyEngine(GuardrailStore(db_path=db_path)) self.agent_id = agent_id

def on_tool_start(self, serialized, input_str, **kwargs): decision = self._engine.evaluate_and_record( agent_id=self.agent_id, action_type="tool_call", tool_name=serialized.get("name"), target=input_str[:200], ) if decision.decision == "deny": raise PermissionError(f"Guardrail: {decision.reason}")

CrewAI Task Guardrail
from agent_guardrail import GuardrailStore, PolicyEngine

def make_guardrail(agent_id, db_path=None): engine = PolicyEngine(GuardrailStore(db_path=db_path))

def check(task_output): decision = engine.evaluate_and_record( agent_id=agent_id, action_type="task_output", target=str(task_output)[:200], ) if decision.decision == "deny": return (False, f"Blocked: {decision.reason}") return (True, task_output) return check

task = Task(description="...", guardrail=make_guardrail("agent-id"))

Universal Decorator
from agent_guardrail import GuardrailStore, PolicyEngine

import functools

def guardrail(agent_id, action_type="function_call", db_path=None): engine = PolicyEngine(GuardrailStore(db_path=db_path)) def decorator(func): @functools.wraps(func) def wrapper(*args, **kwargs): target = str(args[0])[:200] if args else None decision = engine.evaluate_and_record( agent_id=agent_id, action_type=action_type, tool_name=func.name, target=target, ) if decision.decision == "deny": raise PermissionError(f"Guardrail: {decision.reason}") return func(*args, **kwargs) return wrapper return decorator

@guardrail("my-agent", action_type="bash") def run_command(cmd): ...

Hosted API (For Agents)

The library is for humans. The API is for agents.

An orchestrator running 5 sub-agents doesn't pip install — it calls an endpoint.

# Start the proxy server

pip install agent-guardrail[proxy] guardrail-proxy --port 8300 --admin-key YOUR_ADMIN_KEY

# Register an agent (admin)

curl -X POST http://localhost:8300/v1/agents \ -H "X-Admin-Key: YOUR_ADMIN_KEY" \ -d '{"name": "research-agent", "framework": "crewai"}'

Evaluate an action (agent)

curl -X POST http://localhost:8300/v1/evaluate \ -H "X-API-Key: gw_agent_key_here" \ -d '{ "agent_id": "...", "action_type": "bash", "tool_name": "shell", "target": "/etc/shadow", "cost_usd": 0.0 }'

-> {"decision": "deny", "reason": "Target denied...", "risk_score": 0.7}

Full API docs at http://localhost:8300/docs (Swagger UI).

Billing & Pricing

Free tier included. Pay with Bitcoin when you need more.

TierEvaluationsPricePer Eval
Free100/day per agent$0$0
Starter1,000$10$0.010
Growth5,000$40$0.008
Scale25,000$150$0.006

Credits are prepaid and never expire. Admin-authenticated requests bypass billing entirely.

How it works:

# Check your balance

curl http://localhost:8300/v1/billing/balance \ -H "X-API-Key: gw_your_agent_key"

Buy credits (returns a BTC address + amount)

curl -X POST http://localhost:8300/v1/billing/checkout \ -H "X-API-Key: gw_your_agent_key" \ -d '{"pack_id": "pack_1000"}'

-> {"btc_address": "bc1q...", "amount_btc": 0.00015, "amount_satoshi": 15000, ...}

Pay the BTC address -> webhook confirms -> credits granted automatically

When free tier is exhausted and no credits remain, /v1/evaluate returns 402 Payment Required with a link to available packs.

Self-hosted billing: Set BLOCKONOMICS_API_KEY and BLOCKONOMICS_WEBHOOK_SECRET environment variables. Without these, billing is disabled and all evaluations proceed without metering (backward compatible).

Policy Rules Reference

{

"tool_allowlist": ["read_file", "write_file"], # Only these tools allowed "tool_denylist": ["sudo", "rm", "delete*"], # These tools always denied "target_allowlist": ["/workspace/*"], # Only these targets allowed "target_denylist": ["/etc/*", "*.env", "*.key"], # These targets always denied "network_allowlist": ["api.openai.com"], # Allowed network targets "network_denylist": ["*"], # Denied network targets "spend_cap_daily_usd": 25.0, # Daily spend limit "spend_cap_total_usd": 500.0, # Lifetime spend limit "require_approval": ["bash", "install"], # Human approval required "risk_threshold": 0.8, # Auto-approval gate }

Patterns support glob matching (*, ?, [abc]).

Decision Flow

Kill switch? ──deny──> DENY

| Agent enabled? ──no──> DENY | Spend cap? ──exceeded──> DENY | Tool denylist? ──match──> DENY | Target denylist? ──match──> DENY | Approval required? ──match──> REQUIRE_APPROVAL | Risk threshold? ──exceeded──> REQUIRE_APPROVAL | Tool allowlist? ──not in list──> DENY | Target allowlist? ──not in list──> DENY | DEFAULT ──> ALLOW

Architecture

+-------------------+     +------------------+     +-----------------+

| Agent Framework |---->| Billing Check |---->| Policy Engine | | (LangChain, | | (free tier / | | (evaluate) | | CrewAI, custom) | | credits) | +-----------------+ +-------------------+ +------------------+ | | v | +------------------------+ 402 if empty | Decision: | | allow / deny / | | require_approval | +------------------------+ | v +-----------------+ | Flight Recorder| | (SQLite) | +-----------------+

+-------------------+ +------------------+ | BTC Payment |---->| Blockonomics | | (checkout) | | (xpub-derived | +-------------------+ | addresses) | +------------------+ | webhook (status=2) | v +------------------+ | Credit Grant | | (billing_ledger)| +------------------+

Comparison

FeatureAgent GuardrailGuardrails AINeMo GuardrailsDIY
Action-level controlYesNo (output only)No (dialogue only)Manual
Spend capsYesNoNoManual
Kill switchYesNoNoManual
Flight recorderYesNoNoManual
Pay-per-eval billingYes (BTC)NoNoManual
Zero dependenciesYesNo (many)No (many)Varies
Framework agnosticYesLangChain-focusedLangChain-focusedYes
Hosted APIYesCloud onlyNoManual

CLI Reference

agent-guardrail agents                      # List registered agents

agent-guardrail register "name" # Register a new agent agent-guardrail kill # Emergency kill switch agent-guardrail unkill # Revoke kill switch agent-guardrail policies # List policies agent-guardrail apply-template agent-guardrail actions [--agent X] [--decision deny] agent-guardrail replay # Session replay agent-guardrail approvals # Pending approvals agent-guardrail approve # Approve action agent-guardrail deny # Deny action agent-guardrail eval [--target X] [--cost 0.5] agent-guardrail stats # Statistic

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx