Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Headroom AI

MCP server by headroomlabs-ai Verified · npm:headroom-ai

Headroom compresses tool outputs, logs, JSON and chat history before each LLM call, cutting input tokens. It is for developers building LLM apps or running coding agents.

  • Score 94
  • 81k stars
  • 27k a week
  • Apache-2.0
  • Updated

Install Headroom AI

Built from the published package, never by AI.

claude mcp add headroom-ai -- npx -y headroom-ai

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Headroom AI in Claude Code

MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the headroom-ai block.

About

Headroom is a compression layer for AI agents and LLM apps. It compresses tool outputs, logs, RAG chunks, files and conversation history before they reach the model, which the source says means fewer input tokens with the same answers. It is available as a Python library (headroom-ai on PyPI), a TypeScript SDK (headroom-ai on npm), a local proxy, and an MCP server for any MCP client.

Compression runs on the user's machine, and the source says no prompt or file content is sent anywhere to be compressed. A ContentRouter picks a compressor for each content type: SmartCrusher for JSON, CodeCompressor for source code, and Kompress-v2-base for text. Originals are cached locally so the model can retrieve the full text on demand. The project is aimed at developers who build LLM apps or run coding agents such as Claude Code, Codex and Cursor.

Written from the project's README and checked against it.

Tools it gives your assistant

  • headroom_compressCompresses tool outputs, logs, JSON and other content before it reaches the LLM.
  • headroom_retrieveRetrieves the full original text of content that was compressed.
  • headroom_statsReports token savings from compression.

What you need

  • Python with pip install headroom-ai
  • pip install "headroom-ai[proxy]" for the local proxy
  • Node.js and npm install headroom-ai for the TypeScript SDK

Try asking

  • Compress this log output with headroom_compress before summarizing it.
  • Use headroom_retrieve to get the full original text of that compressed result.
  • Show me headroom_stats for this session so I can see the token savings.

Good to know

  • The npm headroom-ai package is the TypeScript SDK only and provides no headroom CLI.
  • Savings vary by content: repeated JSON and log lines compress well, while prose compresses little.
  • Output token savings are estimates unless a holdout control is enabled.
  • A proxy started by headroom wrap stops after a grace period with no traffic, 15 minutes by default.

Security check

B
  • Downloads a script from the internet and runs it (a well-known installer)In README.md: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Headroom AI

All alternatives →
Oh My Posh Validator JanDeDobbeleer
100

Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.

AAA Remote 24k
Sim simstudioai
100

Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.

AAA Remote 30k
Omnara omnara-ai
98

Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.

AAA Remote 3.5k
strata Klavis-AI
95

Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.

AAA Remote 5.8k
voicemode mbailey
95

VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.

AAA Local 1.5k
OpenWork MCP Gateway different-ai
94

Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.

AFA Remote 25k

Compare with Oh My Posh Validator, Sim or Omnara

Headroom AI: common questions

Does Headroom send my data to a third party to compress it?

The source says compression runs on your machine and that no prompt or file content is sent anywhere to be compressed.

Does compression change the answers from the model?

The source says Headroom gives the same answers with fewer input tokens. It reports benchmark results for GSM8K, TruthfulQA, SQuAD v2 and BFCL, where TruthfulQA shows no detectable difference at N=100.

Which LLM providers does Headroom work with?

The source lists adapters for OpenAI, Anthropic, Gemini and the Vercel AI SDK, and its architecture diagram shows Bedrock among the providers.

How do I install Headroom AI?

In Claude Code run claude mcp add headroom-ai -- npx -y headroom-ai. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.

Is Headroom AI the official server?

Headroom AI is published by npm:headroom-ai from its verified domain in the official MCP Registry.

Is Headroom AI free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is Headroom AI safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (downloads a script from the internet and runs it (a well-known installer)). Review the code before you install. How grades work.

What are alternatives to Headroom AI?

Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.

Does Headroom AI work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Headroom AI Install

Add to stack

Loading.