MCPFold

The portable, secret-safe config layer for MCP. Free & open-source.

About


 mcpfold is an open-source tool for anyone running MCP servers across multiple AI clients.

Connecting MCP servers has two hidden costs. First, the context-window tax: every server you connect dumps its full tool schema into your agent's context on every turn, whether those tools are used or not. Second, config sprawl: each client (Claude Code, Cursor, VS Code, Windsurf, Zed…) uses a slightly different config format, and secrets end up hardcoded into plaintext JSON.

mcpfold solves both. It keeps one canonical config and folds it out to every client in that client's native format, curating which servers and tools each agent loads — cutting tool-schema tokens by ~80% in a reproducible benchmark. And it resolves secret references (${scheme:path}) instead of values, so secret values never touch disk.