flatten-mcp

shayaShav/flatten-mcp
★ 0 stars TypeScript AI/LLM Updated 1d ago
Flatten Claude Code sessions: keep every prompt and event verbatim, resume at a lower token count. An MCP server.
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "flatten-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "shayaShav/flatten-mcp"
      ]
    }
  }
}

README Excerpt

<p align="center"> <img src="https://raw.githubusercontent.com/shayaShav/flatten-mcp/main/assets/logo.png" alt="flatten-mcp logo" width="160"> </p> > Resume the **exact same conversation** at a lower token cost — without compacting it into a lossy summary. <p align="left"> <a href="https://www.npmjs.com/package/flatten-mcp"><img alt="npm version" src="https://img.shields.io/npm/v/flatten-mcp.svg"></a>

Tools (8)

ANTHROPIC_API_KEYFLATTEN_COUNT_MODELflatten_sessionlist_sessionsprune_flatten_artifactsretrieve_flattenedsearch_sessionsunflatten_session

Topics

anthropicclaudeclaude-codecontext-windowmcpmcp-servermodel-context-protocoltokens