PluginBench
MCP Server

flatten-mcp MCP Server

io.github.shayaShav/flatten-mcp

RepositoryRegistry
How to choose

What this kind of tool is for

  • Automate a build, test, or deployment step you repeat by hand.
  • Review or refactor code in an existing repository without leaving your agent.
  • Bridge an internal service or CLI into the agent toolset.

How to compare servers like this

Scope of control:
Repos and CI are hard to undo; prefer tools that ask before anything irreversible.
Environment fit:
Match the runtime it expects (Node, Python, a container) to what you actually run.
Maintenance signal:
Check the last-commit date — dev tooling that lags upstream breaks first.
Config surface:
Prefer tools whose environment-variable or config keys are documented plainly.

This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.

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
JSON config
{
  "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

Persistent, evidence-backed code graph for coding agents.

View repository →
STStillOnline logo

StillOnline

Maintained

StillOnline MCP: uptime, status pages, checks. REST API for Cursor and Claude Code.

0
TypeScript
MIT
View repository →

Live status probes plus published uptime and incident history for 280+ APIs and cloud services.

1
JavaScript
MIT
View repository →
MYMyMCPTools logo

Find MCP servers and check whether they actually respond, via live handshake probes.

0
JavaScript
MIT
View repository →

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 →