VaikoraVaikora

Vaikora › Blog › Product Updates

pip install vaikora-guard-mcp: what you get, what it enforces, and how the audit chain works

Product Updates · Nov 24, 2026 · 4 min read

An AI agent can call dozens of tools in a single session. Each call is a potential policy violation, a data exposure, or an unauthorized action, and by default nothing checks those calls before they execute. Vaikora Guard MCP is the open-source component that puts a policy gate on every one of them.

What the package actually is

`vaikora-guard-mcp` is a Python proxy, published on PyPI under the MIT licence, that sits inline between an MCP-compatible AI agent and the tools it calls. It intercepts each tool call, runs it through a policy evaluation, and returns an allow, block, modify, or require-approval decision before the call reaches its target. If the decision is block, the tool never executes.

It is self-hosted. You run it in your own environment. The source is public on GitHub, which means you can read every line of the inspection logic, audit the decision path, and fork it if your requirements diverge from the defaults. MIT licence means no restriction on commercial use.

Installation:

```
pip install vaikora-guard-mcp
```

That gets you the proxy, six content inspection modules, and adapters for the major hosted model APIs.

What runs at enforcement time

When a tool call arrives, the proxy applies your configured policy rules in order. The inspection modules check things like whether the call contains PII, whether the target tool is on the allow list, whether the payload matches a blocked pattern, and whether the action requires a human approval step before it can proceed.

The decision is deterministic. Identical input always produces an identical output. There is no probabilistic scoring that shifts between runs. This matters for auditability: when a regulator or auditor asks why a specific action was blocked on a specific date, the answer is the rule, not "the model scored it above a threshold."

Enforcement latency runs at P50 8ms and P99 45ms, with throughput above 10,000 actions per second. For most agent workflows, that is below the threshold where users notice a delay.

The audit chain

Every decision the proxy writes gets signed into a SHA-256 hash-chained, tamper-evident audit log. Each record links cryptographically to the one before it. If someone modifies or deletes a log entry after the fact, the chain breaks and the tampering is detectable.

This is what makes the open-source component useful in regulated environments. The log does not just say "blocked." It records the input, the matched rule, the decision, the timestamp, and the hash. You can produce that record in an investigation or a compliance audit and demonstrate that the policy was enforced, not just that a policy existed.

A concrete scenario

Consider an AI coding agent with access to a file-write tool and a network-call tool. Without a policy gate, a prompt injection in a document the agent reads could instruct it to exfiltrate a file by writing it to a staging path and then calling an external URL. Both actions look like normal tool calls from the agent's perspective.

With `vaikora-guard-mcp` inline, the network-call tool call gets evaluated before it executes. If your policy says external network calls require approval, the proxy holds the action and surfaces it for a human decision. If your policy says calls to unknown domains are blocked outright, the call is dropped and logged. The file write may still complete, but the exfiltration path is cut.

That is enforcement before execution, not detection after the fact.

Connecting to the control plane

The open-source proxy handles enforcement at the agent level. When you connect it to the Vaikora Control Plane (the commercial, Data443-hosted layer), you get centralized policy management across multiple agents, the compliance presets for HIPAA, PCI-DSS, GDPR, SOC 2, and ISO 27001, and native incident forwarding to Microsoft Sentinel, CrowdStrike Falcon, SentinelOne, and AWS Security Hub.

The proxy works standalone if you write your own policy files. The control plane is for teams that need policy consistency across a fleet of agents without maintaining separate config files per deployment.

What to check next

If you are evaluating the package, the most useful starting point is reading the enforcement path in the source before you configure anything. Understand what each inspection module checks, then map your actual tool call patterns against the default policy rules. The gaps between what your agents can call and what your policy currently covers are where your real risk sits.

Check the PyPI page for `vaikora-guard-mcp`, review the inspection module list, and run it against a staging agent with logging set to verbose before promoting it to production.

See Vaikora enforce policy on your AI

Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.

Get a demo Self-host the gateway

More from the Vaikora blog