flatten-mcp

Created By
shayaShav4 hours ago
An MCP server that flattens Claude Code sessions — keeping every prompt and event verbatim while reclaiming context tokens, so you resume the exact same raw conversation at a lower token count instead of compacting it into a lossy summary. It moves bulky tool output (large file reads, command logs, base64 screenshots) into a sidecar file, leaving a tiny retrievable reference in its place. Crash-safe, idempotent, and fully reversible. Real example from the README: a 317,236-token session flattened to 182,287 tokens.

Server Config

{
  "mcpServers": {
    "flatten": {
      "command": "npx",
      "args": [
        "-y",
        "flatten-mcp@latest"
      ]
    }
  }
}
Project Info
Created At
4 hours ago
Updated At
4 hours ago
Author Name
shayaShav
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Docwand

7 hours ago