PluginBench
MCP Server

flatten-mcp MCP Server

io.github.shayaShav/flatten-mcp

What is the flatten-mcp MCP server?

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

How to install flatten-mcp

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • ANTHROPIC_API_KEY
    secret

    Optional. If set, token savings are counted exactly via Anthropic's count_tokens endpoint instead of estimated locally.

  • FLATTEN_COUNT_MODEL

    Optional. Model id used for the exact token count (default: claude-haiku-4-5-20251001).

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "flatten-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "flatten-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "FLATTEN_COUNT_MODEL": "<YOUR_FLATTEN_COUNT_MODEL>"
      }
    }
  }
}

Related MCP servers

Notion MCP server — search, export, and import pages as markdown

2
TypeScript
MIT
View repository →

Deploy HTML folders to vibie.page from Claude / Cursor — one-line install, OAuth, auto-update.

1
TypeScript
MIT
View repository →

Query AI IQ (aiiq.org) model IQ, rankings, benchmarks, and methodology.

0
TypeScript
MIT
View repository →

Local-first memory and context orchestrator for AI agents with durable continuity, explainable retrieval, and verified learning.

152
Go
Apache-2.0
View repository →

Connect AI assistants to Google Sheets through controlled tools for reading and updating rows.

Render PDFs from templates and spreadsheet data via SheetRender, locally or at mcp.sheetrender.com

1
TypeScript
MIT
View repository →