cd /news/developer-tools/sabrix-bench-fast-mcp-inspector-and-… · home topics developer-tools article
[ARTICLE · art-103467] src=github.com ↗ pub= topic=developer-tools verified=true sentiment=· neutral

Sabrix-bench: Fast MCP inspector and agent loop latency profiler in Rust

Sabrix released sabrix-bench, an open-source Rust CLI and benchmark harness for Model Context Protocol (MCP) traffic inspection and agent loop latency profiling, claiming sub-2-microsecond per-turn latency with zero network egress. The tool benchmarks multi-turn agent loops, flags dangerous tool mutations via nine deterministic security rules, and compares its In-VPC engine against legacy Python/Node proxies (35ms per turn) and SaaS AI firewalls (120ms per turn, adding 3.6 seconds over a 30-turn loop).

read2 min views1 publishedAug 19, 2026
Sabrix-bench: Fast MCP inspector and agent loop latency profiler in Rust
Image: Michielbdejong (auto-discovered)

Ultra-fast, zero-bloat developer CLI and benchmark harness for Model Context Protocol (MCP) traffic inspection and agent loop latency profiling.

Developers building autonomous AI agents locally lack visibility into raw Model Context Protocol (MCP) JSON-RPC tool traffic and have no lightweight way to measure per-turn serialization and proxy latency overhead.

Legacy approaches introduce massive performance and security taxes:

Legacy Python / Node Proxies: Add30ms – 50ms of serialization and runtime tax per tool call.SaaS AI Firewalls: Incur100ms – 250ms of WAN network latency, TLS handshakes, and third-party cloud data egress per turn.- Over a 30-turn agent loop, legacy firewalls add** 3.6+ seconds of dead wait time**and leak raw database queries and internal system commands outside your perimeter.

sabrix-bench

gives you real-time visibility into your local MCP tool calls and benchmarks your agent loops in microseconds ( $< 2\ \mu\text{s}$) with

zero network egress.

cargo install --path .

Or run directly with Cargo:

cargo run -- --help

Inspect JSON-RPC 2.0 requests (tools/call

, resources/read

, tools/list

) and flag dangerous tool mutations (destructive shell commands, SQL injections, leaked credentials).

sabrix-bench trace --demo
sabrix-bench trace -p '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "database_query",
    "arguments": { "sql": "DROP TABLE users; --" }
  }
}'
cat mcp_message.json | sabrix-bench trace

Simulate multi-turn autonomous agent loops to measure local parsing overhead, memory serialization, and latency percentiles (

sabrix-bench bench --turns 30

sabrix-bench bench --turns 50 --scale 10

sabrix-bench bench --turns 20 --json

Output a side-by-side architectural comparison contrasting In-VPC embedded engines against legacy proxies and remote SaaS firewalls.

sabrix-bench compare
Layer / Architecture Per-Turn Latency 30-Turn Loop Delay Egress & Privacy Memory Footprint
Sabrix In-VPC Engine
(0.002 ms)< 2 µs
< 0.06 ms
100% In-VPC (Zero Egress)
< 15 MB
Legacy Python / Node Proxy
35.0 ms
+1.05 seconds
Local Cluster 150 MB – 400 MB
SaaS AI Firewall
120.0 ms
+3.60 seconds
Full Payload Egress N/A (Cloud SaaS)

sabrix-bench

evaluates deterministic security rules locally in sub-microsecond time:

: Destructive Filesystem Operations (MCP-SEC-001

rm -rf

,mkfs

,dd

,chmod 777

): Remote Code Execution / Reverse Shells (MCP-SEC-002

curl | bash

,nc -e

,/dev/tcp/

): Destructive SQL Mutations & Injections (MCP-SEC-003

DROP TABLE

,TRUNCATE

,DELETE FROM

,WHERE 1=1

): Leaked API Keys & Secrets (OpenAIMCP-SEC-004-007

sk-

, GitHubghp_

, AWSAKIA

, PEM Private Keys): Sensitive Path Egress (MCP-SEC-008

/etc/passwd

,~/.ssh/id_rsa

,~/.aws/credentials

,.env

): Unconstrained Arbitrary Execution Tool InvocationsMCP-SEC-009

Enforce zero-egress In-VPC MCP security with millisecond-grade deterministic policy control:

👉 Deploy Sabrix In-VPC Gateway

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

── more in #developer-tools 4 stories · sorted by recency
── more on @sabrix 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/sabrix-bench-fast-mc…] indexed:0 read:2min 2026-08-19 ·