Skip to main content
Glama
razorpay-mcp-guard

razorpay-mcp-guard

by alfred-HQbot

razorpay-mcp-guard

Spend-policy enforcement middleware for Razorpay's MCP server.

Razorpay's official MCP server executes what it's told. Nothing in the stack vets what an agent is allowed to tell it. razorpay-mcp-guard is an MCP middleware that sits between the LLM agent and the Razorpay MCP tools, enforcing:

  • Per-agent spend caps — daily / monthly / lifetime limits, enforced in paise.

  • Category allowlists — only whitelisted tool categories (e.g. payments, settlements) are reachable; everything else is blocked at the gate.

  • Approval thresholds — calls above a configurable rupee amount require explicit human approval before they reach Razorpay.

Every decision (allow, block, escalate) lands in an append-only audit ledger with hash-chained entries, so the trail itself is tamper-evident.

┌─────────────┐     tools/call      ┌──────────────────┐    policy: ALLOW   ┌──────────────────┐
│  LLM Agent  │ ──────────────────► │  mcp-guard       │ ─────────────────► │  Razorpay MCP    │
│ (any client)│ ◄────────────────── │  (this proxy)    │ ◄───────────────── │  server          │
└─────────────┘     result          └──────────────────┘    result          └──────────────────┘
                                        │      ▲
                            BLOCK/ESCALATE   approve/deny
                                        ▼      │
                                   Policy Engine + Audit Ledger + Approval Gate

Status

Work in progress — see docs/architecture.md.

Related MCP server: MandateGuard

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      A policy enforcement, audit, and evaluation control plane for LLM agents on payment infrastructure, intercepting tool calls at the MCP boundary to classify, redact, and allow/deny/escalate actions before execution.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Governs AI agents' spending by enforcing budgets, approvals, and kill switches before any payment, providing an MCP interface for tool calls with policy checks.
      377 npm
      Apache 2.0