Skip to content

fold

fold is a single Go binary that presents any number of upstream MCP (Model Context Protocol) servers as one governed virtual server: one endpoint, one policy, one audit trail. It is built on the official MCP Go SDK on both sides of the proxy, and the official conformance suite runs through it on every merge.

Before running it against anything that matters:

  1. Describe your upstreams in one config file, validated at load.
  2. Put a policy in front of them — fold is deny-by-default, and an empty allowlist denies everything.

Getting started

A governed endpoint in 60 seconds, from one config file and one binary.

Start here →

Run it locally

The same thing on your own machine, against upstreams you already have.

Run it →

Use cases is the shortest route to whether fold fits what you have. Defaults lists every value fold picks for you and why. Embedding in Go is for putting the gateway inside your own binary. The source is on GitHub under Apache-2.0.