Skip to content
Try Hanzo
Language: English (United States)

ZAP

Zero-Copy Agent Protocol

The wire format is the data structure

ZAP · the buffer that arrivedpointer + offset 56

JSON · the same message as text39 characters walked

Read a field

How it is put together

Many agents on one side, many tool servers on the other, one address in the middle.

  • N:1

    Every agent, one address4:1
  • 1:M

    One schema over every backend1:3
  • 0

    Copies of the same tool server9 → 0

Agent Swarm4

Agent 1Agent 2Agent 3Agent N
ZAP Gatewayzap://localhost:9999
  • Schema Federation
  • Request Routing
  • Capability Control
MCP SrvGitHubZAP SrvNativeMCP SrvSlack
Agents you run4

An MCP server beside every agent

12 tool-server processes · 3 more of each

One zapd in front, servers shared

3 tool-server processes and zapd · none repeated

Four lines and it is running

One daemon in front of the servers you already have. Agents hold a single connection to it.

zapd presents the tools and resources of every backend as one schema, whether the backend speaks MCP or ZAP.

Terminal
# Connect 12 MCP servers → 1 ZAP endpoint
$ zapd serve --port 9999
$ zapd add mcp --name github --url stdio://gh-mcp
$ zapd add mcp --name slack  --url http://localhost:8080
$ zapd add mcp --name db     --url zap+unix:///tmp/postgres.sock
# Agents connect once: zap://localhost:9999

Why bother

JSON over HTTP is fine until a hundred agents are calling the same tools. Then the cost is the copies, and the fix is to stop making them.

Point one agent at it

Go · Rust · TypeScript

Start the daemon, add the MCP servers you already run, change one address in your agent.

Nothing else about your setup has to move.

What ZAP saves depends on your workload, your payload size and your topology. The claim here is about mechanism, not about a number: a reader that walks the buffer in place does no parsing and no allocation, and shared backends run one process where per-agent sidecars run many. Measure it on your own traffic — we have not published a benchmark and will not quote one we cannot show you.