MCP Marketplace
BrowseHow It WorksFor CreatorsDocs
Sign inSign up
MCP Marketplace

The curated, security-first marketplace for AI tools.

Product

Browse ToolsSubmit a ToolDocumentationHow It WorksBlogFAQ

Legal

Terms of ServicePrivacy PolicyCommunity Guidelines

Connect

support@mcp-marketplace.ioTwitter / XDiscord

MCP Marketplace © 2026. All rights reserved.

Back to Browse

Flatten MCP Server

by ShayaShav
Developer ToolsModerate5.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

5.2
Moderate5.2Moderate Risk

flatten-mcp is a well-architected MCP server with clean security practices. The codebase demonstrates strong file handling with atomic writes, crash-safe sidecar persistence, and explicit session backups. Permissions are appropriately scoped to Claude Code's session directory. No credentials are hardcoded, and network access is limited to an optional Anthropic API call for token counting when explicitly configured via environment variable. Minor code quality improvements around error handling could be made, but the server poses no significant security risk. Supply chain analysis found 3 known vulnerabilities in dependencies (0 critical, 3 high severity). Package verification found 1 issue.

4 files analyzed · 9 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

process_cwd

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

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

Environment variable: ANTHROPIC_API_KEY

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

Environment variable: FLATTEN_COUNT_MODEL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-shayashav-flatten-mcp": {
      "env": {
        "ANTHROPIC_API_KEY": "your-anthropic-api-key-here",
        "FLATTEN_COUNT_MODEL": "your-flatten-count-model-here"
      },
      "args": [
        "-y",
        "flatten-mcp"
      ],
      "command": "npx"
    }
  }
}

Reviews

No reviews yet

Be the first to review this server!

0

installs

New

no ratings yet

Is this your server?

Claim ownership to manage your listing, respond to reviews, and track installs from your dashboard.

Claim with GitHub

Sign up with the GitHub account that owns this repo

Links

Source CodeDocumentationnpm Package

Details

Published June 12, 2026
Version 1.1.0
0 installs
Local Plugin

More Developer Tools MCP Servers

Fetch

Free

by Modelcontextprotocol · Developer Tools

Web content fetching and conversion for efficient LLM usage

80.0K
Stars
4
Installs
5.3
Security
No ratings yet
Local

Git

Free

by Modelcontextprotocol · Developer Tools

Read, search, and manipulate Git repositories programmatically

80.0K
Stars
6
Installs
6.5
Security
No ratings yet
Local

Toleno

Free

by Toleno · Developer Tools

Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.

137
Stars
521
Installs
8.0
Security
4.8
Local

mcp-creator-python

Free

by mcp-marketplace · Developer Tools

Create, build, and publish Python MCP servers to PyPI — conversationally.

-
Stars
73
Installs
10.0
Security
4.6
Local

MarkItDown

Free

by Microsoft · Content & Media

Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption

156.1K
Stars
38
Installs
6.0
Security
5.0
Local

FinAgent

Free

by mcp-marketplace · Finance

Free stock data and market news for any MCP-compatible AI assistant.

-
Stars
22
Installs
10.0
Security
No ratings yet
Local