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?

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.

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

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

Review and compact prompts, docs, and AI-agent skills to save tokens, preserving structure. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.