Enterprise DNA
M MCP Servers Developer low

shayaShav/flatten-mcp

by Various

Flatten Claude Code sessions: keep every prompt and event verbatim, resume at a lower token count. An MCP server.

S

MCP

shayaShav/flatten-mcp

Added 15 June 2026

#anthropic #claude #claude-code #compaction #context-window #flatten #history #mcp

Overview

Flatten-mcp is an MCP server that compresses Claude Code sessions by removing irrelevant intermediate events while preserving every prompt and response verbatim. This allows resuming long sessions at a significantly lower token count, reducing costs and bypassing context limits.

Best for

Best for
Developers who need to manage long, token-heavy Claude Code sessions without losing any prompt or response history

Use cases

  • Reduce token usage in ongoing Claude Code sessions
  • Restart a session from a full transcript without loss of detail
  • Archive verbose coding sessions for later reference or resumption

Notes

Flatten-mcp is an MCP server that compresses Claude Code sessions by removing irrelevant intermediate events while preserving every prompt and response verbatim. This allows resuming long sessions at a significantly lower token count, reducing costs and bypassing context limits.

0 stars on GitHub. Last updated 2026-06-14. Licensed MIT.

Use cases

  • Reduce token usage in ongoing Claude Code sessions
  • Restart a session from a full transcript without loss of detail
  • Archive verbose coding sessions for later reference or resumption

Pros

  • Preserves the exact conversation history without omissions
  • Lowers token count directly, which can reduce API costs and extend usable context
  • Operates as a simple MCP server, easy to integrate into existing Claude workflows

Cons

  • Only works within the MCP ecosystem and with compatible clients like Claude Code
  • No clear maintenance guarantee, as the repository has 0 stars and is a personal project
  • Requires manual selection of what to strip, which may affect comprehension of the session

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Preserves the exact conversation history without omissions
  • Lowers token count directly, which can reduce API costs and extend usable context
  • Operates as a simple MCP server, easy to integrate into existing Claude workflows

Cons

  • Only works within the MCP ecosystem and with compatible clients like Claude Code
  • No clear maintenance guarantee, as the repository has 0 stars and is a personal project
  • Requires manual selection of what to strip, which may affect comprehension of the session

Pairs with

Other entries in the index that connect to this one. Click through to see the chain.