Vaikora › Blog › Product Updates
Eight milliseconds to a policy decision: how Vaikora Guard MCP works and why we published the source
Publishing the source code for a security control invites scrutiny most vendors avoid. Vaikora Guard MCP is MIT-licensed, self-hostable, and on PyPI as `vaikora-guard-mcp` precisely because the enforcement logic should be inspectable, not trusted on faith.
What problem this solves
An AI agent calling a tool does not pause to ask whether that action is allowed. It executes. If the tool writes to a database, posts to an API, or deletes a file, the action is already done by the time any downstream detection picks it up. The only point where you can stop that is before execution.
Vaikora Guard MCP is a proxy that sits inline between the agent and whatever tools it calls through the Model Context Protocol. Every tool call passes through the proxy. The proxy checks the call against policy, returns an allow, block, modify, or require-approval decision, and only then lets execution proceed. If the check blocks, the tool never fires.
How the enforcement path works
When an agent sends a tool call, the proxy intercepts the full request, including the tool name, parameters, and any context the agent attached. The six content inspection modules run against that payload. The policy engine applies your configured rules. The decision comes back deterministically: identical input always produces an identical decision.
That matters because non-deterministic enforcement is not enforcement. If the same call produces different outcomes on different runs, you cannot audit it, you cannot explain it to a regulator, and you cannot trust it.
Latency at P50 is 8ms and at P99 is 45ms. Throughput is 10,000-plus actions per second. For most agent workflows those numbers are invisible to the end user.
A concrete scenario
Suppose you have a customer service agent with access to a CRM tool that can update contact records. Without a policy gate, the agent can overwrite any field on any record if its reasoning leads it there. With Vaikora Guard MCP in the path, you define a policy that blocks writes to fields marked as sensitive, and requires human approval for any bulk-update call affecting more than a threshold number of records.
The agent issues the bulk-update call. The proxy inspects it, matches the rule, and returns a require-approval response. The call does not execute. A human reviews the queued action in the control plane and approves or rejects it. The audit log records the original call, the policy match, the pending decision, the reviewer, and the final outcome, all in a SHA-256 hash-chained, tamper-evident chain.
That record is not a log file you can edit. The hash chain means any modification to a prior entry breaks every entry after it.
What "open source" actually gives you here
The MIT licence means you can read the proxy code, fork it, and run it inside your own infrastructure without calling home. Self-hosting is a first-class deployment path, not a workaround.
That is relevant for teams building agents that touch regulated data. If the control sits inside your perimeter, you own the execution environment, the keys, and the audit log. The open-source gateway gives you that. The commercial Vaikora Control Plane, hosted by Data443, adds the management layer: policy authoring UI, compliance presets for HIPAA, PCI-DSS, GDPR, SOC 2, and ISO 27001, the SIEM integrations with Microsoft Sentinel, CrowdStrike Falcon, and SentinelOne, and the approval workflow.
You can start with the open-source proxy against a policy file you write yourself. When the operational overhead of managing policies manually becomes the bottleneck, the control plane is there.
What to check next
Install `vaikora-guard-mcp` from PyPI and point it at any MCP-compatible agent. Review the source for the content inspection modules before you deploy it to production. The enforcement logic is in the open: if something in the policy evaluation is not what you expected, that is the place to find it.
If you are running agents against APIs that touch customer data, internal systems, or anything a compliance audit would care about, start by mapping which tool calls those agents are actually making today. That inventory is the prerequisite for writing policy that reflects real risk rather than theoretical risk.
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
Vaikora