← Back to directory
H

Headroom

Community
A local context-compression layer for AI agents
GitHub source repository ↗
★ 61.7k Stars Category · Dev Tools Very popular
60FMRS · C
Reliability
9/20
Security and permissions
11/20
Maintenance
12/20
Documentation
15/20
Setup experience
13/20

The source identifies Headroom as an Apache-2.0 open-source local MCP server, version 0.32.0, exposing headroom_compress, headroom_retrieve, and headroom_stats. The evidence supports stdio deployment and uvx installation; it does not provide a complete MCP-client compatibility list or authentication details.

Read the FMRS scoring method →

The Headroom MCP server provides compression, retrieval, and statistics for MCP-compatible hosts. It processes tool outputs, logs, files, and RAG chunks before they reach an LLM, with reversible compression and local retrieval of originals.

Tools

headroom_compress
Compresses input content to reduce the number of tokens sent to an LLM.
headroom_retrieve
Retrieves original content from the reversible-compression cache when needed.
headroom_stats
Shows Headroom compression and token-savings statistics.

Setup

In an MCP client that supports uvx, set the command to uvx and the arguments to --from headroom-ai[mcp] headroom mcp serve. You may also install headroom-ai[mcp] first and then run headroom mcp serve. Python 3.10+ is required; the MCP transport is stdio.

claude_desktop_config.json
{"command":"uvx","args":["--from","headroom-ai[mcp]","headroom","mcp","serve"]}

Fit and risk

Best for

  • Developers who use AI coding agents regularly
  • Users who want local processing and lower LLM context costs
  • Workflows combining multiple agents or MCP tools

Not for

  • Sandboxed environments that cannot run local processes
  • Users satisfied with a single provider's native compaction and without a need for cross-agent features

Required permissions

  • The MCP host must start a local Headroom process
  • The server must process incoming tool outputs, logs, files, RAG chunks, or conversation context
  • Reversible compression may cache original content locally

Risks and side effects

  • Compression changes the form of content sent to the LLM; the project claims answer preservation, but results depend on the input
  • The local cache may contain sensitive information from tool outputs, files, or logs
  • Some features may download runtime or model assets from cdn.pyke.io or huggingface.co
  • Unsupported Python, platform, or AVX2 conditions can cause installation failures or feature fallbacks

Troubleshooting

  1. Confirm that Python 3.10+ and headroom-ai[mcp] are installed
  2. Confirm that the client can locate uvx; use an absolute path if necessary
  3. Check that the MCP configuration arguments are --from headroom-ai[mcp] headroom mcp serve
  4. For TLS or corporate-certificate errors, check the corporate CA, REQUESTS_CA_BUNDLE, SSL_CERT_FILE, or SSL-inspection setup
  5. On x86 hosts without AVX2, check whether the non-ONNX fallback path is being used

Use cases

Compress MCP tool outputs, logs, files, and RAG results
Reduce context tokens in coding-agent workflows
Use reversible compression with on-demand original retrieval
Inspect compression and token-savings statistics

Supported clients

Supported clients have not been confirmed yet.