# Kavach KYA (Sovereign Agentic Spend Firewall)

> Kavach KYA (Sovereign Agentic Spend Firewall) is an MCP server for agent payments. Spend-policy and kill-switch MCP server that guards AI agent payments before money moves. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Platforms:** API, Slack, WhatsApp
- **Website:** https://kavach.srigenmedia.com
- **Repository:** https://github.com/srigenmedia/kavach-kya
- **MCP Registry name:** io.github.srigenmedia/kavach-kya
- **Categories:** [agent payments](https://ai-powered.com/categories/agent-payments)
- **Listing updated:** 2026-11-20

## About

Kavach KYA sits between autonomous agents and the payments they try to make. Each proposed spend is checked as a structured tuple against velocity limits, merchant allowlists and prompt-injection guards, and the agent's eligibility can be revoked within milliseconds from the same interface.

When a transaction crosses a threshold, it is held in a human approval state for up to 15 minutes. Approvers respond through one-tap callbacks in Slack or WhatsApp Business, and webhook signatures are verified with HMAC-SHA256 before any action is taken. Every decision is appended to a SHA-256 hash-chained receipt log, with bank or gateway reference numbers attached and no raw personal data stored.

The service is aimed at B2B teams running agents that pay for services, particularly those using 402-style payment gateways or MCP tool servers. It is offered as a hosted endpoint that holds no customer funds.

## Features

- **Spend policy evaluation:** Checks each proposed payment against velocity limits, merchant allowlists and injection guards before it is approved.
- **Instant agent kill switch:** Flips an agent's eligibility to blocked in under 50 milliseconds and propagates the revocation to connected gateways.
- **Human approval holds:** Holds flagged transactions for up to 15 minutes pending a one-tap approval in Slack or WhatsApp.
- **Signed webhook callbacks:** Verifies Slack and WhatsApp webhook signatures with HMAC-SHA256 using constant-time comparison.
- **Tamper-evident audit log:** Records each decision in a SHA-256 hash-chained receipt that links to bank or gateway reference numbers.
- **Agent status inspection:** Reports an agent's current eligibility, daily spend and any pending approval holds.

## Good for

- Limiting how much an autonomous purchasing agent can spend per day
- Stopping a misbehaving agent from making further payments immediately
- Requiring a human sign-off on unusually large or unfamiliar payments
- Keeping a verifiable record of every agent payment decision for audits
- Connecting agent-driven payments to a 402-style paywall gateway

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http kavach-kya https://kavach.srigenmedia.com/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "type": "http",
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://kavach.srigenmedia.com/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "type": "http",
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://kavach.srigenmedia.com/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add kavach-kya --url https://kavach.srigenmedia.com/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.kavach-kya]
url = "https://kavach.srigenmedia.com/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "httpUrl": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http kavach-kya https://kavach.srigenmedia.com/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "serverUrl": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "url": "https://kavach.srigenmedia.com/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "type": "streamableHttp",
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "kavach-kya": {
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "kavach-kya": {
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://kavach.srigenmedia.com/mcp
```

Enter a Name (for example "Kavach KYA (Sovereign Agentic Spend Firewall)"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "kavach-kya": {
      "type": "http",
      "url": "https://kavach.srigenmedia.com/mcp"
    }
  }
}
```

## Tools

The server marks 1 of 3 tools as able to delete data and 1 as able to change data. From the server's own tool labels and tool names; not verified by us.

- `kavach_check_spend_policy` (says it can change data): Evaluate an agent spend 5-tuple against Kavach KYA velocity limits, merchant allowlists, and prompt-injection guards prior to payment.
- `kavach_get_agent_status` (says read-only): Inspect a KYA agent's live eligibility_flag (0/1), daily velocity spend, and active policy limits.
- `kavach_trigger_kill_switch` (says it can change data): Atomically flip eligibility_flag = 0 in <50ms and propagate agent revocation to downstream 402-in-a-Box gateways.

## FAQ

### Does Kavach hold customer funds?

No. The service states that it holds zero customer funds and acts only as a policy and approval layer.

### How quickly can an agent be stopped?

The kill switch flips an agent's eligibility flag in under 50 milliseconds, according to the product documentation.

### How do human approvals work?

Transactions that breach a limit enter a 2FA hold for 15 minutes and can be approved or rejected with a one-tap callback from Slack or WhatsApp Business.

### How is the MCP server accessed?

It is available as a streamable HTTP endpoint and is configured with a bearer token in the client's headers.

### How do I add Kavach KYA (Sovereign Agentic Spend Firewall) to Claude Code?

Run this command in your terminal: claude mcp add --transport http kavach-kya https://kavach.srigenmedia.com/mcp

### What are the best alternatives to Kavach KYA (Sovereign Agentic Spend Firewall)?

The closest alternatives to Kavach KYA (Sovereign Agentic Spend Firewall) are Spend, Agent Reserve Protocol Authorization Firewall, Boundra — Payment Approval Gateway for AI Agents, Agentcard and Varyntiq.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 26 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Spend](https://ai-powered.com/mcp/spend): Spend is a freemium MCP server for agent payments.
- [Agent Reserve Protocol Authorization Firewall](https://ai-powered.com/mcp/agent-reserve-protocol-authorization-firewall): Agent Reserve Protocol Authorization Firewall is an MCP server for agent payments.
- [Boundra — Payment Approval Gateway for AI Agents](https://ai-powered.com/mcp/boundra-payment-approval-gateway-for-ai-agents-2): Boundra — Payment Approval Gateway for AI Agents is an open-source MCP server for finance and payments.
- [Agentcard](https://ai-powered.com/mcp/agentcard): Agentcard is a freemium MCP server for agent payments.
- [Varyntiq](https://ai-powered.com/mcp/varyntiq): Varyntiq is an MCP server for security.
- [Agent Spend Policy MCP](https://ai-powered.com/mcp/agent-spend-policy-mcp): Agent Spend Policy MCP is an open-source MCP server for agent payments.
- [Onchain Agent Wallets](https://ai-powered.com/mcp/onchain-agent-wallets): Onchain Agent Wallets is an open-source MCP server for agent payments.
- [PayStage — x402 payment safety and spend policy](https://ai-powered.com/mcp/paystage-x402-payment-safety-and-spend-policy): PayStage — x402 payment safety and spend policy is an open-source MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/kavach-kya-sovereign-agentic-spend-firewall
