- flatten-mcp
flatten-mcp
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
7 hours agoUpdated At
7 hours agoAuthor Name
shayaShavStar
-Language
-License
-Tags
Recommend Servers
View AllTest
@modelcontextprotocol
test
6 months ago
Filesystem
@modelcontextprotocol
2 months ago
Puter Mcp
2 days ago
Linkpulse
13 hours ago
mcp-server-flomo MCP Server
@chatmcp
Write notes to Flomo
JavaScript
a year ago