GCF Proxy
FreeMCP 工具响应压缩代理。零代码接入,将任意 MCP 服务器的 JSON-RPC 响应自动转换为紧凑的 GCF 格式以节省 token,支持 JSON、YAML、TOML、CSV、MessagePack 多种格式。
About GCF Proxy
GCF Proxy is a bidirectional MCP (Model Context Protocol) proxy that translates between JSON and GCF (General Compact Format) to reduce token usage and cut costs when calling tools from LLM clients. It wraps any MCP server with zero code changes on either side—simply add 'gcf-proxy' to your MCP command. The proxy re-encodes structured JSON responses into the compact GCF format mid-flight, achieving 53–71% fewer tokens compared to raw JSON, with 100% comprehension on all leading frontier models (2,400+ evals across 11 models and 3 providers). It supports nested object flattening with an opt-out for open-weight models, session deduplication, response caching, delta encoding, and configurable minimum size and streaming thresholds. GCF Proxy can be used in stdio mode (local servers), HTTP mode (remote Streamable HTTP servers), or deployed as a standalone HTTP service, and it works with any structured data format. Installation is available via pip, npm, or Go.
Key Features
Pros & Cons
- Significant token savings (53–71%) without quality loss
- Zero configuration – one line change in MCP config
- Supports multiple transports (stdio, HTTP, Streamable HTTP)
- Bidirectional – handles both response encoding and argument decoding
- Works with any structured data and any MCP server
- Proven comprehension on all major frontier models
- Open source and free to use
- Adds a proxy layer which may introduce slight latency
- Primarily designed for MCP ecosystem; not useful outside MCP contexts
- Open-weight models may require --no-flatten for best comprehension (still outperforms JSON)
- Not beneficial for very small responses (min-size flag default 100 bytes)
- Limited documentation beyond GitHub README