Home | Blog | Building an MCP Proxy That Blocks Tool Calls Before They Execute: A Technical Walk Through Vaikora Guard MCP

Building an MCP Proxy That Blocks Tool Calls Before They Execute: A Technical Walk Through Vaikora Guard MCP

A tool call an AI agent makes is already committed by the time most logging or monitoring systems see it. If the call deletes a file, writes to a database, or exfiltrates data to an external endpoint, the damage is done before any alert fires. The right control point is before execution, not after.

That is the problem Vaikora Guard MCP is built to solve, and the codebase is now publicly available on PyPI under the MIT licence.

What the Proxy Actually Does

Vaikora Guard MCP sits inline between an MCP-compatible AI agent and the tools that agent can call. When the agent requests a tool action, the proxy intercepts that request and evaluates it against a policy before forwarding it.

The evaluation produces one of four outcomes: allow, block, modify, or require-approval. The action does not reach the tool until a decision is made. If the decision is block, the tool is never called.

Every decision is written to a SHA-256 hash-chained audit log. Each entry is signed into the chain, so the record is ordered and tamper-evident. You can present that log to an auditor and demonstrate that every agent action either passed policy or was stopped before it ran.

The gateway ships six content inspection modules, so you can apply different checks depending on what the tool does. A tool that writes to a database gets different scrutiny than one that reads a config file.

Why Open Source, and What "Open Source" Means Here

Publishing the proxy under MIT means you can read every line that evaluates your agent’s tool calls. For security teams, that matters. A policy enforcement layer you cannot inspect is itself a risk.

The open-source component is `vaikora-guard-mcp`, written in Python, available on PyPI. You install it, configure your policies in a YAML file, and point your MCP agent through the proxy. No SDK migration is required. The proxy works with 12 LLM providers as adapters, so changing the underlying model does not change your policy configuration.

Self-hosting is fully supported. If your policy requires that no tool call telemetry leaves your environment, you run the proxy in your own infrastructure and nothing leaves.

The commercial product is the Vaikora Control Plane, hosted by Data443. That is where you get a central policy editor, multi-agent visibility, the SIEM integrations, and the compliance presets for HIPAA, PCI-DSS, GDPR, SOC 2, and ISO 27001. The open-source proxy enforces whatever policy you define locally without requiring the control plane.

A Concrete Example

Say you have an AI agent that assists with customer support. It has access to a tool that queries a CRM and a tool that sends email. Your policy says the agent may read CRM records but may not send email without human approval.

Without a proxy, that constraint lives only in your prompt. A prompt injection attack, a confused-deputy error, or a model update that changes output formatting can cause the send-email tool to be called anyway.

With Vaikora Guard MCP inline, the send-email tool call never reaches the tool unless a human has explicitly approved it in this session. The block or require-approval decision fires at the proxy layer, not the application layer. The audit log shows every attempted call, the policy that matched, and the outcome.

That is deterministic enforcement. Identical input always produces identical decisions, regardless of what the model says.

Performance and Integration

Enforcement runs at P50 8ms and P99 45ms, with throughput above 10,000 actions per second. For most agent deployments, the proxy is not a bottleneck.

For teams running a SIEM, the proxy integrates natively with Microsoft Sentinel, SentinelOne, CrowdStrike Falcon, and AWS Security Hub. High-severity decisions push into those platforms as native alerts, so your SOC sees AI agent policy violations alongside other security telemetry without custom engineering.

Vaikora also ships as an Azure Sentinel content hub solution and is available on AWS Marketplace as a SaaS subscription.

What to Check Next

If you want to evaluate the proxy before committing to anything:

  • Install `vaikora-guard-mcp` from PyPI and read the source before running it.
  • Write a policy file for one agent and one tool, run it locally, and inspect the audit log output.
  • Check which of your existing MCP-compatible agents can point through the proxy without code changes.

If you are running agents in production without a policy enforcement layer today, that is the specific gap this addresses. The source is public. The latency numbers are real. Start with one agent and one tool, and see what the audit log tells you.