princeruhulofficial

MCP Schema Bloat Fixer

Updated

MCP server that detects, compresses and optimizes tool schemas to fight context window bloat and save tokens for AI agents

MCP Schema Bloat Fixer

Fight the invisible token tax that is killing your AI agents.

Repository: mcp-schema-bloat-fixer

The Problem (explained simply)

Imagine your AI agent is a smart kid trying to do homework. But every time he starts, you force him to read a 200-page phone book of tools first. By the time he finishes reading the phone book, he already forgot the homework question and also spent all his pocket money on “thinking tokens”.

That phone book is the tool schemas coming from MCP servers. Many servers send 40-50% of the entire context window just on tool descriptions.

What This MCP Server Does

It gives your agent (or you) five superpowers:

Tool What it does (simple)
analyze_schema_bloat Tells you which tools are the biggest space-wasters
compress_tool_description Makes long tool descriptions short but still clear
select_relevant_tools Picks only the 3-5 tools the agent actually needs right now
estimate_context_cost Shows how many tokens (and dollars) a set of tools will cost
generate_minimal_schema Creates the smallest possible version of a tool schema

Quick Start

# Install
pip install mcp

# Run (stdio)
python -m src.server

# Or with mcpize (when available)
mcpize run .

Environment

Copy .env.example.env if you want optional tiktoken for exact counts.

Why This Helps Entrepreneurs

  • Save real money on every AI call
  • Make your AI products more reliable (agents stop picking wrong tools)
  • Ship faster because debugging “why did the agent fail?” becomes easier

License

MIT – build cool stuff with it.

Built as part of the Daily AI Project series for Prevalid.

MCP Server · Populars

MCP Server · New

    gura105

    Operational Ontology

    A minimal, readable reference implementation of the Operational Ontology pattern. Palantir Foundry is one implementation; this is the concept, minimized.

    Community gura105
    EllisMorrow

    Caelune

    Caelune (星野) — Local-first retrieval for private Markdown, PDF, and Tika documents, with a Windows desktop app and read-only MCP server.|本地优先的私人知识检索工具。

    Community EllisMorrow
    vmware-skills

    VMware AIops

    VMware vCenter/ESXi AI-powered monitoring and operations. Two skills: vmware-monitor (read-only, safe) and vmware-aiops (full operations) | Claude Code Skill

    Community vmware-skills
    asdecided

    AsDecided

    Native deterministic requirements-as-code engine and read-only MCP server.

    Community asdecided
    Mapika

    portview

    See what's on your ports, then act on it. Diagnostic-first port viewer for Linux, MacOS and Windows.

    Community Mapika