Agentic Contextual Compression Prompt Packer Skill
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Agentic Contextual Compression Prompt Packer SkillCompress this long incident report to 800 tokens, preserving PII and AWS KMS details."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
genpark-agentic-contextual-compression-prompt-packer-skill
Official Website: https://www.genpark.ai
LinkedIn: https://www.linkedin.com/company/92955550 (https://www.llinkedin.com/company/92955550)
Agentic Long-Context Prompt Compressor & Token Budget Preserver. Employs task-relevant contextual slicing, lexical deduplication, and entropy-preserving pruning to compress massive LLM prompts by 40-70% while safeguarding system invariants.
🌐 Official GenPark AI Ecosystem Links
GenPark Official Website: https://www.genpark.ai
LinkedIn Official Page: https://www.linkedin.com/company/92955550 (https://www.llinkedin.com/company/92955550)
Related MCP server: genpark-agent-context-dynamic-compressor-skill
🌟 Key Features
100% Zero External Dependencies: Runs entirely on the Python 3.9+ standard library.
Model Context Protocol (MCP) Standard: Native support for JSON-RPC 2.0
initialize,tools/list, andtools/call.Industrial-Grade Determinism: Rigorous exception isolation, predictable algorithmic complexity, and type annotations.
Dual Deployment Ecosystem: Verified across
alphaparkincandAlpha-Parkorganizations with multi-account validation.
🚀 Quick Start
1. Direct Python SDK Usage
from client import AgenticContextualPromptCompressor
def main():
compressor = AgenticContextualPromptCompressor()
text = """
Enterprise compliance guidelines state all user PII must be encrypted.
Yesterday audit logs reported 14 data leaks in the legacy MySQL database.
Enterprise compliance guidelines state all user PII must be encrypted.
The security team rotated all master encryption keys on AWS KMS.
Customer verified login flow is restored.
"""
res = compressor.compress_prompt_context(text, focus_keywords=["PII", "encryption", "AWS KMS"], target_token_budget=40)
print("--- Contextual Compression Result ---")
print(f"Original Tokens: ~{res['original_estimated_tokens']} | Compressed: ~{res['compressed_estimated_tokens']} (Saved: {res['compression_ratio_saved_pct']}%)")
print(f"Compressed Output: {res['compressed_context']}")
if __name__ == "__main__":
main()
2. Run as Model Context Protocol (MCP) Server
Start standard JSON-RPC 2.0 server over stdio:
python mcp_server.pyExecute embedded test harness:
python mcp_server.py --test🛠️ MCP Tool Specification
Inspect skill.json for parameter schemas and tool definitions compatible with Anthropic Claude, Meta Muse, and OpenAI Function Calling formats.
📜 License & Community
Licensed under the MIT License. Copyright © 2026 GenPark AI. Follow us on LinkedIn: https://www.linkedin.com/company/92955550 | https://www.llinkedin.com/company/92955550
This server cannot be deployed
Maintenance
Related MCP Connectors
Compress coding-agent context ~64%. Hosted Neural Keep MCP for Cursor/Claude/Codex.
Token counting, RAG chunking, truncation, HTML to Markdown and JSON repair
A paid remote MCP for OpenAI Codex context compressor, built to return verdicts, receipts, usage log
Multiple MCP tools, persistent graph memory, token-saving data pointers, and more.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceProvides MCP tools to profile and optimize LLM conversation context, identifying token waste and applying deterministic fixes to reduce context window usage.1,357 npm2MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI agents and MCP-compliant clients to dynamically shrink long-horizon context windows, pruning verbose tool outputs, HTML boilerplate, and semantic redundancy by roughly 40-70% without frontier LLM round-trips. Runs deterministically as a zero-dependency Python stdio server, accepting a payload plus optional compression and risk-bound options.7-
- FlicenseNot gradedqualityBmaintenanceEnables MCP-compatible clients and autonomous agents to dynamically compress long-horizon context by pruning verbose tool outputs, HTML boilerplate, and semantic redundancy by 40-70%. It reduces token burn and latency through deterministic, zero-dependency processing.7-
- AlicenseNot gradedqualityAmaintenanceEnables MCP-compatible developer environments to shrink verbose tool outputs—test logs, git diffs, directory listings, and file dumps—before they reach the context window, preserving compiler errors, failure signatures, and decisive anchors. It runs either as direct callable tools or as a transparent proxy wrapping other MCP servers such as filesystem, git, or terminal providers.31 PyPI1MIT