File Compaction

v1.0.0Developer Toolsstable

Reduces Claude's context window costs by automatically summarizing inactive files to their public interfaces using AST parsing, keeping only the full contents of the currently active file.

mcp-file-compactionmcpai-integration
Share:
0
Stars
0
Downloads
0
Weekly
0/5

What is File Compaction?

File Compaction is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to reduces claude's context window costs by automatically summarizing inactive files to their public interfaces using ast parsing, keeping only the full contents of the currently active file.

Reduces Claude's context window costs by automatically summarizing inactive files to their public interfaces using AST parsing, keeping only the full contents of the currently active file.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Reduces Claude's context window costs by automatically summa

Use Cases

Reduce context window costs via AST summarization
Keep active files in full detail
UBTCodeNinja

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedN/A
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx mcp-file-compaction

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

Frequently Asked Questions about File Compaction

What is File Compaction?

File Compaction is a Model Context Protocol (MCP) server that reduces claude's context window costs by automatically summarizing inactive files to their public interfaces using ast parsing, keeping only the full contents of the currently active file. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install File Compaction?

Follow the installation instructions on the File Compaction GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with File Compaction?

File Compaction works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is File Compaction free to use?

Yes, File Compaction is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "mcp-file-compaction": { "command": "npx", "args": ["-y", "mcp-file-compaction"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use File Compaction?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides