Flatten
Verified IntegrationClient Configuration
— Connect Flatten to Claude Desktop or Cursor in seconds{
"mcpServers": {
"flatten": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-flatten"
],
"env": {}
}
}
}~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).System Overview
Optimizes Claude Code session token usage by externalizing bulky tool output, preserving the exact conversation history.
7/23/2026
Open Source
stdio / SSE RPC
Frequently Asked Questions
Architecture and operational details for Flatten
Flatten is a Model Context Protocol (MCP) server designed for Claude Code. It optimizes session token usage by externalizing bulky tool outputs like large file reads, command logs, or screenshots into separate sidecar files, leaving a small reference in their place.
Related MCP Servers
Browse all servers →Empower AI assistants to generate and convert documents, manage templates, and automate document workflows efficiently.
Provides a multi-tenant, AI-native Content Delivery Network deployable on Cloudflare, featuring sub-100ms TTFB, AI agent controllability, and comprehensive accessibility.
Deploy a Model Context Protocol server on Cloudflare Workers without requiring authentication.