AgentGuard MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
AgentGuard MCP
AgentGuard gives an AI support agent limited authority to request refunds. The Python MCP server verifies Auth0 identity and scopes. PostgreSQL checks a shared rolling budget, holds sensitive requests for an independent human decision, and records authorized effects in a simulated USD ledger.
Try the public demo · Inspect the evidence · Frontend repository · Creator case study
What the safeguard does
A machine needs
finance:refundto request or execute a refund. A machine withagent:managecan inspect pending requests and cannot approve them.Eligible refunds consume a shared $500 rolling 24-hour autonomous budget. A request beyond the remaining budget waits for review, even when the individual amount is below $500.
The protected dashboard requires the configured verified operator. Approval and resume also require recent passkey or MFA authentication. The reviewer sees the stored amount, destination, reason, and expiry. The original agent can execute an unexpired approved request once. Operators can cancel pending or approved requests and pause new execution.
A stable request ID gives identical retries the same submission result. Changed arguments with the same ID are rejected. Review commits with its audit event. Execution commits with its receipt and audit event.
flowchart LR
Agent[Agent with Auth0 token] --> MCP[MCP verifies token and scope]
MCP --> DB[(PostgreSQL checks policy and writes ledger)]
DB -->|Beyond remaining budget| Review[Stored request waits for review]
Human[Operator with recent passkey] --> Review
Review -->|Approve exact request| DB
MCP -->|Original agent executes| DBRelated MCP server: gov-mcp
Reproduce the evidence
From a clone of this repository, use Node.js 24 or newer:
cd evaluation
npm ci --ignore-scripts
npm run --silent evaluateThe runner applies the schema and migrations to an empty local PostgreSQL instance and runs seven SQL assertion files. On ten fixed cases, AgentGuard matched the expected ledger effects in 10 of 10, compared with 3 of 10 for the scope-and-threshold baseline and 1 of 10 for the unguarded baseline. The evaluation guide explains the single-connection setup and illustrative baselines. It requires no hosted credentials.
The evidence index links the hosted passkey and receipt run, a separate concurrency trial, and the exact release references.
MCP tools
Tool | Scope | Behavior |
|
| Searches synthetic CRM accounts. |
|
| Submits a v2 request and may return a receipt or a pending approval. |
|
| Executes the stored transaction once if the original requester and approval still qualify. |
|
| Lists pending approvals for authorized machine operators. |
|
| Rejects machine approval and directs the caller to the dashboard. |
Use integer cents and a stable request ID when calling issue_refund. The
v2 contract documents validation and retry behavior.
The hosted MCP endpoint requires
an Auth0 bearer token with the configured API audience and tool scope.
Run the backend locally
Use Python 3.12. Install from the hash-pinned export in a virtual environment:
python -m pip install --require-hashes -r requirements.txtCopy .env.example to .env and configure your isolated Auth0 API and Supabase
project. Set AUTH0_AUDIENCE to the API identifier and MCP_SERVER_URL to the
server base URL. Apply database/schema.sql then migrations 001 through 008
in order. See the hosted rehearsal guide for Auth0 client
scopes, service role grants, and frontend configuration.
python -m src.serverBy default, the server listens on port 3001. Connect your client to
http://localhost:3001/mcp. /health confirms the process responds. For a 401,
check the bearer token, issuer, audience, and time claims. For tool denials, check
scope and the returned policy reason. For a database failure, check project
availability, credentials, and migration state before attempting another write.
Reuse the original request ID for an identical submission retry.
Run python -m unittest discover -s tests -v with the test configuration in
CI. See hosting and dependency
verification for deployment and lockfile details.
Trust boundary
The ledger records simulated money. AgentGuard trusts Auth0, the backend service credentials, and privileged database operators. The audit trail is persisted in PostgreSQL. It is not a tamper-proof log against a privileged database operator. The public walkthrough uses fixtures, and the reports distinguish hosted observations from local comparisons and isolated authorization tests.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Context and control for any AI. Agent identity, scoped access, and proof across tools.
Governed access to sensitive data, secrets and APIs for AI agents. A signed proof for each decision.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides a secure gRPC transport layer for the Model Context Protocol (MCP) with mutual TLS, token-based authentication, and fine-grained authorization. Includes comprehensive telemetry and a real-time visualization dashboard for monitoring AI model interactions and security events.1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enforces runtime governance on AI agent actions — file access, command execution, delegation chains, and permission escalation.MIT
- AlicenseNot gradedqualityDmaintenanceA governed, audited Model Context Protocol server that provides AI agents with secure, read-only access to a clinical knowledge base through least-privilege tools, policy validation, and append-only audit logging.MIT
- FlicenseNot gradedqualityDmaintenanceMCP server that provides a security gateway for AI agents, enforcing allow/confirm/deny policies on tool calls and requiring human approval for risky operations, with full audit logging.-