PATK MCP Server

PATK MCP Server

Filters verbose terminal output from commands like npm install, pip install, docker build, and pytest, reducing context token consumption for AI agents by condensing logs, removing progress bars, and grouping repeated warnings.

Category
Visit Server

README

PATK — PFC Agent Token Killer MCP Server

Compress noisy terminal output before it fills Claude's context. npm install, docker build, pytest — filtered down to what actually matters.


Why PATK?

Long coding sessions fill Claude's context with terminal noise. Each npm install dumps 150–200 lines of deprecation warnings and progress bars. That's ~10,000 tokens of pure noise per session — eating into your context window.

PATK filters that noise before Claude ever sees it.

Real benchmark (5-command session, Haiku API):

Command Lines Before Lines After Reduction
npm install 52 6 80%
pip install -r requirements.txt 42 10 77%
docker build . 35 15 57%
pytest -v 30 21 30%
Session total 8,380 tokens 3,829 tokens 54% ↓

Real Haiku API benchmark. No spin — actual measured values.

What this means:

  • Context fills up 2× slower in long sessions
  • Claude's summarization is delayed → longer memory of early session details
  • At CI/CD scale: meaningful API cost reduction

Works in Sub-Agents Too

Sub-agents (Task tool, Explore agents, parallel agents) have their own isolated context and their own separate API costs. PATK installed once works everywhere:

  • Main agent context: protected
  • Sub-agent context: also protected (independently)
  • n8n pipelines: filter between nodes to halve accumulated data

Add to your Task tool prompts: "Use patk_safe_execute for all bash commands producing > 15 lines output"


Installation

1. Get your free API key

🔜 API keys not yet live. Watch this repo or open an issue to get notified when pfc-token-killer.com launches — 200 free credits, no payment required.

2. Install dependencies

pip install -r requirements.txt

3. Add to Claude Code MCP config

Claude Code (~/.claude.json or project .mcp.json):

{
  "mcpServers": {
    "patk": {
      "command": "python",
      "args": ["/path/to/server.py"],
      "env": {
        "PATK_API_KEY": "ptk_your_key_here"
      }
    }
  }
}

Or via CLI:

PATK_API_KEY=ptk_your_key_here claude mcp add patk python /path/to/server.py

That's it. No configuration. No extra dependencies beyond requirements.txt.


Tools

Tool When to use
patk_safe_execute PRIMARY — Run command + filter in one step. Raw output never enters Claude's context.
patk_filter_output Filter already-captured terminal output (Bash tool fallback)
patk_check_credits Check remaining API credits
patk_status Show configuration and session statistics

Example: patk_safe_execute

patk_safe_execute(command="npm install", max_lines=50)

→ npm install  [✅ Exit 0]
  ──────────────────────────────────────────────────
  added 847 packages in 12.3s
  [10× npm warn deprecated — run 'npm audit fix']
  // ✂ 80% reduction — 52→6 lines
  ---
  ⚡ PATK API  |  80% Reduktion  |  52 → 6 Zeilen  |  ~1,200 Tokens gespart

Filter Pipeline

  1. ANSI removal — Strip colors, cursor codes
  2. Progress bar detection — Remove [=====> ] 47%, ━━━━━━ 100%, download bars
  3. Pattern condensation — Group similar lines: [10× npm warn deprecated], [15× pip Collecting/Downloading]
  4. Duplicate compression — Identical lines → single summary
  5. Timestamp clusters — 20 timestamp log lines → 1 summary
  6. Entropy scoring — Remove low-information lines; always keep errors/warnings

Compatibility

Works with any MCP-compatible client:

  • Claude Code (primary target)
  • Cursor
  • Cline
  • Windsurf
  • Any client supporting the MCP protocol

Pricing

Plan Credits Price
Starter 200 Free
Hobby 2,000 $5 one-time
Pro 10,000 $15 one-time
Enterprise 50,000 $49 one-time / seat

1 credit = 1 filter call. Credits never expire. No subscriptions.

Paid plans not yet live. Free Starter tier available at launch. Pre-register now for +50% Early Bird bonus credits on paid plans.


Get your key

→ Register at pfc-token-killer.com (coming soon) → Or watch this repo — we'll announce here when keys go live


Questions / Support

Open an Issue — fastest way to reach us


Built by ForgeBuddy & Dante · 2026

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured