CompactPrompt MCP Server

Review and compact prompts, docs, and AI-agent skills to save tokens, preserving structure.

Local serverstdioPython

What is the CompactPrompt MCP server?

CompactPrompt MCP server exists for a simple reason — assistants are far more useful when they can act on CompactPrompt directly instead of describing what you should do. Review and compact prompts, docs, and AI-agent skills to save tokens, preserving structure.

What you get

CompactPrompt shortens the text you send to an AI model while preserving its meaning. The result costs less to run, returns faster, and is less likely to exceed the model's input limit. The common case is a single function call, and no background in machine learning is required to use it.

Setting it up

Installation goes through your MCP client rather than a global install: point it at compactprompt on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What the assistant can call

Once CompactPrompt is connected, these are the calls the assistant has available:

  • Engine — Approach
  • LLMLingua — Microsoft's established tool, which uses a small model to decide what to remove
  • Caveman — Rewrites the text in a concise style, preserving code, links, and headings
  • Field — Meaning

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the compactprompt mcp server does with a few real requests.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. CompactPrompt's toolset — Engine, LLMLingua, Caveman and 1 more — is a fair guide to whether it matches your workflow. It is maintained by gtkcyber; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
EngineApproach
LLMLinguaMicrosoft's established tool, which uses a small model to decide what to remove.
CavemanRewrites the text in a concise style, preserving code, links, and headings.
FieldMeaning

How to install the CompactPrompt MCP server

{
  "mcpServers": {
    "compactprompt": {
      "command": "uvx",
      "args": ["compactprompt"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use CompactPrompt to Engine.
  • Use CompactPrompt to LLMLingua.
  • Use CompactPrompt to Caveman.

Frequently asked questions

It connects CompactPrompt to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (Engine, LLMLingua, Caveman, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with CompactPrompt directly.